A LAMP is a collection of free and open source software used for hosting web servers in a Linux environment. The LAMP stands for Linux, Apache, MySQL, and PHP. virtual private server is already running in Ubuntu. Here is how to install the rest.
Install Apache, PHP, and MySQL on Windows
WAMP server download from this url and install
or XAMPP Server download from this url and instal
You can also installed by this step On Windows
Download Apache for Windows: https://www.apachelounge.com/download/
Download PHP 7 for Windows : http://windows.php.net/qa/
Download MySQL for Windows: http://dev.mysql.com/downloads/mysql/
Download the latest Visual Studio : https://www.microsoft.com/en-in/download/details.aspx?id=48145
Installing LAMP Using Command Line( ubuntu,Linux)
- [email protected]:~$ sudo apt-get update/upgrade
- [email protected]:~$ sudo apt-get install lamp-server^ (caret (^) at the end of the command)
- [email protected]:~$ sudo apt-get install phpmyadmin
- [email protected]:~$ sudo /etc/init.d/apache2 restart or sudo service apache2 restart

Test Install Server, PHP and MySQL
Open Browser and type this URL:-
http://127.0.0.1 or http://localhost
Create a file (info.php) in /var/www/html folder
<?php
phpinfo();
?>

Open Browser and type URL:-
http://127.0.0.1/info.php or http://localhost/info.php

Phpmyadmin Not Working
- [email protected]:~$ sudo nano apache2/apache2.conf (cd etc)
- Then add the following line to the end of the file – Include /etc/phpmyadmin/apache.conf
- [email protected]:~$ sudo /etc/init.d/apache2 restart (restart apache)
php.ini changes (cd /etc/php5/apache2/php.ini)
upload_max_filesize 120M
post_max_size 120M
max_execution_time 200
max_input_time 200
Route not working (not open internal route/URL)
- [email protected]:~$ sudo php5enmod mcrypt (mcrypt php)
- [email protected]:~$ sudo a2enmod rewrite (Enable mod_rewrite on the apache server)
- cd /etc/apache2/apache2.conf
- Edit ‘AllowOverride All’ under
- [email protected]:~$ sudo service apache2 restart
[email protected]:~$ sudo Install Curl
[email protected]:~$ sudo apt-get install php5-curl
[email protected]:~$ sudo /etc/init.d/apache2 restart
Install composer PHP
- [email protected]:~$ sudo apt-get install curl php5-cli git
- [email protected]:~$ sudo curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer (it will save at /usr/local/bin/composer )
Install sublime Editor using command Line
- [email protected]:~$ sudo add-apt-repository ppa:webupd8team/sublime-text-3
- [email protected]:~$ sudo apt-get update
- [email protected]:~$ sudo apt-get install sublime-text-installer
- [email protected]:~$ sudo subl (to open sublime )
Install GIT/Atlassian/Bitbucket
- [email protected]:~$ sudo apt-get install git
- [email protected]:~$ sudo git config –global user.name “myname”
- [email protected]:~$ sudo git config –global user.email “[email protected]”