10 minute install using PuTTY SSH/Telnet client

Last modified: January 5, 2008 - 16:14

I've been developing best practices for my development company and wanted to share/collaborate on some of them.

Development environment:

Server: LAMP
SSH/Telenet Client: PuTTY
Server Interface: WHM
Must have root access.

10 minute Install:

[login root via PuTTY]

# cd /home/youraccountname

# wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-x.x.tar.gz

[Note: the "x.x" should be replaced with the version of drupal you're installing, e.g. "5.1"]

# tar -zxvf drupal-5.1.tar.gz

# mv drupal-x.x/* drupal-x.x/.htaccess /home/youraccountname/public_html

[Note: See the note above regarding "x.x"]

# rm drupal-x.x.tar.gz

# cd public_html

# mkdir files

# chmod 777 files

# cd sites/all

# mkdir modules

# mkdir themes

# cd modules

# mkdir custom

# mkdir drupal-contrib

# cd ../

# cd themes

# mkdir custom

# mkdir drupal-contrib

# cd ../

# cd ../

# cd default

# chmod 777 settings.php

# mysql

mysql> CREATE DATABASE youraccountname_drupal;

mysql> GRANT ALL PRIVILEGES ON youraccountname_drupal.* TO 'your accountname_yourusername'@'localhost' IDENTIFIED BY 'yourpassword';

mysql> \q

[open your browser. enter your site's URL, and enter database information]

[go back to PuTTY to chmod on "settings.php"]

# chmod 755 settings.php

# logout

[back to browser, refresh browser, and then "visit new site" (or whatever the link says to new website), create first "superuser" account, etc.]

 
 

Drupal is a registered trademark of Dries Buytaert.