How to install and setting up LAMPP/XAMPP In Linux

25 03 2009

1 // The commands in this HOWTO must be entered in the terminal:

Applications -> Accessories -> Terminal

2 // Download XAMPP to your Home :

wget http://ovh.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.tar.gz

3 // And extract the files :

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

4 // Create a XAMPP start menu entry:

cd ~/.local/share/applications

gedit xampp-control-panel.desktop

5 // Paste the following into the open file ” just for new version” :

[Desktop Entry]
Comment=Start/Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
Icon[en_CA]=/opt/lampp/htdocs/xampp/img/logo-small.gif
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start/Stop XAMPP
Type=Application
Icon=/opt/lampp/htdocs/xampp/img/logo-small.gif

Save and close the file.

7 // Publish:
XAMPP uses /opt/lampp/htdocs as the root web directory, but you can publish pages in your home directory this way.

cd ~


mkdir public_html


sudo ln -s ~/public_html /opt/lampp/htdocs/$USER

Now any files and folders you place in ~/public_html will be
published to your personal webserver.

8 // Start XAMPP via the terminal:

cd /opt/lampp


sudo ./lampp start

9 // Stop XAMPP (if necessary):

cd /opt/lampp
sudo ./lampp stop

10 // Or Via the XAMPP Control Panel:

Applications -> Other -> XAMPP Control Panel

11 // Now Security:

http://apachefriends.org/xampp-linux/381

  1. 1. The MySQL root user has a blank password.
    2. MySQL is accessible via your local network.
    3. ProFTPD has user “nobody” with password “lampp”.
    4. PhpMyAdmin is accessible via the local network.
    5. Examples are accessible via the local network.
    6. MySQL and Apache running under the same user “nobody”.

12 // To configure some of the security features of xampp:

cd /opt/lampp

sudo ./lampp security