Home Learn Linux Linux Answers Distributions Does Ubuntu come with LAMP already installed? If so where do I find it?
  • Ubuntu by default (assuming you may be installing the desktop edition) does not have Apache, Mysql, and PHP running.

    You will have to install them after words.
    if you are completely new to linux you can install the packages by either using Synaptic ( System > Administration > "Synaptic Package Manager" ) or by installing it from the Terminal under Applications -> Accessories.

    For this method were going to use the Terminal using a quick method.

    Launch the Terminal and type:
    sudo apt-get install php5-mysql

    Normally I would tell you to install each package individually (apache2, php5, mysql-server etc) but this way Ubuntu will have to install them all to satisfy the dependencies of the package.

    During the process it will ask you for a mysql root password, make sure to make note of it once set so you don't forget and finally once its all setup the services should be running.

    Check your browser to see if http://localhost says It works!!

    Next you can test out your site by editing files in /var/www/

    I won't go into to much details as to get off topic from your main question. But some quick hints.

    to stop and start the independent services you can use
    sudo service apache2 start or
    sudo service apache2 start
    same goes for mysql or any other daemons running.

    I recommending installing phpmyadmin into your webs root directory for administrating mysql

    Hopefully thats brief enough to get you started.

    Matt -

    Answered by vanic
    5 years ago
    0 0
  • Ubuntu does not have any advanced admin tool pre-installed, mainly because is targeted to a general desktop audience, Crunchbang have a post-installation script where gives you the option to install MySQL and other tools too, maybe you should give it a try.

    Answered by AlexMex90
    5 years ago
    1 0
  • Last time I tried ubuntu server there was an option in the installation prompt to install a pre-configured LAMP installation. I will be testing it again soon and will share my findings.

    Answered by mfillpot
    5 years ago
    0 0
  • I've just run across a great tutorial on LAMP for Ubuntu here. It goes into the nitty gritty details that Matt referred to above.

    Answered by atreyu
    5 years ago
    0 0
  • You could also, goto terminal then perform a sudo apt-get install tasksel
    Then after its installed perform a sudo tasksel
    A screen will load and allow you to choose LAMP and it will install everything.. Also in the future if you wish to add say samba or openssl etc you can from the menu

    Answered by jrspur2003
    5 years ago
    0 0
  • @Matthew: Do the following steps
    1. sudo apt-get update
    2. sudo apt-get install php5 apache2 mysql-server-5.0 phpmyadmin

    Answered by bobyk1986
    5 years ago
    0 0
  • phpmyadmin is not needed for a LAMP environment, you just need to install php5 apache2 mysql-server-5
    sudo aptitude install php5 apache2 mysql-server-5

    and all deps will come out and installed

    Answered by ben
    5 years ago
    0 0
  • normally it does not have nothing instaled

    some linux distro may have something

    Answered by keyzs
    5 years ago
    0 0
  • Depends which version u r using....Ubuntu LAMP server Install the following Versions:
    Ubuntu 11.04 (Natty)
    Apache 2.2.17
    Mysql 5.1.54
    PHP 5.3.5

    Answered by rechil_colin
    5 years ago
    0 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Distributions

Upcoming Linux Foundation Courses

  1. LFS520 Essentials of OpenStack Administration
    07 Dec » 10 Dec - N. Reading + Virtual
  2. LFS426 Linux Performance Tuning
    07 Dec » 10 Dec - Virtual
  3. LFS416 Linux Security
    07 Dec » 10 Dec - Virtual

View All Upcoming Courses

Community Answers - Search

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board