A LAMP Stack is a set of open-source software that can be used to create websites and web applications. LAMP is an acronym: these stacks typically consist of the Linux operating system, the Apache HTTP Server, the MySQL relational database management system, and the PHP programming language.
To install LAMP on your computer follow these steps.
Step 1: Update your systemsudo apt-get update
Step 2: Install Apachesudo apt install mysql-server
Step 3: Installing MYSQLsudo apt install mysql-server
now run this:sudo mysql
Next, check which authentication method each of your MySQL user accounts use with the following command:mysql > SELECT user,authentication_string,plugin,host FROM mysql.user;
output will be like this:
+------------------+-------------------------------------------+-----------------------+-----------+
| user | authentication_string | plugin | host |
+------------------+-------------------------------------------+-----------------------+-----------+
| root | | auth_socket | localhost |
| mysql.session | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
| mysql.sys | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |
| debian-sys-maint | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password | localhost |
+------------------+-------------------------------------------+-----------------------+-----------+
4 rows in set (0.00 sec)
run thismysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
mysql> FLUSH PRIVILEGES;
Step 4: Install PHPsudo apt install php libapache2-mod-php php-mysql
Step 5: Install Phpmyadminsudo apt-get install phpmyadmin
if you have done this far your lamp should be good to go….