Easy setup of Drupal
Very often, I am faced with the prospect of setting up Drupal on a brand new system. After going about it the hard way dozens of times (if your google search for Linux commands for installing Drupal is still in you google recent searches, it's a sign you might need to make some notes), I finally sat down and documented every command needed on Ubuntu 10.04 to install Drupal and Drush from scratch. You will need root access, or just add sudo in front of each command (including after the pipe on the wget line). These instructions work great on fresh Linodes, by the way.
apt-get install lamp-server^
apt-get install php5-cli
wget -O - http://ftp.drupal.org/files/projects/drush-7.x-4.4.tar.gz | tar -zxf - -C /usr/local/share
ln -s /usr/local/share/drush/drush /usr/local/bin/drush
drush self-update
apt-get install php-pear
apt-get install php5-dev
apt-get install php5-gd
pecl install uploadprogress
-> add "extension=uploadprogress.so" to php.ini in /etc/php5/apache2
/etc/init.d/apache2 restart
cd /var/www/
drush dl
mv drupal-7.8/ drupal
-> change the specific version number if needed on the previous line
cd drupal
cd sites/default/
cp default.settings.php settings.php
chmod 777 settings.php
mkdir files
chmod 777 files/
These commands will give you your initial Drupal install. It will not handle the typical virtual host editing you will need. That will be covered in my next post. Simply go to this server's address in a browser, and fill out the information to complete the configuration of Drupal.
After Drupal is configured, you can use chmod to change the security of the settings.php file.
By the way, I grabbed a lot of this from various sites on the web, particularly the Drush part.





Recent comments
2 weeks 5 days ago
2 weeks 5 days ago
3 weeks 5 days ago
6 weeks 2 days ago
6 weeks 4 days ago
6 weeks 4 days ago
21 weeks 2 hours ago
21 weeks 4 hours ago
21 weeks 4 hours ago
21 weeks 9 hours ago