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.
- Request a MySQL addon (unless you already have a Panix database, in which case simply use a table prefix in your installation).
- Log into your Panix shell account.
- cd public_html
- wget http://drupal.org/files/projects/drupal-6.22.tar.gz
- tar -zxvf drupal-6.22.tar.gz
- rm drupal-6.22.tar.gz
- cp drupal-6.22/sites/default/default.settings.php drupal-6.22/sites/default/settings.php
- mkdir drupal-6.22/sites/default/files
- chmod -R o+w drupal-6.22/sites/default/
- chmod o+r drupal-6.22/.htaccess
- chmod o+r drupal-6.22/index.php
- chmod o+r drupal-6.22/install.php
- chmod -R o+r drupal-6.22/includes
- chmod -R o+r drupal-6.22/modules
- chmod -R o+r drupal-6.22/themes
- chmod -R o+r drupal-6.22/misc
- 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
- If you do not already have one, create a pcgi-bin directory:
mkdir pcgi-bin - 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 - Give yourself permission to execute your php-handler script:
chmod u+x pcgi-bin/php-handler.cgi - 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/
- On the next page [ /drupal-6.22/install.php?profile=default ], choose your language.
- 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. - 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 - 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.
- 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/
Get help online. http://drupal.org/
Last Modified:Wednesday, 30-Jan-2013 12:14:06 EST
© Copyright 2006-2011
Public Access Networks Corporation