Bookmark and Share

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 karmic Koala .

 

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:

Chcek if php is working :

$sudo   vi  /var/www/info.php

and add

save and exit

restart apache2

#/etc/init.d/apache2  restart


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


Enjoy and feel free to ask



Comments (5)
  • Nate  - How about this
    avatar

    sudo apt-get install php5 mysql-server apache2

  • SmallBoxAdmin  - Even Easier
    avatar

    $ sudo tasksel install lamp-server

  • pirat9
    avatar

    Appreciated and add to the Tutorials
    Thanks again

  • erik witkop  - If lamp-server is missing from inside of tasksel
    avatar

    Run 'sudo apt-get update'

Write comment
Your Contact Details:
Gravatar enabled
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:):(:0:shock::confused:8):lol::x:P:oops::cry:
:evil::twisted::roll::wink::!::?::idea::arrow:
Security
Please input the anti-spam code that you can read in the image.