February 7, 2014 asvignesh 0Comment

This tutorial presumes that you understand what is a LAMP Server , how to deploy a web site and how to install software using Terminal and experience in running other Basic Terminal Commands.


Root access
To install any application you need root access , You can prefix sudo before every command or login to root user and execute the commands

sudo -i

Enter the password of your account

You need to update the local repo by fetching indexes from remote canonical repos

apt-get update

To install Apache you must install the Metapackage apache2. This can be done by running the following command.
apt-get install apache2


To install MySQL you must install the Meta package mysql-server.

apt-get install mysql-server

Install PHP
To install php and apache lib for php if required install other libs like mysql lib and lots of other libs are available

apt-get install php5 libapache2-mod-php5

Check Apache
Open a web browser and navigate to that ubuntu IP
You should see a message saying
It works!

Check PHP
You can check your PHP by executing any PHP file from within /var/www/.
Alternatively you can execute the following command, which will make PHP run the code without the need for creating a file .
php -r ‘echo “nWow my installation is working.”;’

6+ years of experience in building data protection, copy data management and storage management applications, automation software and plugins for private and public clouds

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to timeā€¦ This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.