Below are the instructions to install yourself a copy of XAMPP, formerly known as LAMP on Linux Ubuntu.
1. Download the file from http://www.apachefriends.org/en/xampp-linux.html They have good instructions here and resources for future issues, so bookmark them!
2. Enter this command into your terminal, you can open terminal with CTRL +ALT + T
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
You may have to move into the downloads directory of your file system for this to work, do that by entering this command, which will vary
Please note, it is currently January 2013, whenever you download XAMPP you will need to update the file version above from 1.8.1 to whichever version you downloaded from Apache.
3. Ubuntu will install the files in /opt/lampp
4. To start your server enter this command into your terminal
5. You will now get a message in your terminal, informing you have a server running on your machine. To test it type http://localhost into your browser. If you have done everything successfully you will see a message from XAMPP :-)
Starting XAMPP for Linux 1.8.1…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Starting ProFTPD…
XAMPP for Linux started.
6. You may into some problems with PHPmyadmin, like not being able to open it at all within localhost. This is easily fixed so do not worry!
We are going to fix this by editing the httpd-xampp.conf file, located in the /opt directory. Type the following command into your terminal.
you will have moved into the /extra directory, within /lampp, within /opt
this commands opens the file in your text editor, if you replace the gedit part of the above command with your text editor of preference, you’ll open the file in your own text editor.
7. We are going to add “Require all granted” in this file, in the phpmyadmin section, be careful because there is a SQLite section within this file also…. it’s going to look like this…
AllowOverride AuthConfig Limit
Order allow, deny
Allow from all
Require all granted
The bold part is what we add, then we need to save it, press CTRL + S or even just file then save in the text editor GUI, you’ll then get pushed back into the terminal.
8. phpMyAdmin will now be working. HOWEVER, there will be no security installed, to fix this just enter the following command into your terminal.
Follow the prompts and enter passwords for XAMPP, phpMyAdmin, MySQL & FTP.
Ok, that should do it. You installed XAMPP, fixed the problem with using phpMyAdmin and then added some security - great work!