How to install LAMP on Ubuntu: the easy way

LAMP is basically the conjunction of 4 technologies (Linux + Apache + MySQL + PHP) to manage your own web server on your PC. Normally, the installation of LAMP in Ubuntu is quite simple but I just found out that there is an even easier way to do it.

The steps to follow

1.- I opened Synaptic> Edit> Mark packages by task…> LAMP Server.

Believe it or not, that's it. or that subtraction is self explanatory.

2.- It is highly recommended to install the phpmyadmin package.

3.- Open your favorite web browser and navigate to the page http://localhost. That will be the root directory of your server.

4.- To modify the content of your server, copy the files you think necessary to the folder / Var / www.

Note: as a curiosity, it is interesting to note that the procedure described in point 1 also allows the installation of the other Ubuntu variants: Kubuntu, Xubuntu, etc.

Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   piegope said

    This option works for versions prior to 10.10. In Ubuntu Maverick you have to install the tasksel application.

    regards

  2.   Lids said

    This is how it is installed in the Buntus today.

    sudo apt-get install tasksel
    sudo tasksel install lamp-server
    sudo apt-get install phpmyadmin

  3.   @ lllz @ p @ said

    You have no idea how many times I have tried to install a LAMP and without the expected results through the console, here is the best way without a doubt XD thanks I'll keep it.

  4.   Let's use Linux said

    I'm glad it served

  5.   Alex said

    I did it differently, download the xampp package, and simply type the following command:

    tar xvfz xampp-linux-1.7.4.tar.gz -C / opt

    With this we unzip it in / opt. To execute it you simply have to do
    "Sudo / opt / lampp / lampp start".

    I recommend running "sudo / opt / lampp / lampp security" to set passwords for mysql, phpmyadmin, proFtp and other services that come with it, since no password is assigned to them by default.

    regards

  6.   RED7 said

    Truth! 😀

  7.   Cbgames Berety said

    Hello, I hope you can help me, I want to know how I can install an IRC server to chat with xchat

  8.   Let's use Linux said

    Hehe… Oops… it sparked! 😛
    Thank you! Paul.

  9.   leprosy said

    Hello, in Ubuntu 10.10 (Maverick) you have to use the following command (there is no Synaptic option):
    sudo apt-get install lamp-server ^
    Greetings.

  10.   Let's use Linux said

    Thank you!! Good date!!!

  11.   Daniel said

    I imagine this is only useful for when we have a web page, right?

  12.   Let's use Linux said

    Yep.

  13.   Let's use Linux said

    Hey! Good date!! Thank you!!
    A hug! Paul.

  14.   Alex said

    It is not a binary, it is a tar. I also download it directly from its official website, apachefriends.org/es/xampp.html.

    Anyway, I only use it for the tests I do to learn PHP and so on.
    regards

  15.   Josetovar said

    menu as I do to Deactivate or Remove the tasks that I have added…. ? There is in the Mark packages by task… for example deactivate LAMP Server

  16.   Fernando TorresM. said

    not really, if you want to make a database, for example, you can create it and throw queries ... as if you were using pgadmin for example. And, as far as I know, I don't have a website there. Cheers

  17.   Fernando TorresM. said

    I am pleased that installing the lamp is easy and with this even easier…. taking into account that learning to manage everything that entails, is somewhat complicated (for a novice) = P… greetings !!!!!

  18.   Let's use Linux said

    That is also true ...

  19.   orlandoenunez said

    Greetings.

    I have always preferred to use

    "Sudo aptitude install mysql-server php5 apache2 php phpmyadmin"

    Or just search for these packages in Synaptic and you're done.

  20.   Daniel said

    ohh ok
    thanks!

  21.   Alex said

    Maybe it is that I have not checked well, but I believe that a binary is a file already compiled from a program, like the .exe files in windows. If I unzip the .tar of XAMP I have folders with files in which I can see the source code, I may have been confused, I have not looked at all the files in the package either.

    Anyway, like I said, it's my first time using Xampp and I'm doing it to practice PHP.

    regards

  22.   @llomellamomario said

    It works because Apache stays running and listening for requests. As well as MySQL and the rest of the apps. What you read is a script that performs various tasks including executing the corresponding binaries. If it does not fumble through the folders but if it only brings source code it does not work if you do not compile it, which is not the case. I imagine that here what is a script is mixed (which is what it uses to facilitate the start / stop of binaries) with a binary which are hidden in the folders of the package in question.

  23.   Alex said

    Well now that I think about it it's true, if they weren't binaries, you'd have to compile them before using them :). Thanks for the explanation.

  24.   @llomellamomario said

    It is more the image of LAMP placed above has it written below xD

  25.   @llomellamomario said

    As long as you learn it, it doesn't bother me to explain or clarify things one or a thousand times, or if the discussion takes place, talk about it, they can always teach you something new = DY X3MBoy if you explain the reasons why avoiding the use of XAMPP is I would appreciate to learn so.

  26.   @llomellamomario said

    If it's not a binary, explain to me how the hell it works for you. That it comes compressed in a tar package is another matter that is not exclusive to using external binaries. It is also not its official website, since each of the components is developed by various independent teams. As X3MBoy says, this package is not recommended to extract it as well as in opt, since if I remember correctly it was completely standalone saving all its config in the same folder. Xampp is a package that includes the preconfigured and standalone "amp" bundle, mainly used for those who do not want to configure the server but just have it running and skip installations. It is very good if you only want the local server quickly to develop websites, or if you want to print a design that you have made on a PC without internet since you omit the entire configuration issue, which being all in its folder allows you to put it in keys USB, but if you get out of that case it is infinitely better to install and configure it. Particularly I have not had problems in Windows with Xampp so it would be great to know the rest of your reasons X3MBoy, so we learn more and avoid screwing up = D.

  27.   ninboy said

    The P in "LAMP" stands for PHP, not Perl

  28.   Jesus marin said

    The P in LAMP stands for: PHP, Python, Perl since these three languages ​​begin with that letter.

    http://es.wikipedia.org/wiki/LAMP
    http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29

  29.   X3MBoy said

    I do not recommend the use of xampp, for many reasons, of which I will only name one and that is that it is never better to install an external binary package than a binary package from the official distribution repositories.

    Greetings.