Installing LAMP (newest version) on linux mint 19

Vainillaweasel
  5 years ago
  1

<style> .sudo{ color: #ff33cc; } .php{ color:red;} </style>

In this quick tutorial we are going to install the recent version of LAMP

  1. First we need to install Apache2 using the following CLI command:
  2. $sudo apt-get install apache2

    then we will enter into our web browser and type: "http://localhost/"

    the next thing has to appear

  3. Then we install mysql-server using the following CLI command:
  4. $sudo apt-get install mysql-server

    Check out mysql version with:

    $mysql --version

  5. Then we will install php7.2 using the following CLI command:
  6. $sudo apt-get install php7.2 libapache2-mod-php7.2

  7. Restart system with:
  8. $sudo systemctl restart apache2

  9. Check PHP installation with:
  10. $php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'

    You will see the next code in the console 'Your Php installation is working fine'

    And there you go!, all the LAMP utilities for developing on web

Comments
Vainillaweasel 4 years ago

It includes Apache 2, php 7.2, mysql you can also try to install xampp for linux(includes all this tools in one installation) here is the link: https://www.apachefriends.org/download.html , here is a tutorial to get it started https://www.wikihow.com/Install-XAMPP-on-Linux , sometimes phpMyAdmin doesn't start so you should go and try next commands on Terminal:

$sudo /opt/lampp/lampp start
$ sudo su root
# sudo service mysql stop
# sudo /opt/lampp/lampp restart


SNIPERS 4 years ago

i didnt see a place to vote also what isincluded in lamp