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:
Download PHP 7 for Windows :
Download MySQL for Windows:
Download the latest Visual Studio :

Installing LAMP Using Command Line( ubuntu,Linux)

Lamp Install

Test Install Server, PHP and MySQL

Open Browser and type this URL:- or http://localhost

Create a file (info.php) in /var/www/html folder



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


Phpmyadmin Not Working

  1. [email protected]:~$ sudo nano apache2/apache2.conf (cd etc)
  2. Then add the following line to the end of the file – Include /etc/phpmyadmin/apache.conf
  3. [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)

  1. [email protected]:~$ sudo php5enmod mcrypt (mcrypt php)
  2. [email protected]:~$ sudo a2enmod rewrite (Enable mod_rewrite on the apache server)
  3. cd /etc/apache2/apache2.conf
  4. Edit ‘AllowOverride All’ under
  5. [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

  1. [email protected]:~$ sudo apt-get install curl php5-cli git
  2. [email protected]:~$ sudo curl -sS | sudo php — –install-dir=/usr/local/bin –filename=composer (it will save at /usr/local/bin/composer )

Install sublime Editor using command Line

  1. [email protected]:~$ sudo add-apt-repository ppa:webupd8team/sublime-text-3
  2. [email protected]:~$ sudo apt-get update
  3. [email protected]:~$ sudo apt-get install sublime-text-installer
  4. [email protected]:~$ sudo subl (to open sublime )

Install GIT/Atlassian/Bitbucket

  1. [email protected]:~$ sudo apt-get install git
  2. [email protected]:~$ sudo git config –global “myname”
  3. [email protected]:~$ sudo git config –global “[email protected]

Related posts

Leave a Comment