Steps I take to install Drupal 7 / Backdrop CMS dev server on an Ubuntu 12.04 LTS on say Digital Ocean Droplet

Easily redoable for a quick dev server for Drupal 7 and/or Backdrop CMS on say a Digital Ocean Droplet:

# apt-get update
# apt-get upgrade // keep local versions of config files
# sudo reboot
# apt-get install lamp-server^
# apt-get update
# php --version
PHP 5.3.10-1ubuntu3.8 with Suhosin-Patch (cli) (built: Sep  4 2013 20:05:42) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
# apt-get install php5-gd
# apt-get install php-pear
# apt-get install make
# pecl install uploadprogress
# echo "extension = uploadprogress.so" > /etc/php5/conf.d/uploadprogress.ini
# pear channel-discover pear.drush.org
Adding Channel "pear.drush.org" succeeded
Discovery of channel "pear.drush.org" succeeded
# pear install drush/drush
downloading drush-6.1.0.0.tgz ...
Starting to download drush-6.1.0.0.tgz (504,788 bytes)
.....................................................................................................done: 504,788 bytes
install ok: channel://pear.drush.org/drush-6.1.0.0
# drush // run once as root
# drush --version
 Drush Version   :  6.1.0
# apt-get install phpmyadmin
# apt-get install git
# apt-get install postfix

I add a user for specific classes of projects, say working with backdrop:

# adduser backdrop

Log in as backdrop user and clone backdrop master (without dev permissions using https) into backdrop01 directory

$ git clone https://github.com/backdrop/backdrop.git backdrop01

Setup db via phpmyadmin

Setup Virtual Host

$ cd /etc/apache2/sites-available/

$ sudo vi backdrop

$ cat backdrop

<VirtualHost *:80>

ServerName backdrop01.example.com

DocumentRoot /home/backdrop/backdrop01

<Directory "/home/backdrop/backdrop01">

Options Indexes FollowSymLinks MultiViews

AllowOverride All

</Directory>

</VirtualHost>

$ sudo a2ensite backdrop
$ sudo service apache2 reload

Apache mod rewrite

$ sudo a2enmod rewrite
$ sudo service apache2 reload

Install backdrop (README.TXT):

  • Create a new database, username, and password for Backdrop to use in MySQL or PostgreSQL.

  • Point your browser at the URL of your Backdrop installation. On Apache web servers, you will be directed to the install screen. If you're not redirected, visit the install URL. If Backdrop was installed at http://example.com/backdrop, the install URL would be http://example.com/backdrop/core/install.php.

  • Follow the instructions provided in the installer.

    • Standard

    • The sites/default/files and settings file need to be created and www-data needs write access to them (after install complete, only to files). Provide and hit try again.

You're good to go if you have wild card DNS set up, otherwise attend to DNS.