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 will be:
- • Single-user customers:
- http://www.panix.com/~yourusername/wordpress/
- • Cheap-web & Corporate customers:
- 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.
cd public_html
cd corp-web/yourdomainname
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
rm latest.tar.gz
emacs wordpress/.htaccesswith the following contents:
Use ctl-x ctl-c to save and exit emacs.<filesmatch "^(.htaccess|wp-config.php|wp-settings.php)$"> order allow,deny deny from all </filesmatch> Options All -Indexes AddHandler php-handler .php
- • Single-user customers:
Action php-handler http://www.panix.com/~yourusername/pcgi-bin/php-handler.cgi- • Corporate & Cheap-web customers:
Action php-handler http://yourdomainname/pcgi-bin/php-handler.cgi
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.
chmod o+r wordpress/.htaccess
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
mkdir pcgi-bin
emacs pcgi-bin/php-handler.cgiwith the following contents:
#!/bin/sh
cd `dirname ${PATH_TRANSLATED}`
exec php
Use ctl-x ctl-c to save and exit emacs.
chmod u+x pcgi-bin/php-handler.cgi
database name: yourusername user name: yourusername password: (insert password here) database host: mysql2 table prefix: wp_and click the "Submit" button.
chmod 600 wordpress/wp-config.php
© Copyright 2010-2011, Public Access Networks Corporation
[ Panix Home ] [ Help System Index ] [ Top of This Page ]