Panix - Public Access
Networks Corporation

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 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.

  1. Request a MySQL addon. Pricing for MySQL is listed in the Single-User and Corporate service pages.
  2. Log into your Panix shell account.
  3. Change directories into your web space:
    • Single-user & Cheap-web customers:
    cd public_html
    • Corporate customers:
    cd corp-web/yourdomainname
  4. Fetch the latest copy of WordPress:
    wget http://wordpress.org/latest.tar.gz
  5. Unpack it:
    tar -xzvf latest.tar.gz
  6. Remove the zip file:
    rm latest.tar.gz
  7. 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
    • 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
    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.

  8. Give the webserver permission to see your .htaccess file:
    chmod o+r wordpress/.htaccess
  9. 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
    
  10. If you do not already have one, create a pcgi-bin directory:
    mkdir pcgi-bin
  11. 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.
  12. Give yourself permission to execute your php-handler script:
    chmod u+x pcgi-bin/php-handler.cgi
  13. In your web browser, visit
    • Single-user customers:
    http://www.panix.com/~yourusername/wordpress/wp-admin/
    • Cheap-web & Corporate customers:
    http://yourdomainname/wordpress/wp-admin/
    Click the "Create a Configuration File" button.
  14. On the next page [ wordpress/wp-admin/setup-config.php ], click the "Let's go!" button.
  15. 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.
  16. On the next page [ wordpress/wp-admin/setup-config.php?step=2 ], click the "Run the install" button.
  17. 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
  18. On the next page [ wordpress/wp-admin/install.php ], fill in site title, etc.; click the "Install Wordpress" button.
  19. Make a note of the provided password!!
  20. Begin editing your blog at
    • Single-user customers:
    http://www.panix.com/~yourusername/wordpress/wp-admin/
    • Cheap-web & Corporate customers:
    http://yourdomainname/wordpress/wp-admin/
  21. Get help online. http://wordpress.org/


© Copyright 2010-2011, Public Access Networks Corporation

webmaster@panix.com | Last modified: February 16, 2011

[ Panix Home ] [ Help System Index ] [ Top of This Page ]