Installation of Drupal 8 on Ubuntu 14.04.1 lts, apache2, php, mysql and phpmyadmin

iKnow-IT banner

This video shows the installation of apache2, php, mysql, phpmyadmin and Drupal 8 on Ubuntu 14.04.1 lts.

$ sudo su -

1.    # apt-get install apache2 -y

       now we can test if apache works
       test your site http://localhost/

       # apt-get install php5 libapache2-mod-php5  -y
       # /etc/init.d/apache2 restart

       # vi /var/www/html/test.php
       add the following line to this file:    <?php phpinfo(); ?>
       test if php is coorectly working: http://localhost/test.php


2.   #  apt-get install mysql-server -y


3.   # apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin -y
               select apache2 !!!!! (with space bar)
               3x <pwd>

       # vi /etc/php5/apache2/php.ini

       Change this line:
               To look like this:

Create file /etc/apache2/httpd.conf
insert the line: ServerName localhost

# /etc/init.d/apache2 restart

4. # mysql -u root -p

Enter password: ....
mysql>create database drupal;
mysql> create user 'jasper'@'localhost';
mysql> update mysql.user set password=password('geheim') where user='jasper';
mysql> grant all privileges on drupal.* to 'jasper'@'localhost';
mysql> flush privileges;
mysql> show grants for 'jasper'@'localhost';
mysql> exit



Download&Extend   tab

Download Drupal 8.0 (latest version)


cp /home/jasper/Downloads/drupal-8.0.0-beta4.tar.gz /var/www/html
cd /var/www/html
tar xzvf drupal-8.0.0-beta4.tar.gz
mv drupal-8.0.0-beta4  jasper
chown -R www-data.www-data jasper


cd /etc/apache2/sites-available
cp 000-default.conf <SITENAME>.conf
vi <SITENAME>.conf
Edit the file to look like this (the changes are in bold).
in this example I use port 8001. (I have alway's several drupal site under development and use for a drupal site a unique port, in this example 8001)

       <VirtualHost *:8001>

       ServerAdmin webmaster@localhost
       ServerName <SITENAME>

       DocumentRoot /var/www/html/<SITENAME>


a2ensite <SITENAME>               

# vi /etc/apache2/apache2.conf

       modify the following lines

<Directory /var/www/>
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted

into tho following lines

<Directory /var/www/>
      Options Indexes FollowSymLinks
      AllowOverride All
      Require all granted

/etc/init.d/apache2 reload


If you use another as port 80, you can add the port to the ports.conf file

Listen 80
Listen 8001


vi /etc/apache2/ports.conf

a2enmod vhost_alias rewrite

/etc/init.d/apache2 reload