LAMP is a very common example of a web service stack that contains four components – Linux OS, Apache Web Server, MySQL Database and PHP programming language. LAMP Stack is suitable for building dynamic websites and web applications.
The following command installs LAMP with a single command on Ubuntu based distro servers.
$ sudo apt-get install lamp-server^phpmyadmin
The one line does the installation of Apache Web Server, MySQL Database, PHP Programing language.
When running this command, you will need to ensure you have proper internet access as there will several occasions when the command will try to download packages from the internet.
Confirm all the downloads with a yes. The system will prompt you to setup of the MySQL root password.
The system will also prompt you to if you want to configure Apache Web Server or Lighthttpd server. Choose Apache for the webserver.
In the next step, you will be prompted to download the package for phpmyadmin. The phpmyadmin package must have a database installed and configured. This option can be handled with dbconfig-common. If you are not sure, please select yes for the install.
During the next step, you will be prompted to setup phpmyadmin password with MySQL. You need to leave the password blank and a random strong password will be generated.
At Velan, our server support engineers can help you with the installation of LAMP on your server. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the Quick connect form to get in touch with us