Install XAMPP on Ubuntu 10.04

This tutorial will show you the steps to fully install xampp on ubuntu 10.04 without problems. so, lets get on with it.

1. first download the latest version of xampp which is 1.7.3a (at the time that i wrote this tut)

here is the link.

2. from where you have downloaded the package execute this on the terminal

$ sudo tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt

when the execution of the above script is done, you now have an installed xampp and to start enter this on the terminal

$ sudo /opt/lampp/lampp start

note: to stop the lamp

$ /opt/lampp/lampp stop

now, as mentioned lampp is already installed for you. but there several things that we need to do to ensure that everything is working.

by default, the web root directory is /opt/lampp/htdocs

and at first you would not be able to create files on this directory. run this command on the terminal while your on /opt/lampp

ls -l

and you will be able to see that the user associated with the htdocs directory is not the user that you are currently using.
to “own” the directory enter this command:

/opt/lampp# chown -R yourusername:yourusername htdocs

then, edit the httpd.conf so you could add your username:

sudo gedit /opt/lampp/etc/httpd.conf

look for the following lines:

User nobody
Group nogroup
</IfModule>
</IfModule>

and change them to :

User yourusername
Group nogroup
</IfModule>
</IfModule>

we should also “own” the config.inc.php of the phpmyadmin that goes with the installer. to do this

cd /opt/lampp/phpmyadmin
chown yourusername:yourusername config.inc.php

now, restart your lampp

$ sudo /opt/lampp/lampp restart

and now your ready to go on your way….

Just a warning your lampp installation is not fully secured yet

The MySQL administrator (root) has no password.

  • The MySQL daemon is accessible via network.
  • ProFTPD uses the password “lampp” for user “nobody”.
  • PhpMyAdmin is accessible via network.
  • Examples are accessible via network.

to fully secure your installation: run the following command and follow on screen instructions

/opt/lampp/lampp security

now, your of to go. I hope I had helped someone up. ^^


Ubuntu

Leave a Reply