Install LAMP (Linux + Apache + MySQL + PHP ) in Ubuntu 12.10

LAMP stands for Linux, Apache, MySQL and PHP. This script installs those programs and packages at once easily in Ubuntu.

Press Ctrl + Alt + T on your keyboard to open the terminal. When it opens run the commands below to install the packages.
sudo apt-get install lamp-server^
During the installation, you’ll be prompted to create a password or MySQL server. Create one to continue.
Test 1 – Apache
After the installation, test Apache by opening your web browser and typing localhost. When you seen the screen below, it means Apache is functioning.

Install LAMP (Linux + Apache + MySQL + PHP ) in Ubuntu 12.10

Test 2 – PHP
To test PHP, create a test page by running the commands below.
sudo gedit /var/www/test.php
Then copy this line into the file and save it.
<?php phpinfo();?>
Finally, open your browser and go to http://localhost/test.php

php version info in ubuntu 12.10


You can leave a response, or trackback from your own site.

One Response to “Install LAMP (Linux + Apache + MySQL + PHP ) in Ubuntu 12.10”

  1. Thanks for ones marvelous posting! I genuinely enjoyed reading it, you might be a great author.I will make sure to bookmark your blog and may come back at some point. I want to encourage yourself to continue your great posts, have a nice weekend!

Leave a Reply