Installing XAMPP server in Ubuntu 10.04


XAMPP  is an open source cross browser web server. The package comes with an Apache Httpd Server, a server interpreter for scripts written in PhP and Perl, MySql database, phpMyAdmin, and OpenSSL.

The XAMPP server v.1.7.3 for Linux is packaged with Apache 2.2.14, MySQL 5.1.41, PHP 5.3.1 & PEAR + SQLite 2.8.17/3.6.16 + multibyte (mbstring) support, Perl 5.10.1, ProFTPD 1.3.2c, phpMyAdmin 3.2.4, OpenSSL 0.9.8l, 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.6, Ming 0.4.2, Webalizer 2.21-02, pdf class 009e, ncurses 5.3, mod_perl 2.0.4, FreeTDS 0.63, gettext 0.17, 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.6, libxslt 1.1.26, libapreq 2.12, FPDF 1.6, XAMPP Control Panel 0.8, bzip 1.0.5, PBXT 1.0.09-rc, PBMS 0.5.08-alpha, and ICU4C Library 4.2.1 .

The following steps will help you to install, test, start and stop the XAMPP server in your local machine.  Finally, I also include a command to remove the XAMPP server (just in case should you change your mind.)

Step (1) Login to root, the go to /opt directory.
~$ sudo su
Password: enter root password
# cd /opt/

Step (2) Get the source code.
Go to http://www.apachefriends.org/en/xampp-linux.html. Scroll down and locate the latest XAMPP version for Linux. Highlight the link, right click, then select "Copy link location" from the pop up menu. At the terminal, ~/ opt# wget (paste the link that you just copied here.) At the terminal, the command line should look like this:
/opt# wget http://www.apachefriends.org/download.php?xampp-linux-1.7.3a.tar.gz

Step (3) Extract the source code. This will create a lampp directory, where your XAMPP server will live.
# tar -xvzf xampp-linux-1.7.3a.tar.gz

Step (4) Start your newly installed XAMPP server.
# /opt/lampp/lampp start
Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Step (5) Test  your newly installed XAMPP server. On your favorite web browser, type, http://localhost/xampp.  You should see the XAMPP Welcome page if installation was successful.

Default Security Settings
The XAMPP default installation does not establish security for the followings:
1. The MySQL administrator (root) has no password.
2. The MySQL daemon is accessible via network.
3. ProFTPD uses the password "lampp" for user "nobody."
4. PhpMyAdmin is accessible via network.
5. Examples are accessible via network.
6. MySQL and Apache running under the same user (nobody.)

Step (6) Establish Your Security Settings.  At the terminal,
# /opt/lampp/lampp security
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes.]  Hit [enter] to set password, the
system will prompt you through a series of aforementioned items to establish your security preferences.

Step (7) Stop your XAMPP server.
# /opt/lampp/lampp stop
Stopping XAMPP for Linux 1.7.3a...
XAMPP: Stopping Apache with SSL...
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped. 

Removal of XAMPP (should you change your mind.)  At the terminal,
~$ sudo su
# rm -rf /opt/lampp

Other Noteworthy
1) Common parameters
2) Secure Sockets Layer (SSL)
     a) You can start Apache with SSL by using the following command (as root):
     # /opt/lampp/lampp startssl
     b) You can access your Apache server by using, https://localhost, on your favorite browser.

3) Keeping everything under one roof.  The installation of XAMPP creates a LAMPP directory in your computer. By default, the files/folders are installed as follows:





Sources

1 comments:

Zinavo Bangalore said...

In your post is very good, keep more sharing your updates. Website Designing Company Bangalore | Web Development Company Bangalore

Post a Comment