Access Keys:
Skip to content (Access Key - 0)

Q: How do I install Drupal on scripts.mit.edu?

Answer

Prerequisites

  • The locker you want to use (your own locker, or a group's locker that you control) must already be signed up for the Scripts service and sql.mit.edu. Visit http://scripts.mit.edu for more information on the signup process.
  • You should be able to type commands at the Athena command line. You may connect via SecureCRT, the Mac OS X terminal, or you can run these commands at an Athena workstation.
  • You should have basic familiarity with the command line.

Installation

  1. Visit sql.mit.edu and create a database for drupal ("drupal" is a good name). Note that sql.mit.edu will prepend "lockername+" to your database name. Make a note of the database name you choose (including the lockername+ prefix), and also make a note of your sql.mit.edu username and password (which can be found in ~/.sql/my.cnf). NEVER use your Kerberos password for your sql.mit.edu password.
  2. Visit the Drupal website to identify the latest version of Drupal. (These instructions were tested with Drupal 7.32). In the "Downloads" section, find the link to the .tar.gz version of Drupal, and copy that link to your clipboard.
  3. In your terminal window, change to your web_scripts directory. (e.g. cd ~/web_scripts). Type "wget" and paste in the URL you copied in the previous step. The final command should look something like: wget http://ftp.drupal.org/files/projects/drupal-7.32.tar.gz
  4. After the file has been downloaded, extract it with the following command: tar -xzvf drupal-7.32.tar.gz (substitute the filename that was actually downloaded)
  5. Create a symbolic link named "drupal" for easier access: {{ ln -s drupal-7.32 drupal}}
  6. Drupal needs some PHP extensions enabled. In your "drupal" directory, create a php.ini file with the following content:
    magic_quotes_gpc = no
    extension = json.so
    extension = gd.so
    extension = pdo.so
    extension = mbstring.so
    extension = mysqlnd.so
    extension = pdo_mysqlnd.so
    
    • Advanced users may select a different database type by enabling the pdo extension for that database type (e.g. SQLite or PostgreSQL).
  7. Visit http://yourlockernamehere.scripts.mit.edu/drupal/install.php and follow the step-by-step instructions to get set up. You will be prompted for:
    • A Standard or Minimal installation (if unsure, select Standard)
    • Any additional language support (if you wish Drupal's administrative interface to use a language other than English)
    • Your database information. Enter your database name (including the lockername+ prefix, e.g. joeuser+drupal), and enter the username and password found in your ~/.sql/my.cnf file.
      When prompted for your database information, be sure to click Advanced Options and specify the host as sql.mit.edu.

Community

Documentation and information provided by the MIT Community


Last Modified:

November 01, 2014

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
c-scripts c-scripts Delete
drupal drupal Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki