Thursday, June 21, 2012

Linux - Xampp Server Installation





Installing xampp for Windows is very easy. But for Linux it is comparitively difficult. First of all download the xampp server from here Xampp.

The xampp should be extracted as the root account.Else the mysql will not start. If you don't have root account create one by opening a terminal and type



sudo passwd

Now type your account password and the terminal will ask the new Unix(root) password to type. Add something like 'root' as the root password. Now login as the root by typing :
su

And Type your root password.

Extract the downloaded archive file to /opt:

tar xvfz xampp-linux-1.7.7.tar.gz /opt

Now we have to set proper permission to xampp directories for the smooth running of the server. First of all change the user of htdocs folder to default user. For this in the terminal run the following command :

chown username /opt/lampp/htdocs /opt/lampp/htdocs/*


Now give executable permission to this folder. For this type :

chmod 777 /opt/lampp/htdocs /opt/lampp/htdocs/*

Now our xampp server has successfully installed. To start XAMPP simply call this command(after login as root :



/opt/lampp/lampp start


Now  You can see the following commands on your terminal .



Starting XAMPP for Linux 1.7.4...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.


If you bother about the xampp security simply call this command :

/opt/lampp/lampp security

and follow the options

1 comment:

  1. Xampp works perfectly on any distribution of linux if it is properly installed. If u have any problem with the installation, don't hesitate to post it below !!!!!!!

    ReplyDelete