Installing LAMPP on Linux/ Ubuntu

The acronym LAMP refers to a solution stack of software, usually free and open source software, used to run dynamic Web sites or servers. The original expansion is as follows:

  • Linux, referring to the operating system;
  • Apache, the web server;
  • MySQL, the database management system (or database server);
  • PHP or others, i.e., Perl, Python, the programming languages.

The combination of these technologies is used primarily to define a web server infrastructure, define a programming paradigm of developing software, and establish a software distribution package.

Though the originators of these open source programs did not design them all to work specifically with each other, the combination has become popular because of its low acquisition cost and because of the ubiquity of its components (which come bundled with most current Linux distributions). When used in combination they represent a solution stack of technologies that support application servers.

vie Wikipedia

Download the current version from here

F Y I:
By the way: In the past this software was called LAMPP but to avoid misconceptions they renamed it to »XAMPP for Linux«.

inside the terminal type:

sudo tar xvfz xampp-linux-1.7.tar.gz -C /opt

Thats all. LAMP is now installed on your computer. All you need to do now is to start LAMP (this is to start the Apache server and MySQL). To do that execute the following command in Terminal:

sudo /opt/lampp/lampp start

You can test your installation by pointing your browser to http://localhost

In order to make sure LAMP starts automatically every time you start your computer, follow these steps.

First, execute this command in Terminal:

sudo gedit /etc/init.d/rc.local

When gedit opens, add the following line right at the bottom of the file

sudo /opt/lampp/lampp start

Save the file and close it. Now you don’t have to start LAMP manually each time your start your computer.

Notes:

  • Your root (admin) password for MySQL is left blank. It’s better if you set a password.
  • Your php files and projects should be put inside the directory /opt/lampp/htdocs
  • Login to phpMyAdmin from here: http://localhost/phpmyadmin/index.php
Share and Enjoy:
  • Digg
  • Facebook
  • Google Bookmarks
  • Print
  • Technorati
  • del.icio.us
  • email
  • Live
  • StumbleUpon
  • Tumblr
  • Twitter

2 Responses to “Installing LAMPP on Linux/ Ubuntu”

  • Zach Says:

    Quick apt-get install links:

    From a command shell, you will run the following commands:
    sudo apt-get install apache2
    sudo apt-get install php5
    sudo apt-get install libapache2-mod-php5
    sudo /etc/init.d/apache2 restart

    Installing MySQL 5 Server:
    sudo apt-get install php5-mysql
    If you are running PHP you will also need to install the php module for mysql 5:
    sudo apt-get install mysql-server

    Create a new database, use the mysqladmin command:
    mysqladmin create databasename

  • Marisol Hutten Says:

    I was at a seminar once (can’t remember what it was about), and invited one of my employees to attend it with me. There were maybe 100 or so people in the room, and at the end the hosts went into the typical Q&A session. As I raised my hand to ask a question, my associate looked at me with deer-in-the-headlights eyes and asked, incredulously, ‘Are you really going to ask a question?!?’ To her it was simply inconceivable to do something like that. There is an entire block of readers that will NEVER consider leaving a comment, it’s just not part of their personality style.

Leave a Reply