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.
  1. 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.)
  2. Log into your Panix shell account.
  3. 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
  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
    • 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.
  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
    • 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.
  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
    • 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/
  21. Get help online. http://wordpress.org/


Last Modified:Wednesday, 30-Jan-2013 12:14:13 EST
© Copyright 2006-2011 Public Access Networks Corporation