Thursday, 27 February 2014

Installing LAMP in Ubuntu


Hi Friends,
Well I was searching on Google software's that relate like xampp or wamp for Ubuntu Linux Based OS,
So i found LAMP ( Linux Apache Mysql Php ),LAMP is an open source web development that use Linux Operating System,And It's really a Cool one and not so heavy in size so let's install it on our Ubuntu,Am Installing it on my Ubuntu 12.04 LTS (Precise) so Good Luck :D

STEPS :

1) Most Important :D boost/open up your "terminal" window,

2) Now first of all we are going to download/install "Apache" we can install it easily by just typing command
"sudo apt-get install apache2"
And hit enter,after few minutes it will automatically install apache on our Ubuntu,to check if it's really installed or not open your browser and type "localhost" in search bar and it will say/show something like this



it means Apache is successfully installed now let's move on,

3) Now we will going to Install "PHP 5" as a Server Side Scripting,you can install/download it on your Ubuntu by just entering the following command
"sudo apt-get install php5 libapache2-mod-php5"
Now let's check if PHP installed or not
we will going to create a simple PHP file open up your "terminal" and type "sudo gedit /var/www/test.php" it will open Gedit now write the following codes in the file : "<?phpinfo() ?>" without quotes and save it now open "localhost/test.php" if you get your phpinfo file there this means PHP is successfully installed and yeah we have setup our own working server :D

thanks for reading if you are facing any problem drop a comment below don't forget to give your feedback. 

No comments :

Post a Comment