Installing WordPress on Panix
Following these instructions as written will install WordPress in a subdirectory of your primary web space called 'wordpress'. Substitute your user name for yourusername, and, where appropriate, your domain name for yourdomainname, throughout.
• The web address for your blog in your personal web space will be:http://www.panix.com/~yourusername/wordpress/
• The web address for blogs in your domain will be:
http://yourdomainname/wordpress/
You may, of course, install WordPress at the root of your primary web space. To install WordPress at the root level, simply follow the instructions below, omitting the 'wordpress' sub-directory everywhere it appears.
- If you don't already have one, request a MySQL database. (If you already have a MySQL database at Panix, you can use it for WordPress, too.)
- Log into your Panix shell account.
- Change directories into your web space:
• Cheap-web customers and customers with websites in the "www.panix.com" domain:
cd public_html
• Standard, Advanced, and Developer Web customers:
cd corp-web/yourdomainname - Fetch the latest copy of WordPress:
wget http://wordpress.org/latest.tar.gz - Unpack it:
tar -xzvf latest.tar.gz - Remove the zip file:
rm latest.tar.gz - Create an .htaccess file in your new wordpress directory:
emacs wordpress/.htaccess
with the following contents:
<filesmatch "^(.htaccess|wp-config.php|wp-settings.php)$">
order allow,deny
deny from all
</filesmatch>
Options All -Indexes
AddHandler php-handler .php
• Cheap-web customers and customers with websites in the "www.panix.com" domain:
Action php-handler http://www.panix.com/~yourusername/pcgi-bin/php-handler.cgi
• Standard, Advanced, and Developer Web customers:
Action php-handler http://yourdomainname/pcgi-bin/php-handler.cgi
Use ctl-x ctl-c to save and exit emacs.
NB: If you switch from "Single-user" to "Cheap-web", you will need to use WordPress's relocate function to change your site URL; see http://codex.wordpress.org/Changing_The_Site_URL#Relocate_method. - Give the webserver permission to see
your .htaccess file:
chmod o+r wordpress/.htaccess - Also give the webserver permission to see
your images, css, and javascript directories:
chmod -R o+r wordpress/wp-content/themes
chmod -R o+r wordpress/wp-includes/images
chmod -R o+r wordpress/wp-includes/js
chmod -R o+r wordpress/wp-admin/css
chmod -R o+r wordpress/wp-admin/images
chmod -R o+r wordpress/wp-admin/js
- If you do not already have one,
create a pcgi-bin directory:
mkdir pcgi-bin - Create a php-handler script in your
pcgi-bin directory:
emacs pcgi-bin/php-handler.cgi
with the following contents:
#!/bin/sh
cd `dirname ${PATH_TRANSLATED}`
exec php
Use ctl-x ctl-c to save and exit emacs. - Give yourself permission to execute your
php-handler script:
chmod u+x pcgi-bin/php-handler.cgi - In your web browser, visit
• Customers with web sites in the "www.panix.com" domain:
http://www.panix.com/~yourusername/wordpress/wp-admin/
• Customers with blogs in your own domain:
http://yourdomainname/wordpress/wp-admin/
Click the "Create a Configuration File" button. - On the next page [ wordpress/wp-admin/setup-config.php ], click the "Let's go!" button.
- On the next page
[ wordpress/wp-admin/setup-config.php?step=1 ] enter
database name: yourusername
user name: yourusername
password: (insert password here)
database host: mysql2
table prefix: wp_
and click the "Submit" button. - On the next page [ wordpress/wp-admin/setup-config.php?step=2 ], click the "Run the install" button.
- WordPress does not
secure your site. Check your permissions after each
auto-update!
Protect your wp-config.php file from the prying eyes of other Panix users:
chmod 600 wordpress/wp-config.php - On the next page [ wordpress/wp-admin/install.php ], fill in site title, etc.; click the "Install Wordpress" button.
- Make a note of the provided password!!
- Begin editing your blog at
• Customers with sites in the "www.panix.com" domain:
http://www.panix.com/~yourusername/wordpress/wp-admin/
• Customers with blogs in your own domain:
http://yourdomainname/wordpress/wp-admin/ - Get help online. http://wordpress.org/
Last Modified:Wednesday, 30-Jan-2013 12:14:13 EST
© Copyright 2006-2011
Public Access Networks Corporation