welcome: please sign in

Revision 15 as of 2013-01-20 22:25:37

Clear message
Edit

MemberManual / WebApplications / WordPress

This is a work in progress and following this guide will probably result in a broken installation. Do not use!

Wordpress is a free and open source content management system that is widely popular. This page will provide you with detailed instructions on how to install Wordpress using DomTool and AFS permissions.

This will guide you through downloading the latest stable version via Subversion, hardening permissions in the filesystem, and making a Domtool entry for the site.

1. Request Firewall Rules

See FirewallRules

If you want to use services like akismet or the wordpress plugin registry from the interface itself, you will need to request firewall rules on the web server to contact those services. Something like: $YOU Client 80,443 rest.akismet.com wordpress.org is usually sufficient.

2. Get the Source

If you have the OpenAFS client configured, you can set up Wordpress on your local system for the most part. If you are performing the steps on the shell server, you will need to request FirewallRules to access http and subversion.

fsr setacl . system:anyuser none
fsr sa . $USER.daemon rlk

The first command makes it so that no one that you do not allow (except administrators) may access your Wordpress directory. The second command limits the privileges that the server software have over the directory to just reading, listing files, and executing code.

svn co http://core.svn.wordpress.org/tags/$VERSION .

cd wp-content/
fsr sa themes/ $USER.daemon rlkw
mkdir uploads
fs sa uploads $USER.daemon rlkwid

3. Configure Wordpress

# in wp-config.php
define('DB_NAME', '$USER_$DB');
define('DB_USER', '$USER');
define('DB_PASSWORD', 'XXXXX your mysql password XXXXX');
define('DB_HOST', 'mysql');

# visit https://api.wordpress.org/secret-key/1.1/salt/ to generate cookie salts, and copy/paste result over:
define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');

That's it!


CategoryMemberManual CategoryNeedsWork