Install LAMP On Ubuntu(PHP,MYSQL,APACHE)

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

http://www.wampserver.com/

or XAMPP Server download from this url and instal

https://www.apachefriends.org

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)

Lamp Install metaraw.com

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();
?>

phpinfo metaraw.com

Open Browser and type URL:-

http://127.0.0.1/info.php or http://localhost/info.php

info.php metaraw.com

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 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

  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 user.name “myname”
  3. [email protected]:~$ sudo git config –global user.email “[email protected]

Related posts

Leave a Comment