Installing Drupal 7 on Panix


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

• If your blog is under the www.panix.com domain, the web address for your blog will be:
http://www.panix.com/~yourusername/drupal/
• If you are using your own domain, the web address for your blog will be
http://yourdomainname/drupal/

Drupal 7 supports SQLite, so you do not have to use MySQL. If you wish to use MySQL, then request a MySQL database. (If you already have a MySQL database at Panix, you can use it for Drupal, too.)

  1. Log into your Panix shell account.
  2. Change directories into your web space:
    • Personal pages and Cheap-web customers:
    cd public_html
    • Standard, and other web customers:
    cd corp-web/yourdomainname
  3. LOCATE LATEST VERSION at http://drupal.org/project/drupal
  4. Fetch Drupal 7:
    wget http://ftp.drupal.org/files/projects/drupal-7.n.tar.gz where n is the latest recommended release.
  5. Unpack it:
    tar -xzvf drupal-7.n.tar.gz
  6. Remove the zip file:
    rm drupal-7.n.tar.gz
  7. Rename the new directory:
    mv drupal-7.n drupal
    Use the above command if you are installing Drupal for the first time, i.e., you do not have a drupal subdirectory already. If you do already have a drupal directory, you can either rename it, or use a different name for this one (remembering to use the same alternate name in the instructions below!)
  8. Initialize your settings;
    cp drupal/sites/default/default.settings.php drupal/sites/default/settings.php
  9. Create your uploads directory:
    mkdir drupal/sites/default/files
  10. Allow Drupal to change your settings:
    chmod -R o+w drupal/sites/default/
  11. Let the webserver see everything it needs to see: chmod o+r drupal/.htaccess
    chmod o+r drupal/index.php
    chmod o+r drupal/install.php
    chmod -R o+r drupal/modules
    chmod -R o+r drupal/themes
    chmod -R o+r drupal/misc
  12. Edit the .htaccess file in your new drupal directory, appending the following 2 lines:
    emacs drupal/.htaccess
    AddHandler php-handler .php
    • Customers who don't use their own domain:
    Action php-handler /~yourusername/pcgi-bin/php-handler.cgi
    • Customers using their own domain:
    Action php-handler /pcgi-bin/php-handler.cgi
    Use ctl-x ctl-c to save and exit emacs.
  13. If you do not already have one, create a pcgi-bin directory:
    mkdir pcgi-bin
  14. 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
    Calling 'exec php' runs the standalone version of php, currently in version 5.3. If you need to run the latest version, php 7.0 in your handler, use 'exec php-7.0' instead.
    Use ctl-x ctl-c to save and exit emacs.
  15. Give yourself permission to execute your php-handler script:
    chmod u+x pcgi-bin/php-handler.cgi
  16. In your web browser, visit
    • Customers using the www.panix.com domain:
    http://www.panix.com/~yourusername/drupal/
    • Customers using your own domain:
    http://yourdomainname/drupal/
    You will be re-directed to /drupal/install.php to choose your profile (standard or minimal).
  17. On the next page [ /drupal/install.php?profile=standard|minimal ], choose your language.
    We have not experimented with installing Drupal in different languages. Please contact support if you need assistance doing so.
  18. On the next page [ /drupal/install.php?profile=standard|minimal&locale=en ], choose your database type, either MySQL or SQLite.
    For MySQL
    enter these values:
    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_
    For SQLite
    accept the default filename
    enter a table prefix, if desired
    then click the "Save and continue" button.
  19. On the next page [ /drupal/install.php?profile=standard|minimal&locale=en ], 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.
  20. Begin editing your blog:
    • Customers using the www.panix.com domain
    http://www.panix.com/~yourusername/drupal/wp-admin/
    • Customers using their own domain
    http://yourdomainname/drupal/wp-admin/
  21. If you need additional help with this software, you can find it online on its primary web site, http://drupal.org/


Last Modified:Thursday, 06-Mar-2014 13:15:36 EST
© Copyright 2006-2011 Public Access Networks Corporation