How to install LAMP

Jaspreet Kaur Sarao

Type the following commands in terminal:

$sudo apt-get install apache2

Then type y

$sudo apt-get install php5 libapache2-mod-php5

Type y

$sudo apt-get install mysql-server mysql-server

Type y

After this fill the password as username ‘root’

then press Tab

then press space to select ok

$sudo apt-get install phpmyadmin

press y

Firstly press Space to select apache2

then press Tab and then Space to select ok

Press Tab and Space to select ok

Press Tab and Space  to select yes

Fill password here. Then press Tab and Space to select ok

then press Tab

then press Space to select ok

Retype the same password to confirm

$sudo apt-get install libapache2-mod-auth-mysql php5-mysql

$sudo /etc/init.d/apache2 restart


Open with browser:


it shows :

Then open in browser:


login with username and password

View original post


4 thoughts on “How to install LAMP

  1. somsirsa@somsirsa-Lenovo:~$ sudo /etc/init.d/apache2 restart
    * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using Set the ‘ServerName’ directive globally to suppress this message

    this is what I get when I install in ubuntu 14.04 Debian

    Can you please interpret this for me?

    • Apache restarted successfully. It just is not sure where you want it to serve it from, so it is chose localhost( by default.

      Add the following line into your /etc/apache2/apache2.conf file(to prevent this message from appearing):

      ServerName localhost

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s