Do you want to install lamp on your Linux system?. Great, but first you must need to know something about Lamp in the context of Operating system. Basically, a lamp is an abbreviation for Linux, Apache, MySQL and PHP. In this article, we are discussing the step by step installation of Lamp.
- Linux – Linux is a widely used open source operating system.
- Apache – Apache is an open source web server mostly used in Linux-based operating systems
- MySQL – It is one of the most popular relational database management system.
- PhpMyadmin – It is an open source web development language.
Just have a glance at this article to find out how to install Lamp (Linux, Apache, MySQL, and PHP) in Ubuntu 14.04
Step to install lamp in Ubuntu 14.04:
Step 1: First open your terminal and type “sudo apt-get install apache2”, this command will install Apache server in your system. Type your root password when prompted.
Step 2: Just press “y”, when prompt “Do you want to continue? [Y/n]”.
Step 3: Now, go to your web browser in order to configure or test your Apache server and for that just type: “http://localhost”.
Step 4: Now type “sudo apt-get install mysql-server” to install MySQL server.
Step 5: You can also use another method to install Mysql server for that type: “sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql” and then hit enter.
Step 6: Now, type: “sudo mysql_install_db” to install MySQL system table. (Note: Once your server gets installed then you can use “sudo service mysql status” command in order to test MySQL).
Step 7: In order to install php you need to type: “sudo apt-get install php5 libapache2-mod-php5” and then press “Y” when prompted. After that, you can use “sudo apt-get install phpmyadmin” to install phpmyadmin to your Ubuntu System.
Step 8: You have to open apache2.conf file in order to add phpmyadmin to Apache configuration file, for that type: “sudo nano /etc/apache2/apache2.conf”.
Step 9: Traverse at the bottom of apache2.conf file and then type ” # Include /etc/phpmyadmin/apache.conf” and then press Ctrl+x to save and exit.
Step 10: Press “Y”, when prompt “Save modified buffer” and then press enter (recommended).
Step 11: Finally, restart your apache server to view your changes.
(Note: You can go to localhost.phpmyadmin/ in order to view phpmyadmin page)
That’s all friends. Keep reading.