Top Banner

of 16

Ubuntu 16.04 LAMP Server Tutorial With Apache 2

Mar 01, 2018

Download

Documents

fahim sheriff
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    1/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 1/16

    English| Deutsch

    This tutorial exists for these OS versions

    Ubuntu 15.10 (Wily Werewolf)

    Ubuntu 15.04 (Vivid Vervet)

    Ubuntu 14.10 (Utopic Unicorn)

    Ubuntu 14.04 LTS (Trusty Tahr)

    Ubuntu 13.10 (Saucy Salamander)

    On this page

    Preliminary Note

    Installing MariaDB as MySQL replacement

    Install Apache 2.4

    Install PHP 7

    Test PHP and get details about your PHP installation

    Get MySQL / MariaDB support in PHP

    Install the APCu PHP cache to speed up PHP

    Enablethe SSL website in apache

    Install phpMyAdmin

    Links

    Ubuntu 16.04 LAMP server tutorial with Apache 2.4,

    PHP 7 and MariaDB (instead of MySQL)

    LAMP is short for Linux,

    Apache, MySQL, PHP. This

    tutorial shows how you can

    install an Apache 2 web

    server on an Ubuntu 16.04

    (Xenial Xerus) server with

    PHP 7 (mod_php) and

    MySQL support.

    Additionally, I will installPHPMyAdmin to make

    MySQL administration

    easier. A LAMP setup is the

    perfect basis for CMS

    systems like Joomla,

    Wordpress or Drupal.

    Preliminary Note

    In this tutorial, I will use the hostname server1.example.comwith the IP address

    192.168.1.100. These settings might differ for you, so you have to replace them where

    appropriate.

    I recommend to use a minimal Ubuntu server setup as basis for the tutorial, that can be a virtual-

    or root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use

    our minimal server tutorialto install a server from scratch.

    I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:

    sudo su

    Tutorials

    Tutorial search

    Tags Forums Contribute Subscribe ISPConfig News

    Tutorials Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PH

    Log in or Sign up

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-15-04-lamp/https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/https://www.howtoforge.com/subscription/http://www.ispconfig.org/http://www.lxer.com/https://www.howtoforge.com/subscription/http://www.ispconfig.org/http://www.lxer.com/https://www.howtoforge.com/https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/https://www.howtoforge.com/https://www.howtoforge.com/https://www.howtoforge.com/tutorial/ubuntu-minimal-server-install/https://www.howtoforge.com/community/login/https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/https://www.howtoforge.com/http://www.lxer.com/http://www.ispconfig.org/https://www.howtoforge.com/subscription/https://www.howtoforge.com/contribute/https://www.howtoforge.com/community/https://www.howtoforge.com/tutorials/https://www.howtoforge.com/search/https://www.howtoforge.com/https://www.howtoforge.com/tutorial/ubuntu-minimal-server-install/https://www.howtoforge.com/installing-apache2-with-php5-and-mysql-on-ubuntu-13.10-lamphttps://www.howtoforge.com/ubuntu-lamp-server-with-apache2-php5-mysql-on-14.04-ltshttps://www.howtoforge.com/ubuntu-14.10-lamp-server-tutorial-with-apache-php-and-mysqlhttps://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-15-04-lamp/https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-lamp/https://www.howtoforge.de/https://www.howtoforge.com/
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    2/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 2/16

    Installing MariaDB as

    MySQL replacement

    We will install MariaDB instead of MySQL.MariaDB is a MySQL fork maintained by the

    original MySQL developer Monty Widenius.

    MariaDB is compatible with MySQL and

    provides interesting new features and speed

    improvements when compared to MySQL.

    Run the following command to install

    MariaDB-server and client:

    apt-get -y install mariadb-server mariadb-client

    Now we set a root password for MariaDB.

    mysql_secure_installation

    You will be asked these questions:

    Enter current password for root (enter for none):

  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    3/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 3/16

    To leave the MariaDB shell, enter the command "quit" and press enter.

    Install Apache 2.4

    Apache 2 is available as an Ubuntu package, therefore we can install it like this:

    apt-get -y install apache2

    Now direct your browser to http://192.168.1.100, and you should see the Apache2 default

    page (It works!):

    https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/mariadb_login.png
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    4/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 4/16

    The document root of the apache default vhost is /var/www/html on Ubuntu and the main

    configuration file is /etc/apache2/apache2.conf. The configuration system is fully

    documented in /usr/share/doc/apache2/README.Debian.gz.

    Install PHP 7

    We can install PHP 7 and the Apache PHP module as follows:

    apt-get -y install php7.0 libapache2-mod-php7.0

    Then restart Apache:

    systemctl restart apache2

    Test PHP and get details about your PHP installation

    The document root of the default web site is /var/www/html. We will now create a small PHP file

    (info.php) in that directory and call it in a browser. The file will display lots of useful details aboutour PHP installation, such as the installed PHP version.

    nano /var/www/html/info.php

    https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/apache_ubuntu_default_page.png
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    5/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 5/16

    Then change the owner of the info.php file to the www-data user and group.

    chown www-data:www-data /var/www/html/info.php

    Now we call that file in a browser (e.g. http://192.168.1.100/info.php):

    As you see, PHP 7.0 is working, and it's working through theApache 2.0 Handler, as shown in

    the Server API line. If you scroll further down, you will see all modules that are already enabled

    in PHP5. MySQL is not listed there which means we don't have MySQL / MariaDB support in PHP

    yet.

    Get MySQL / MariaDB support in PHP

    To get MySQL support in PHP, we can install thephp7.0-mysql package. It's a good idea to

    install some other PHP modules as well as you might need them for your applications. You can

    search for available PHP modules like this:

    apt-cache search php7.0

    Pick the ones you need and install them like this:

    https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/ubuntu_1604_php7_info.png
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    6/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 6/16

    apt-get -y install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php-gettext

    Now restart Apache2:

    systemctl restart apache2

    PHP 7 has now MySQL / MariaDB support as shown in phpinfo() above.

    Install the APCu PHP cache to speed up PHP

    APCu is a free PHP opcode cacher for caching and optimizing PHP intermediate code. It isstrongly recommended to have an Opcache installed to speed up your PHP page.

    APCu can be installed as follows:

    apt-get -y install php-apcu

    Now restart Apache:

    systemctl restart apache2

    Now reload http://192.168.1.100/info.php in your browser and scroll down to the

    modules section again. You should now find lots of new modules there:

    https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/php_mysql_installed.png
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    7/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 7/16

    Please don't forget to delete the info.php file when you don't need it anymore as it provides

    sensitive details of your server. Run the following command to delete the file.

    rm -f /var/www/html/info.php

    Enable the SSL website in

    apache

    SSL/ TLS is a security layer to encrypt the

    connection between the web browser and

    your server. Execute the following

    commands on your server to enable https://

    support. Run:

    a2enmod ssla2ensite default-ssl

    which enables the ssl module and adds a symlink in the /etc/apache2/sites-enabled folder to the

    file /etc/apache2/sites-available/default-ssl.conf to include it into the active apache configuration.

    Then restart apache to enable the new configuration:

    systemctl restart apache2

    Now test the SSL connection by opening https://192.168.1.100in a web browser.

    https://googleads.g.doubleclick.net/pcs/click?xai=AKAOjsumZJzbrRU0_xguv25rWTxs13TCLsI4CdbNzrlfdKGNqOQtVSHrcOCIQv32QYTU5cjz9zEbZhdAoXxr8-3roMgCyo_8Kmi0iplPvkGLyudIAzUSL24QojEEMc1d9JcIexDfcb9i04iOIECP7kWg6800qOnAAdwQ3MAnFG1_2JPEa_OyypgrM2U3z2W-8ItxD8SdpKdRCHb75Dms2C9euu3W_9kkfM7LNmJB&sai=AMfl-YRNECJ7bSTP8xTBoHNaRQYWFfSjyfvdHf5niXzU9c_GVXMmBoNSNaCbRnV_rhUo3SFZtjI4XvAHZQ&sig=Cg0ArKJSzKXelBXRows9&adurl=https://ispprotect.com/webscan/%3Fpk_campaign%3Dhtfwebhttps://192.168.1.100/https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/apcu_installed.png
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    8/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 8/16

    You will receive an SSL warning as the SSL certificate of the server is a "self-signed" SSL

    certificate, this means that the browser does not trust this certificate by default and you have to

    accept the security warning first. After accepting the warning, you will see the apache default page.

    The closed "Green Lock" in front of the URL in the browser shows that the connection is

    encrypted. To get rid of the SSL warning, replace the self-signed SSL certificate /etc/ssl/certs/ssl-cert-snakeoil.pem with an officially signed SSL certificate from an SSL Authority.

    https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/ssl_default_page.pnghttps://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/ssl_warning1.png
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    9/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 9/16

    Install phpMyAdmin

    phpMyAdminis a web interface through which you can manage your MySQL databases. It's a

    good idea to install it:

    apt-get -y install phpmyadmin

    You will see the following questions:

    Web server to configure automatically:

  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    10/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 10/16

    Share this page: Tweet Follow @howtoforgecom 17.6K followers

    31

    Name * Email *

    Links

    Apache: http://httpd.apache.org/

    PHP: http://www.php.net/

    MySQL: http://www.mysql.com/MariaDB: https://mariadb.com/

    Ubuntu: http://www.ubuntu.com/

    phpMyAdmin: http://www.phpmyadmin.net/

    view as pdf | print

    25 Comment(s)

    Add comment

    69Recommend

    https://www.howtoforge.com/subscription/https://www.howtoforge.com/subscription/http://www.phpmyadmin.net/http://www.ubuntu.com/https://mariadb.com/http://www.mysql.com/http://www.php.net/http://httpd.apache.org/https://www.howtoforge.com/images/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/big/phpmyadmin_screenshot.pnghttps://twitter.com/intent/user?original_referer=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&ref_src=twsrc%5Etfw&region=count_link&screen_name=howtoforgecom&tw_p=followbuttonhttps://twitter.com/intent/follow?original_referer=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&ref_src=twsrc%5Etfw&region=follow_link&screen_name=howtoforgecom&tw_p=followbuttonhttps://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&ref_src=twsrc%5Etfw&text=Ubuntu%2016.04%20LAMP%20server%20tutorial%20with%20Apache%202.4%2C%20PHP%207%20and%20MariaDB%20(instead%20of%20MySQL)&tw_p=tweetbutton&url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&via=howtoforgecom
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    11/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 11/16

    I'm not a robotreCAPTCHA

    Privacy - Terms

    Submit comment

    From: GainS at:2016-05-03 02:32:15 Reply

    From: J at:2016-05-03 16:40:35 Reply

    From:Jeff Beam at:2016-05-04 13:25:12 Reply

    From: Allen at:2016-05-06 06:38:32 Reply

    From: christ noel at:2016-05-06 22:09:40 Reply

    From:Tuan Anh Ha at:2016-05-08 10:57:55 Reply

    From:J.L. Barbry at:2016-05-09 09:51:18 Reply

    From: till at:2016-05-15 08:33:22 Reply

    Comments

    Thank you so much. Works perfectly.

    Nice work, complete and worked perfectly first time.

    excellent work thanks

    WWWonderfuull!!!! :-)

    hello thanks for your tuto its works without problems thanks for the time spent by writting it its help

    someone like me

    Thank you very much! Vielen Dank fr Ihre Hilfe!

    Thank you to you for this tutorial which is very easy to use.Unfortunately, I get an error in the last

    step, after the installation of phpMyAdmin:The requested URL /phpmyadmin/ was not found on this

    server.

    The same error with 127.0.1/phpmyadmin or localhost/phpmyadmin.

    I tried 3 times to uninstall and reinstall without success.Pity that Ubuntu does not offer a LAMP

    package !Best regards

    p

    https://www.google.com/intl/en/policies/terms/https://www.google.com/intl/en/policies/privacy/
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    12/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 12/16

    From: Gareth at:2016-05-21 15:39:23 Reply

    From:Bob W at:2016-05-13 15:06:13 Reply

    From: DSmidge at:2016-05-14 21:05:12 Reply

    From: till at:2016-05-15 08:16:41 Reply

    From:FranzS at:2016-05-15 15:07:40 Reply

    From: Clark at:2016-05-16 12:52:44 Reply

    Try to run:

    dpkg-reconfigure phpmyadmin

    and ensure that you select apache2 as config option. If no webserver config option is selected

    during phpmyadmin installation, then the alias to accessphpmyadmin does not get added to the

    apache config.

    Hi

    You probably missed the fact that you need to put a mark in the selection of apache2 in the

    config. It definitely looks like it's selected it when the red box is in the selection thing, but unless

    you press space it won't mark it as selected and it won't configure it it for apache. Hope that

    makes sense?!

    Cheers

    Gareth

    Followed the instructions with 16_04 and everything worked great up to phpMyAdmin.

    I get the message:

    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using ? password: NO)

    Uninstalled and tried again.

    Still at a loss????

    Other Ubuntu forum posts were for password: YES.

    What should I check to solve this?

    Installing APCu is not necessary.

    As it states on http://php.net/manual/en/intro.apcu.php: "APCu is APC stripped of opcode caching."

    And that's exactly why we install APCu. For Opcode caching, we have already "Opcache"

    installed. But many software relies on the APC specific caching functions e.g. as a page cacheand that's why we install APCu on top of Opcache, it adds the APC functions to PHP when

    Opcache is installed.

    Thank you for the Tutorial! It is very awesome.

    On Unbuntu 16.04 i get a failure message in /var/syslog if i take a closer look.

    It seems that setting a secure password for root user will do create problems with mysqlcheck

    because the password ist not updated in /etc/mysql/debian.cnf

    For details see:

    http://askubuntu.com/questions/772785/16-04-mariadb-error-in-syslog-mysqlcheck

  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    13/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 13/16

    From:tom at:2016-05-16 14:53:40 Reply

    From: steve at:2016-05-17 01:16:47 Reply

    From: Dante Camacho at:2016-05-18 18:48:18 Reply

    From: Stephanie at:2016-05-20 01:22:31 Reply

    From: Andriy at:2016-05-23 22:44:53 Reply

    From: stefano giacomini at:2016-05-26 10:00:08 Reply

    From: Bibot at:2016-06-06 06:41:51 Reply

    From: otis at:2016-06-07 07:47:50 Reply

    From: till at:2016-06-07 08:05:04 Reply

    Thanks a lot spent hours trying to get my lamp running. I used mysql though :)

    Thanks, this helped getting my new dev server up and running :)

    I wonder if you can help. I have followed all you tutorial which is well presented. but I cannot access

    phpmyadmin. I also did not know where to add the last line in you tutorial about unix_socket.

    i have reinstalled the phpmyadmin and ensure apache2 is the server to use. i have checked and

    included the following line to apache2.conf

    Include /etc/phpmyadmin/apache.conf

    but still no access. any help would be great thankyou

    Thank you so much for this pice of cake!

    Hi

    I managed to install everything fine butwhen I tried to run info.php I got the following message:

    Forbidden

    You don't have permission to access / on this server.

    Apache/2.4.18 (Ubuntu) Server at localhost Port 80 Here are the document root file

    permissions:root@Satellite-C660:/var/www/html# ls -ltotal 16-rw-r--r-- 1 root root 11321 May 20

    00:56 index.html-rw-r--r-- 1 www-data www-data 35 May 20 01:55 info.phproot@Satellite-

    C660:/var/www/html#

    Amazing! Thank you for this great tutorial.

    excellent work thanks!

    It says "ERROR 1046(3D000) at line 1: No database selected"

    Not Found

    The requested URL /phpmyadmin was not found on this server.

    Apache/2.4.18 (Ubuntu) Server at localhost Port 80 i have a problem to access on phpmyadmin i

    don't know why, i've followed perfectly this tuto, please could you help me?

  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    14/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 14/16

    From: Ed at:2016-06-07 16:58:52 Reply

    From: till at:2016-06-08 07:45:27 Reply

    Author: Till Brehm

    Last updated: May 20, 2016

    Tags: apache, linux, mysql, php, ubuntu,web server

    You missed to enable phpmyadmin for apache (as described in the tutorail). You can redo the

    step by running:

    dpkg-reconfigure phpmyadmin

    then ensure that apache 2 is selected, there must show a cross for the apache option which gets

    enabled with the whitespace key of your keyboard. If no cross is shown there, then apache is not

    active for phpmyadmin and you wont be able to reach it then!

    Hi,

    Thanks, but Apache 2.4 is valuable with the event module enabled, and ISPConfig won't work with it

    - it insists on using morker right? Can't you change this so we can use the much better event,

    please? Thanks

    ISPConfig does not depend on a specific apache mode, you just will not be able to use the

    mod_php mode in ispconfig in worker mode.

    Sign up now!

    Tutorial Info

    VMware image download

    Ubuntu 16.04 LAMP server tutorial with Apache

    Tutorials Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PH

    https://adclick.g.doubleclick.net/pcs/click?xai=AKAOjstE01PGtcUvizylh8Ny8tC4ViEg50UqxA-utYPLM7L4YZbEYhdS6i9Z7fAi0fyt3ircy04AJUdEub5bILiVMjcLiNb9pWa-2cvE6DiIgcurvpa5ObxeEkxsVqXVdQ&sig=Cg0ArKJSzLgnlBwr1L5Z&urlfix=1&adurl=https://adclick.g.doubleclick.net/aclk%3Fsa%3DL%26ai%3DCy0iJ1upjV6WNGdGmoAOdp6-wCM2u0MkI3cCD344BwI23ARABIABg5ZLog9gOggEXY2EtcHViLTMwNDMyMjMyMTYyNzYwOTnIAQngAgCoAwGqBIMCT9AJH_5JRCUZpVl9Ii-6GQpcSIxkd-uTXBushY_tvG2hNV42ncU18RQPXf6SE5PPwatjS-9Bxt9Hq2dj00i4La4iPpLaNPSJ77_hyASUeEv7jII4WNbmO2YOEcSpQ9SD59rweOUWyNG0KtO3Ks1Q1udRarRg_RTBwWoGXYSNEmSgzh47yll140pZsjCZQTPmusxYPqzbYhoE9ZvFD0Z7DCD6-9Eg7E4fbnn03XlJhcSKeGpGf1RWGvB1PHb2egDRHOTccx_1-8MXBPAZQhBd8zkvq4TVhOw6wvpX30yvitgACYIBUf6Uanmr-Lps-O-FAGPy7CyBL7tboRbVso2G0oYYrOAEAYAG0a_L9rDFl5nfAaAGIagHpr4b2AcA%26num%3D1%26sig%3DAOD64_1X2hJdLE8Hbn3uz4avHLS6eXdtuA%26client%3Dca-pub-3043223216276099%26adurl%3Dhttp://go.jumpcloud.com/signup-integrate-macs-it-infrastructure-v3.html%253Frs%253DBid%252520Manager%2526cs%253DUC4_ControlMac_728x90_Bl_Rhttps://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/https://www.howtoforge.com/https://www.howtoforge.com/feedhttps://plus.google.com/+howtoforge/postshttps://www.facebook.com/howtoforgehttps://twitter.com/howtoforgecomhttps://www.howtoforge.com/community/login/https://www.howtoforge.com/tutorials/web+server/https://www.howtoforge.com/tutorials/ubuntu/https://www.howtoforge.com/tutorials/php/https://www.howtoforge.com/tutorials/mysql/https://www.howtoforge.com/tutorials/linux/https://www.howtoforge.com/tutorials/apache/
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    15/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)

    https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 15/16

    Download: Ubuntu_16_04_lamp_server.ova

    Guide: VMWare Image Import Guide.

    Other Downloads: List of all VMWare Images

    Xenforo skin by Xenfocus Contact Help Imprint

    TermsHowtoforge projektfarm GmbH.

    2.4, PHP 7 and MariaDB

    (instead of MySQL) as

    ready to use virtual

    machine image download

    in ova / ovf format,

    compatible with VMWare

    and Virtualbox.

    Share This Page

    Tweet

    Follow 17.6K followers

    31

    33%off

    SANDISK SSD PLUS SOLIDSTATE DRIVE SDSSDH

    MRP: Rs. 4,600.00Rs. 3,079.00(details + delivery)

    SEAGATE DESKTOP 1 TBSOLID STATE HYBRID

    Rs. 5,490.00(details + delivery)

    NEW 14 IN 1 REPAIROPENING TOOL KIT

    Rs. 299.00(details + delivery)

    69Recommend

    http://www.amazon.in/gp/dra/info/ref=dra_a_rv_ss_hn_xx_P1400_1000?pn=1&pg=dra&pp=rv%2Cv%2CB00S9Q9UKS%3AB00EIQTOFY%3AB01CX4X962%2CA21TJRUUN4KGV%2CB00S9Q9UKS%2Cw96Nv6UM2OpFy71-aeqvJVKOoRM&adv=A21TJRUUN4KGV&uh_it=773eac8d2d32e1779f7457c15186feaf_Shttps://adclick.g.doubleclick.net/aclk?sa=L&ai=CG6Jd1-pjV4jBNsahvgSt3KXYDa-367cHp4bQwOMBwI23ARABIABg5ZLog9gOggEXY2EtcHViLTMwNDMyMjMyMTYyNzYwOTnIAQmoAwGqBM4BT9B0U1nlQTy5Qdb7vi_wd0NwRAZwisw9VB6jCHpNo6lAMXA9Aq6J5M7qxN93jd68tQZGCkfFLnw4-SVxYs2RuQPIKeYyl5PImcn7-dTSA_mARe4Z6Di-7djhrErwaSovQvIJuc5aRaVybKsoGYc9Vhb_tX2lTWN68-LnOFiFzarqiyzgLmbk8Q3hrRr-h87m9w8_uRVWLxlel0cYv3upbU820D-e7V1TnjUC_OSKO6U0wJ7xkcBS9n0UVOje-avKUzPIIwQ-XktPNXBdmR-ABt35k7H8nqSKjwGgBiGoB6a-G9gHAA&num=1&sig=AOD64_0BkDyAUOS5mIbke8y_QeXxWdEX0Q&client=ca-pub-3043223216276099&adurl=https://aax-fe-sin.amazon-adsystem.com/x/c/QnyAlNvU3rKK3qpg_Edt_DsAAAFVXk1hzgUAAAV4Ac03Mrk/http://www.amazon.in/dp/B01CX4X962/ref=dra_a_rv_ss_hn_xx_P1400_1000?tag=dradisplayi0a-21&ascsubtag=773eac8d2d32e1779f7457c15186feaf_Shttps://adclick.g.doubleclick.net/aclk?sa=L&ai=CG6Jd1-pjV4jBNsahvgSt3KXYDa-367cHp4bQwOMBwI23ARABIABg5ZLog9gOggEXY2EtcHViLTMwNDMyMjMyMTYyNzYwOTnIAQmoAwGqBM4BT9B0U1nlQTy5Qdb7vi_wd0NwRAZwisw9VB6jCHpNo6lAMXA9Aq6J5M7qxN93jd68tQZGCkfFLnw4-SVxYs2RuQPIKeYyl5PImcn7-dTSA_mARe4Z6Di-7djhrErwaSovQvIJuc5aRaVybKsoGYc9Vhb_tX2lTWN68-LnOFiFzarqiyzgLmbk8Q3hrRr-h87m9w8_uRVWLxlel0cYv3upbU820D-e7V1TnjUC_OSKO6U0wJ7xkcBS9n0UVOje-avKUzPIIwQ-XktPNXBdmR-ABt35k7H8nqSKjwGgBiGoB6a-G9gHAA&num=1&sig=AOD64_0BkDyAUOS5mIbke8y_QeXxWdEX0Q&client=ca-pub-3043223216276099&adurl=https://aax-fe-sin.amazon-adsystem.com/x/c/QnyAlNvU3rKK3qpg_Edt_DsAAAFVXk1hzgUAAAV4Ac03Mrk/http://www.amazon.in/dp/B00EIQTOFY/ref=dra_a_rv_ss_hn_xx_P1400_1000?tag=dradisplayi0a-21&ascsubtag=773eac8d2d32e1779f7457c15186feaf_Shttps://adclick.g.doubleclick.net/aclk?sa=L&ai=CG6Jd1-pjV4jBNsahvgSt3KXYDa-367cHp4bQwOMBwI23ARABIABg5ZLog9gOggEXY2EtcHViLTMwNDMyMjMyMTYyNzYwOTnIAQmoAwGqBM4BT9B0U1nlQTy5Qdb7vi_wd0NwRAZwisw9VB6jCHpNo6lAMXA9Aq6J5M7qxN93jd68tQZGCkfFLnw4-SVxYs2RuQPIKeYyl5PImcn7-dTSA_mARe4Z6Di-7djhrErwaSovQvIJuc5aRaVybKsoGYc9Vhb_tX2lTWN68-LnOFiFzarqiyzgLmbk8Q3hrRr-h87m9w8_uRVWLxlel0cYv3upbU820D-e7V1TnjUC_OSKO6U0wJ7xkcBS9n0UVOje-avKUzPIIwQ-XktPNXBdmR-ABt35k7H8nqSKjwGgBiGoB6a-G9gHAA&num=1&sig=AOD64_0BkDyAUOS5mIbke8y_QeXxWdEX0Q&client=ca-pub-3043223216276099&adurl=https://aax-fe-sin.amazon-adsystem.com/x/c/QnyAlNvU3rKK3qpg_Edt_DsAAAFVXk1hzgUAAAV4Ac03Mrk/http://www.amazon.in/dp/B00S9Q9UKS/ref=dra_a_rv_ss_hn_xx_P1400_1000?tag=dradisplayi0a-21&ascsubtag=773eac8d2d32e1779f7457c15186feaf_Shttps://adclick.g.doubleclick.net/aclk?sa=L&ai=CG6Jd1-pjV4jBNsahvgSt3KXYDa-367cHp4bQwOMBwI23ARABIABg5ZLog9gOggEXY2EtcHViLTMwNDMyMjMyMTYyNzYwOTnIAQmoAwGqBM4BT9B0U1nlQTy5Qdb7vi_wd0NwRAZwisw9VB6jCHpNo6lAMXA9Aq6J5M7qxN93jd68tQZGCkfFLnw4-SVxYs2RuQPIKeYyl5PImcn7-dTSA_mARe4Z6Di-7djhrErwaSovQvIJuc5aRaVybKsoGYc9Vhb_tX2lTWN68-LnOFiFzarqiyzgLmbk8Q3hrRr-h87m9w8_uRVWLxlel0cYv3upbU820D-e7V1TnjUC_OSKO6U0wJ7xkcBS9n0UVOje-avKUzPIIwQ-XktPNXBdmR-ABt35k7H8nqSKjwGgBiGoB6a-G9gHAA&num=1&sig=AOD64_0BkDyAUOS5mIbke8y_QeXxWdEX0Q&client=ca-pub-3043223216276099&adurl=https://aax-fe-sin.amazon-adsystem.com/x/c/QnyAlNvU3rKK3qpg_Edt_DsAAAFVXk1hzgUAAAV4Ac03Mrk/http://www.amazon.in/dp/B00S9Q9UKS/ref=dra_a_rv_ss_hn_xx_P1400_1000?tag=dradisplayi0a-21&ascsubtag=773eac8d2d32e1779f7457c15186feaf_Shttps://twitter.com/intent/user?original_referer=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&ref_src=twsrc%5Etfw&region=count_link&screen_name=howtoforgecom&tw_p=followbuttonhttps://twitter.com/intent/follow?original_referer=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&ref_src=twsrc%5Etfw&region=follow_link&screen_name=howtoforgecom&tw_p=followbuttonhttps://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&ref_src=twsrc%5Etfw&text=Ubuntu%2016.04%20LAMP%20server%20tutorial%20with%20Apache%202.4%2C%20PHP%207%20and%20MariaDB%20(instead%20of%20MySQL)&tw_p=tweetbutton&url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Finstall-apache-with-php-and-mysql-on-ubuntu-16-04-lamp%2F&via=howtoforgecomhttps://www.howtoforge.com/import_vmware_images/https://www.howtoforge.com/subscription/https://www.howtoforge.com/https://www.howtoforge.com/community/help/termshttps://www.howtoforge.com/imprint/https://www.howtoforge.com/community/help/https://www.howtoforge.com/community/misc/contacthttp://www.xenfocus.com/http://www.xenfocus.com/https://www.howtoforge.com/list-of-downloadable-vmware-images/https://www.howtoforge.com/import_vmware_images/https://www.howtoforge.com/subscription/
  • 7/26/2019 Ubuntu 16.04 LAMP Server Tutorial With Apache 2

    16/16

    6/18/2016 Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL)