Installing Drupal 6 on Panix


Following these instructions as written will install Drupal 6 in a subdirectory of your primary web space, called 'drupal-6.22'. Substitute your user name for yourusername, and, where appropriate, your domain name for yourdomainname, throughout.

The web address for your blog will be:
• Customers without their own domain:
http://www.panix.com/~yourusername/drupal-6.22/
• Customers with a domain of their own:
http://yourdomainname/drupal-6.22/

Drupal 6 requires a MySQL database.

  1. Request a MySQL addon (unless you already have a Panix database, in which case simply use a table prefix in your installation).
  2. Log into your Panix shell account.
  3. cd public_html
  4. wget http://drupal.org/files/projects/drupal-6.22.tar.gz
  5. tar -zxvf drupal-6.22.tar.gz
  6. rm drupal-6.22.tar.gz
  7. cp drupal-6.22/sites/default/default.settings.php drupal-6.22/sites/default/settings.php
  8. mkdir drupal-6.22/sites/default/files
  9. chmod -R o+w drupal-6.22/sites/default/
  10. chmod o+r drupal-6.22/.htaccess
  11. chmod o+r drupal-6.22/index.php
  12. chmod o+r drupal-6.22/install.php
  13. chmod -R o+r drupal-6.22/includes
  14. chmod -R o+r drupal-6.22/modules
  15. chmod -R o+r drupal-6.22/themes
  16. chmod -R o+r drupal-6.22/misc
  17. With the Unix editor of your choice, edit the .htaccess file in your new drupal directory, appending the following 2 lines:
    • Customers without their own domain
    AddHandler php-handler .php
    Action php-handler http://www.panix.com/~yourusername/pcgi-bin/php-handler.cgi
    • Customers with a domain of their own:
    Action php-handler .php
    Action php-handler http://yourdomainname/pcgi-bin/php-handler.cgi
    Save the file and exit your editor.
  18. If you do not already have one, create a pcgi-bin directory:
    mkdir pcgi-bin
  19. With the Unix editor of your choice, create a php-handler script in your pcgi-bin directory with the following contents::

    #!/bin/sh

    cd `dirname ${PATH_TRANSLATED}`
    exec php

    Save the file and exit your editor
  20. Give yourself permission to execute your php-handler script:
    chmod u+x pcgi-bin/php-handler.cgi
  21. In your web browser, visit your Drupal page:
    • Customers using the www.panix.com domain:
    http://www.panix.com/~yourusername/drupal-6.22/
    • Customers using their own domain name:
    http://yourdomainname/drupal-6.22/
  22. On the next page [ /drupal-6.22/install.php?profile=default ], choose your language.
  23. On the next page [ /drupal-6.22/install.php?profile=default&locale=en ], enter
    Database name: yourusername
    Database username: yourusername
    Database password: (insert password here)
    then click Advanced options and enter
    Database host: mysql2
    Database port: (leave blank)
    Table prefix: drupal_
    then click the "Save and continue" button.
  24. When the Drupal install web page says, "All necessary changes to ./sites/default and ./sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, please consult the on-line handbook.", run this command in the shell:
    chmod -R o-w drupal-6.22
  25. On the next page [ /drupal-6.22/install.php?locale=en&profile=default ], configure your site with its title, e-mail address, an administrator username, password & e-mail address, and server settings (time zone, clean URLs, update notifications). Click the "Save and continue" button.
  26. Visit your site:
    • Customers using the www.panix.com domain:
    http://www.panix.com/~yourusername/drupal-6.22/
    • Customers using their own domain name:
    http://yourdomainname/drupal-6.22/
    (click the "your new site" link on the "Drupal installation complete" page)

Get help online. http://drupal.org/



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