LAMP installation on Ubuntu Server 16.04 First we need to update Server ” sudo apt-get update ” Install apache2 ” sudo apt-get install apache2 ” Check apache2 installation: run ” ifconfig ” and then type your inet addr into the browser MySQL installation ” sudo apt-get install mysql-server ” Set password for MySQL root user MySQL secure installation, for greater security, you can configure VALIDATE PASSWORD plugin, as shown in the video There you can change root password for MySQL PHP 7.0 installation “sudo apt-get install php7.0 libapache2-mod-php7.0 php-mcrypt php-mysql php-mbstring php7.0-mbstring php-gettext ” I use a text editor ‘vim’ Add index.php to the beginning of index files ” sudo vim /etc/apache2/mods-enabled/dir.conf ” Restart and check apache2 service ” sudo systemctl restart apache2 “, ” sudo systemctl status apache2 ” See PHP on your Server, create new file ” sudo vim /var/www/html/info.php
” Type in browser ” http://your_server_ip/info.php ”

LAMP install on Ubuntu Server 16.04 (Apache2 PHP 7.0 MySQL)
Tagged on:                                                                     

Leave a Reply

Your email address will not be published. Required fields are marked *