Retrospecter... Installing Drupal 8(I).- A small context, hosting and first problems

Launching Drupal 8

Retrospecter, obviously we talk about past because before writing this post the webpage needs to be installed, I will write down all the steps I remember I did duting install, starting with the server, I did the install on an Servermania VPS using Facebook offers, to do so I followed these steps:

  1. Log into your Facebook Account
  2. Visit Servermania
  3. Take a look at VPS solutions but do not contract anything
  4. Com back to Facebook and browse around, you are likely to find ads about Servermania with better offers than in web.

I 'am usually made to Debian, I have been using it as my main distro and I'm very familiar with the way things work on Debian so unless I state anything different all I will be doing will be done in Debian.

Once you contract your VPS and it's provisioned, you will get ssh access to it, so you don't need to mess with panels like you use to don on web hosting (they are there but I ever use them), once I had a problem and support was fast and swift (they are your alternative to going to CPD and plugging a KVM).

Let us think we already have a basic LAPP instalation working (Debian + apache + PHP + PostgreSQL), in this case this server has been running for months so it was already installed.

Installing a CMS is something easier, in this case just go to  Drupal website, look for the download link copy and download from the server:

cd /var/www/

wget https://ftp.drupal.org/files/projects/drupal-8.2.3.tar.gz

tar -zxvf drupal-8.2.3.tar.gz

mv drupal-8.2.3 drupal

Once it's downloaded you have all the files on your /var/www you need to edit apache configuration, I tend to use vim as my main editor, I know ye olde VI is not very popular, but I strongly recommend giving it a serious try, it's easy, simple and powerful. If we follow Debian's philosophy we need to create a site file for each site on our sites-available folder. Let us do all the cycle::

vi /etc/apache2/sites-available/010-drupal.conf <- this number is used for priority on load

We add the content to our site, since there is only one server name in here we don't need to add more than one ServerName:

<VirtualHost *:80>
        ServerAdmin webmaster@praderas.org
        ServerName www.praderas.org
        ServerAlias praderas.org
        DocumentRoot /var/www/drupal
        <Directory />
                Options FollowSymLinks
                AllowOverride None
       </Directory>
        <Directory /var/www/drupal>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

we can activate our server linking the sites-available file into sites-enabled:

ln -s /etc/apache2/sites-available/010-drupal.conf /etc/apache2/sites-enabled/

service apache2 restart

Now we can go to our browser and start the installation process.

First steps on installation are asking about Language and review pre-requisites and here it comes the first problem, Drupal requires PHP 5.5.9, but the installed version es 5.4, no worries, it was an old server, maybe we need to update:

apt-get update

apt-get upgrade

Ouch! highest Wheezy PHP version is 5.4.9 ... we need to dist-upgrade.

T.N.- Retrospecter is a section of a comedy show in Spain that makes jokes on old movies footage