Install Lamp with 1 command in ubuntu

by
Share this Article: Facebook1Google+0Twitter2LinkedIn0Reddit0StumbleUpon0

LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.

There are many methods to install lamp for example the standart one see our previous howto for ubuntu : Howto: Install Lamp and phpmyadmin on Ubuntu

So lets show you another way to install lamp under ubuntu 9.10 and above.

For Ubuntu 10.10 Maverick meerkat and 11.04 Natty please check this post.


 

First ,under Terminal type the command :

$sudo  tasksel


you will get something like :

Now you have to shoose the LAMP line and SPACE key to select LAMP Server .

After, you will asked to insert root mysql password

After the procedure will start downloading and installing needed packages for LAMP


Of  with  this  command :

sudo apt-get install php5 mysql-server apache2

Or  with :

$ sudo tasksel install lamp-server

Now lets check of its working .

Check the apache2 from your browser :

Http:Ip or hostname

Now check if your Mysql is wokring with:

Check if php is working :

$sudo   vi  /var/www/info.php

and add

{codecitation}<?php
phpinfo();
?>{/codecitation}

save and exit

restart apache2

#/etc/init.d/apache2  restart


and browse again http://ip/info.php


Enjoy and feel free to ask

{loadposition user9}

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook1Google+0Twitter2LinkedIn0Reddit0StumbleUpon0