How to Install LAMP Stack Server on Your Ubuntu Operating System?

Post date: 23, Jul 2018
Share Button

The web development sector has made significant innovations with the tools and development advancements in the sector. The web development process has been made easier with the help of new solutions such as hosting tools, designing tools, advanced IDE (Integrated Development Environment), the database stack, etc. The LAMP stack is one of such technology that is responsible for the advancements of the web development.

 

The LAMP is a special database stack that supports the development of the database in the Linux/Ubuntu platform. LAMP stands for Linux, Apache, MySQL, PHP which are the four important pillar that is required for the compatibility of this database server stack. And because of these four platform layers, it is known as the “LAMP”. Here is a simple way to install the LAMP in your Ubuntu operating system.

 

 

Install LAMP Stack Server - How to Install LAMP Stack Server on Your Ubuntu Operating System?

 

System

 

Before you beginning installing, there are a few important requirements that you must see for the sake of compatibility. You need to have an Ubuntu system so that the LAMP stack works properly on the system. You can get an Ubuntu system online for download or there are CD or DVD that you can install directly from. Once you have the system, you can proceed ahead to install your LAMP stack.

 

Installation

 

Step 1: Install Apache – There are many a few installments that you should make to ensur the smooth running of the LAMP stack. The user needs to install the latest Apache which is open-source and could be found online on many websites. Make sure to get the latest version of Apache.

 

$ sudo apt-get update

 

$ sudo apt-get install -y apache2 apache2-doc apache2-utils

 

 

Step 2: Install PHP – Once you are through with Apache, then you can download PHP for your system. Hence just like Apache, PHP can also be found online. Make sure to get the latest version of the PHP for your website development.

 

$ sudo apt-get install -y python-software-properties

$ sudo add-apt-repository ppa:ondrej/php

$ sudo apt-get update

 

$ sudo apt-get install -y php5.6 php5.6-mysql php5.6 php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xml php5.6-xmlrpc

 

Step 3: Install MySQL server – The MySQL server is a useful tool in developing the database infrastructure of the website. This stores the backend data of the user which cannot be seen by the user in the created database.

$ sudo apt-get update

$ sudo apt-get install -y mysql-server

 

Step 4: Credentials – Make sure that the credentials are given to the MySQL repository which will encrypt the data safely in the database that you have created.

 

Step 5: Install PHPMyAdmin – The PHPMyAdmin will help you access your database whenever you want from the device.

 

$ sudo apt-get update

$ sudo apt-get install -y phpmyadmin

 

Step 6: restart and install – Firstly enable .htaccess by enabling rewrite. And then restart apache followed by installing sublime text. Once you have completed the process you can restart and access the LAMP stack easily.

 

$ sudo a2enmod rewrite

$ sudo service apache2 restart

$ sudo add-apt-repository -y ppa:webupd8team/sublime-text-3

$ sudo apt-get update; sudo apt-get install -y sublime-text-installer

$ sudo apt install subversion apache2 libapache2-svn

 

You can enter the above-mentioned commands from the terminal point which will give you easier access to the latest versions of the Apache, MySQL, PHP, and other required essentials for a successful LAMP stack establishment. Hope this process helps you to establish a proper LAMP stack for your web development project.

 

Vrinsoft is a development company that have an extensive experience in developing quality digital platform for their clients. We have won several awards over the years that have helped us make it the favourite of many clients. We integrate amazing features with the bleeding-edge technologies that makes the platform of our clients the best in the market.

Tell us your Queries, We are Listening

Get In Touch

Estimations & Planning for Business Decisions

Please send me a Non Disclosure Agreement for a Confidential Consultation