1. Install Ubuntu Server 16.04

2. Install OpenSSH Server and LAMP Server at installation time.

3. Install phpmyadmin: (to administrate databases)

apt-get install phpmyadmin

4. Create ROOT password:

sudo passwd root

5. Install PHP Composer:

sudo apt-get install curl php-cli php-mbstring git unzip

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

6. Install Drush Launcher (so drush can be used anywhere)

sudo wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar
sudo chmod +x drush.phar

7. Install Drupal (latest) using Composer:

composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction

8. Changing permissions and ownership:

sudo chown www-data:www-data sites/default/files –R

9. Move an Apache Web Root to a New Location:

sudo nano /etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>

        ServerAdmin webmaster@localhost

       DocumentRoot {enter/ your/ new/ path/ to/ directory/}

        <Directory />

                Options FollowSymLinks

                AllowOverride None

       </Directory>

      <Directory {enter\ your\ new\ path\ to\ directory\}>

                Options Indexes FollowSymLinks MultiViews

                AllowOverride None

                Require all granted

        </Directory>

10. Install Compass/Ruby for Ubuntu 16.04

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev

curl -L https://get.rvm.io | bash -s stable

gpg2 –keyserver hkp://keys.gnupg.net –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

source ~/.rvm/scripts/rvm

echo “source ~/.rvm/scripts/rvm” >> ~/.bashrc

To install RVM you need software-properties-common installed in order to add PPA repositories.

sudo apt-get install software-properties-common

Add the PPA and install the package:

sudo apt-add-repository -y ppa:rael-gc/rvm

sudo apt-get update

sudo apt-get install rvm

rvm install 2.3

rvm use 2.3.1 –default

gem install compass