ARCHIVE: 10 minute install using PuTTY SSH/Telnet client
Last modified: August 19, 2009 - 00:31
Drupal 5
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 6
Thanks for this, here's an updated version for Drupal 6, when using plesk or cpanel in a VPS environment.
I don't think root access is needed, just that the FTP account has shell access long enough to run this.
[Setup the database in control panel]
[create FTP account with shell access (turn off when done), SSH login with that FTP acct to server via PuTTY]
# wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-6.6.tar.gz
# tar -zxvf drupal-6.6.tar.gz
# mv drupal-6.6/* drupal-6.6/.htaccess /var/www/vhosts/YOURDOMAIN/httpdocs
# rm drupal-6.6.tar.gz
# cd sites/default
# mkdir files
# chmod 777 files
# cp default.settings.php settings.php
# chmod 777 settings.php
# cd ../all
# mkdir modules
# mkdir themes
# exit
[back to browser, follow installation wizard from there]