How to install XAMPP 1.7.1 for Linux Ubuntu 9.04
How To Install XAMPP 1.7.1 for Linux Ubuntu 9.04
This tutorial will explain how to install XAMPP for Linux, formerly known as LAMPP. This will install all of the following components:
Apache 2.2.11, MySQL 5.1.33, PHP 5.2.9 & PEAR + SQLite 2.8.17/3.3.17 + multibyte (mbstring) support, Perl 5.10.0, ProFTPD 1.3.2, phpMyAdmin 3.1.3.1, OpenSSL 0.9.8k, GD 2.0.1, Freetype2 2.1.7, libjpeg 6b, libpng 1.2.12, gdbm 1.8.0, zlib 1.2.3, expat 1.2, Sablotron 1.0, libxml 2.7.2, Ming 0.3, Webalizer 2.01, pdf class 009e, ncurses 5.3, mod_perl 2.0.4, FreeTDS 0.63, gettext 0.11.5, IMAP C-Client 2007e, OpenLDAP (client) 2.3.11, mcrypt 2.5.7, mhash 0.8.18, eAccelerator 0.9.5.3, cURL 7.19.3, libxslt 1.1.8, phpSQLiteAdmin 0.2, libapreq 2.08, FPDF 1.6, XAMPP Control Panel 0.6, bzip 1.0.5, PBXT 1.0.07-rc, PBMS 0.5.08-alpha.
XAMPP, also formerly known at LAMPP, is an easy method of installing a testing and development platform for PHP, HTML, and MySQL websites and applications. It does require additional steps to make it secure for public access, which a few of those steps are outlined in the tutorial.
I do highly recommend using the Synaptic Package Manager to install Apache, MySQL, and PHP instead of XAMPP if you intend on using it for more than just testing, as it's a better configuration and easier to update and manage. My article on how to do that can be found HERE.
LET'S GET STARTED!
First, you need to download XAMPP from the Apache Friends website. Here's THE LINK.
Next, either watch the video tutorial or scroll down and follow the written tutorial.
VIDEO TUTORIAL
Now you can proceed to Step 3 - Choosing Components and decide what software you'd like to have on your new server.
You may also want to read a few notes I've made about XAMPP for Linux, which you can find HERE.
WRITTEN TUTORIAL
1.) First, verify you have the XAMPP package on your desktop.

2.) Now open the "Terminal" window, shown in the illustration below.

3.) Login as the Super Administrator.
sudo -s
Then go to your Desktop folder by typing:
cd Desktop
Next, type the extract package to the /opt/ directory with this command:
tar xvfz xampp-linux-1.7.1.tar.gz -C /opt
It will take a minute or two for it to complete.

4.) Now start XAMPP.
/opt/lampp/lampp start
Everything should start just fine as long as you don't have any other Apache or MySQL servers running.

If you're not going to be using your XAMPP server to be accessible to the public, then you can skip the next steps on Security. You may have to do them to set a password for ROOT user.
If you'd rather just skip them and find where to put your files, go HERE.
HOW TO SETUP SECURITY IN XAMPP FOR LINUX
These steps will guide you through making your XAMPP server more secure, but won't guarantee you protection from hackers. The best policy against this is make regular backups so you can restore any damage caused by hackers. You can search Google on how to harden your XAMPP server.
1.) Open your terminal window and login as Super Administrator.
sudo -s
Next, type the following command to access XAMPP's security settings:
/opt/lampp/lampp security
The following dialogue should show up and just go through the steps:

2.) Now open FireFox and type http://localhost/xampp.
You should see the following dialog pop-up, which the user name is lampp and the password is whatever you set it in the security steps.

If you haven't accessed this yet, you will see the following screen. Just select your language.

3.) Now select the "Security" section as shown highlighted here:

You should see the following table if you secured it properly.

Now you're finished! That was pretty easy huh?
Now you can continue below and see where to place your documents. You can also proceed to Step 3 - Choosing Components and find something to add to your new Apache XAMPP server.
WEBSITE FILES LOCATION
This was a little tricky for me to find the first time I installed XAMPP for Linux, since I knew nothing about Linux at the time or how it functioned. So here ya go.
The htdocs folder is located in /opt/lampp/htdocs/ . You need to remove the index.php when adding website files to it, otherwise it will continue to re-direct to the xampp panel. You can still access the xampp panel by going to http://localhost/xampp.
ADDITIONAL NOTES AND RESOURCES
If you're new to Linux, getting familiar with the way it works compared to Windows can be very challenging at first. While I'm not interested in writing a guide on "How to use Linux", I am interested in making using Linux as a web server as easy as I can. Support for Ubuntu is excellent and there's an abundance of info for every topic to help you along.
Commands for XAMPP
You will probably need these. I've created a section pertaining to Linux and it includes a document with more info about XAMPP for Linux. You can see that section HERE.
If you see anything that needs improvement or you have suggestions for additional content, please don't hesitate to leave a comment. Thanks for visiting.
| Comments |
|
|
|
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."
Last Updated (Saturday, 08 August 2009 13:15)






