In this article, we are going to see how to create a LAMP stack environment on Ubuntu 18.04. Note: In order to run commands to install Lamp stack you need root access of server.
Step 1: Update your package manager
sudo apt-get update
Step2: Install Apache Web server
sudo apt install apache2
sudo service apache2 start
If you are seeing below page on your Url, then congrats you can successfully installed Apache web server on your Ubuntu server.
Step3: Installing Mysql
sudo apt install mysql-server
then enter the MySQL root password that you have set in above step.
sudo mysql -u root -p
Step4: Installing PHP
sudo apt install php libapache2-mod-php php-mysql
Step5: Schedule Start Mysql and Apache to start on system restart or boot.
sudo systemctl enable apache2.service sudo systemctl enable mysql.service
That's It. Thanks for reading
Never Miss an Articles from us.
CMS: Content Management System allows publishing, editing, modifying and maintaining content via a central interface. CMS is used to avoid complete coding for building the site from scratch. Some pre...