How to setup a LAMP Server

  • by

LAMP – Linux Apache2 MySQL PHP

To install LAMP on your ubuntu Linux server follow these steps.

Step 1: Update your system

sudo apt-get update

Step 2: Install Mysql

sudo apt-get install mysql-server mysql-client libmysqlclient-dev

Step 3: Install Apache server

sudo apt-get install apache2 apache2-doc apache2-npm-prefork apache2-utils libexpat1 ssl-cert

Step 4: Install PHP (php7.0 latest version of PHP)

sudo apt-get install libapache2-mod-php7.0 php7.0 php7.0-common php7.0-curl php7.0-dev php7.0-gd php-pear php-imagick php7.0-mcrypt php7.0-mysql php7.0-ps php7.0-xsl

Step 5: Install Phpmyadmin(for database)

sudo apt-get install phpmyadmin

Leave a Reply

Your email address will not be published. Required fields are marked *