10.20
This tutorial will explain how to install XAMPP 1.7.1 in Ubuntu 9.10
Introduction
This is a step by step guide for installing and setting up a webdev server on a ubuntu machine. I will show you how to install the lampp stack using XAMPP version 1.7.1 on Ubuntu 9.10.
You can follow the exact same steps for setting up XAMPP version 1.7.2
Follow these steps to install XAMPP:
1. For starters you need to go to the official XAMPP website and download XAMPP for Linux version 1.7.1, click here to download XAMPP for Linux version 1.7.1
Make sure you download XAMPP 1.7.1 if you want to use it together with wordpress. XAMPP 1.7.2 uses PHP 5.3.0 which causes some problems when used in combination with wordpress 2.8.4
2. Place the downloaded .tar.gz archive on your desktop if it wasn’t already saved there by default.
3. Open a terminal ( Applications > Accessoires > Terminal )
4. Go to your desktop (or any other location where you placed the downloaded file)
cd Dekstop
5. Login as the super admin
sudo -s
6. Untarball the compressed file to the /opt directory
tar xvfz xampp-linux-1.7.1.tar.gz -C /opt
The above command installs xampp in the /opt/lampp directory
7. Start xampp by giving the command
/opt/lampp/lampp start
8. After starting xampp open a browserwindow and go to localhost
If all went well you’ll see this page
9. After choosing your language you’ll be forwarded to the welcome page
10. Go to the security page by clicking Security in the left menu.
You’ll see that everything is unsecured at the moment
When XAMPP will be used for local development these settings won’t matter much. It is good practice however to set it up securely.
Next I’ll show you how to setup security
11. Copy the code on the bottom of the security page and then paste it into a terminal
/opt/lampp/lampp security
This will start an interactive program to help you configure security settings
12. Type yes when prompted to enter a password and enter a secure password twice
13. Turn off MySQL network accesibility by entering yes, MySQL will now restart so the setting can take effect
14. You’ll be prompted to set a password for phpMyAdmin, do so.
15. And again for setting a MySQL root password, make sure you write this one down or you’ll be in trouble later on.
16. Now set a password for user nobody.
This should complete the security setup procedure.
To confirm everything went ok, open a browserwindow and go to localhost
17. You’ll be prompted for a username and password.
the username is ‘lampp’
the password is the one you entered in step 12
18. Go the the security pages
This should show all subjects are now secured..
Place content you want to add to the webserver in the root web directory located in
/opt/lamp/htdocs
To make things easier we’ll add a link to the htdocs folder to a folder in our home directory.
You can do this in a terminal by typing
mkdir ~/public_html
Or just right-click in your home folder and create a new folder named ‘public_html’
19. Now we’ll make a link from the new folder to /opt/lampp/htdocs , open a terminal and enter
sudo ln -s ~/public_html /opt/lampp/htdocs/
20. To setup permissions for the htdocs folder, go to the terminal (still logged in as super user) and type
chown yourusername -R /opt/lampp/htdocs
This changes the ownership of the htdocs folder to your user, the -R option makes the command recursive so all permissions of folders and files inside htdocs are changed aswell.
Congratulations that was it! Well sort of…
After restarting your computer you have to manually start the server by entering
/opt/lampp/lampp start
in a terminal.
EDIT: MiD-AwE pointed out he had to install the ia32 libraries when installing XAMPP on Ubuntu 9.10 64-bit. The ia32 library is needed when installing a 64-bit version on a AMD64 or ia64-system.
To do this open a terminal and type
sudo apt-get install ia32-libs
If you want xampp to automatically start at boottime, follow these steps.
EDIT : Or as MiD-AwE suggested you can go to System > Preferences and add an entry
/opt/lampp/lampp start
to “Startup Applications”
If you want to use a GUI to start and stop xampp do the following:
1. Open a terminal and type
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
2. Paste this code in the new empty file in gedit
[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start and Stop XAMPP
Type=Application
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg
Change this line (twice) to match the location of the icon you want to use.
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
3. The xampp control panel should now show up in Applications > Other
You should get to see something like this :
That was it!
Now run along and go do something usefull














Great tutorial. Worked great for me with only one hitch. I am running Ubuntu 9.10 64bit, so I had the extra step of installing the ia32 libraries. I have one addition, it is much easier to run LAMPP at boottime by adding “/opt/lampp/lampp start” to “Startup Applications” in system->preferences. Thanks for this easy to follow tutorial.
Thanks alot MiD-AwE, I will add both of your comments to the guide.
Thanks for your very clear guide!
This guide is great :) Followed all the steps and everything worked fine.
However, I had problem accessing my files through browser:
http://localhost/public_html/...
http://127.0.0.1/public_html/...
I got 403 Error “Access Forbidden!” message.
When trying to access different folder (other than public_html) in htdocs, everything worked and i accessed them without problem. So there must have been something wrong with the symlink.
So I checked the error log and it said:
“Symbolic link not allowed or link target not accessible”
After some googling and playing around with httpd.conf (which was unnecessary) i found the solution:
All folders in the way “~/public_html” (this means /home, /home/username and /home/username/public_html) should have permissions for “Others” set to Access Files. (this means rwxr-xr-x) or (rwxr-x–x if you don’t want the users to be able to list the contents)
I hope this helps someone.
I’m not sure if it is necessary or even safe to grant recursive execution rights for everyone to your /home folder.
I haven’t had any problems accessing the public_html folder. Are you sure you changed ownership of the folder by executing step 20?
I’ll verify this tomorrow to make sure.
Great Tutorial , thanks a lot !
I am having an issue with the Xampp login splash screen, after the installation I rebooted my computer and when I login into Xampp, i get stuck with XAMPP language’s screen , after clicking in ‘english’ language option, it doesn’t move to the next page (Xampp main page and settings) it get stuck on these screen.
Any Idea what is happening?
Thank again
All.
What happens when you close and reopen the browser and go to ‘http://localhost’ ?
Also, when you follow the steps above there is no need to reboot your computer between the installing (step 1-7) and configuration (step 8-…). The configuration should initially only be done once.
Or do you mean that after configuring XAMPP and rebooting the computer you are back to the language selection screen?
Hi
The last option …
I managed to configure the Xampp etc but after a while when I came back to Xampp, when I type my password etc, it doesn’t leave the language selection screen , I can’t go further to the Settings page from Xampp.
Hmm I can think of several things that could cause your problem.
- Can you check the permissions of the folder ‘public_html’ in your homedirectory?
- Did you change ownership of the folder as explained in step 20?
Thanks a lot for your clearly arranged tutorial!
Hi Thank you first for this superb made tutorial.
I know that it will work fine because i’d installed XAMMP several Times. But I’ve got another question:
Is it possible to install XAMPP directly in my Home Folder ???
Imho i think it would be better if i Upgrade or reinstall my Linux i dont loose or have to backup my whole XAMPP folder … ???
I’ve googled on this problem but i found no real answer – maybe here is one who like to help me out ?!
Thanxx in advance for all answers/solutions
thank you so much i was very confuse for last many days but you have solved me biggest problem of time.
Great tutorial!!!
A very good job!!!
Easy and precise method of guiding!!!!
Thanks a lot!!!!
Great tutorial, thanks for your sharing.
but i have a problem after installed successful. I only can access the localhost browser from local PC, it can’t access from other pc (client). ie. http://192.168.2.169/
(192.168.2.169 is IP of server).
please advice, I already check the firewall open already.( i run at ubuntu 9.10)
Great!!!! Thank you very much.
Excellent tutorial! Thanks so much for putting this together.
thanks alot for this tutorial it works perfectly… am running an Kubuntu9.10
thanks
Thanks! Helped me out alot!
nice tutorial dude..thx a lot.. helps me a lot ;)
thanks alot, that was a great tutorial..
Thank you ever so much for this, this helped me out big time ;)
hello, I do have a problem with my xampp,am loging in localhost and it’s showing me this:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
what can i do to fix it because I want to install joomla in ubuntu 9.10,thank you
thank u very much for ur clear tuition
Thanks so much for this tutorial! It was very clear, and helped me where a lot of other ones were confusing. I’m new to Ubuntu, and I found this extremely user friendly. Thanks!