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 domain, the web address for your blog will be:
• If you are using your own domain, the web address for your blog will be

Drupal 7 supports SQLite, so you do not have to use MySQL. If you do wish to use MySQL, you can manage databases at while logged in with the website maintenance account login.

  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
  4. Fetch Drupal 7:
    wget 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:


    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 8.1 in your handler, use 'exec php-8.1' 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 domain:
    • Customers using your own domain:
    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 domain
    • Customers using their own domain
  21. If you need additional help with this software, you can find it online on its primary web site,

Last Modified:Tuesday, 22-Feb-2022 08:47:29 EST
© Copyright 2006-2021 Public Access Networks Corporation