«

»

Feb 21

One-liner Installation of LAMP Server in Ubuntu 12.04 (Precise Pangolin)

Before we proceed with the LAMP server installation, I strongly advise that you download and install the updates for your Ubuntu. If you’re already done with this, then disregard my suggestion.

Also, make sure that you can connect to the internet. :)

Install LAMP server by typing this in your terminal:

$ sudo apt-get install lamp-server^

Along the installation process, it will prompt you for your MySQL password. After that, it will finish the installation all by itself.

Installation Verification

1) Verify that apache2 was successfully installed.
Using your favorite browser, type

http://localhost/

and what should appear is something like this:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

2) Verify that PHP5 was successfully installed.
Open your terminal, then type the following command:

$ echo "<?php phpinfo(); ?>" | sudo tee /var/www/phpinfo.php

Then in your browser, type

http://localhost/phpinfo.php

If the details of your PHP came up, then it is successfully installed.

Optional Setup

1) Install PHPMyAdmin
Install it by typing this in your terminal

$ sudo apt-get install phpmyadmin

1) Enable rewrite apache module
Enable it by typing this in your terminal

$ sudo a2enmod rewrite

That’s all I can think of as of the moment. If you have other optional things that you will do after installing your LAMP server and is not included here, feel free to comment below and I will gladly update my post to reflect your suggestion.

1 comment

  1. mediabox ip wow arabic iptv

    This really answered my downside, thanks!

Leave a Reply

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

Powered by Sweet Captcha
Verify your real existence,
Drag the biggest seed to the flowerpot
  • captcha
  • captcha
  • captcha
  • captcha