How to install and configure Xampp in Linux

6:13 PM Unknown 0 Comments

Xampp for Linux

Installing and Configuring Linux version of XAMPP

By the way, earlier this software was called LAMPP but to avoid misconceptions it was renamed to "XAMPP for Linux". So if you are seeking for LAMPP you're at right place.
If you encounter any problems with XAMPP, Please feel free to contact and share. This will help others. :)

Xampp provides :-
  1. Apache
  2. MySQL
  3. PHP
  4. Perl
  5. phpMyAdmin
  6. Filezilla etc..
Steps for Installation :-
  1. Download
  2. Extraction and Installation
  3. Start
  4. Test
  5. Configuring and setting up security
  6. Restart/Stop
Step 1 : Download XAMPP
Download the latest version from here : Xampp for Linux Download


Step 2 : Extract and Install
Open the Terminal and log in as administrator (root)
su

The downloaded file is  xampp-linux-1.8.1.tar.gz
Extract tarball in /opt directory : 
tar xvfz  xampp-linux-1.8.1.tar.gz -C /opt

Rename the folder to lampp.
mv /opt/xampp-linux-1.8.1 /opt/lampp
Step 3 : Starting up
Command to start XAMPP :
/opt/lampp/lampp start
You should now see starting messages. Wait until all services gets started.

Step 4 : Test Installation
Test XAMPP in your browser by typing following URL
http://localhost  or  http://127.0.0.1

You should see the homepage of XAMPP.


Step 5 : Setting up security
Setting up security for XAMPP
List of missing security in XAMPP:
  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).
To patch up these issues enter the following command :
/opt/lampp/lampp security

Set passwords for each item step by step.
Above step makes your XAMPP quite secure by protecting the XAMPP pages by a username ('lampp') and password combination.

Now, restart XAMPP,
/opt/lampp/lampp restart
Now you are ready to use XAMPP on your Linux machine.

Step 6 : Stop XAMPP
Stopping XAMPP
/opt/lampp/lampp stop


Step 7 : Uninstallation
Uninstalling XAMPP
rm -rf /opt/lampp

Note :
In case you get Access Forbidden! then run the following command in terminal :
chmod -R 775 /opt/lampp/htdocs



For more help you can refer here.
To know the function of any command, comment below.

Image showing setting up security, starting and stopping XAMPP on Linux. 







0 comments :