XAMPP for LINUX: XAMPP is an easy-to-install Apache distribution containing MySQL, PHP and Perl. It is really very easy to install and to use: just download, extract and start.
XAMPP isn’t designed for rolling out on a production server. Its goal is simply to ensure everything works, which makes it very insecure. For example, the MySQL admin has no password, the phpMyAdmin program and the MySQL daemon are accessible from over the network, and MySQL and Apache run under the same user. If you are using our XAMPP installation for a non-sensitive deployment, leaving these “holes” open won’t do any harm. But some content management systems are designed to not work in a no-password environment. As a bare minimum, I’d recommend you assign the MySQL user a password.
Xampp is also available for Windows. but as we face a lot of problem installing in Linux and well this post is to install PHP+mySQL+APache2 Server for Linux users..
So here We GO:
STEP 1. Download XAMPP
Its some 58 MB file Download it using the above link.
Note: Attention: If you download these files on a Windows system and you’re running McAfee virus scanner you may get a false positive virus warning. This is a problem with McAfee and gzip-compressed files, it should be ignored.
STEP 2. Installation
After downloading simply type in the following commands:
- Go to a Linux shell and login as the system administrator root: su
- Extract the downloaded archive file to /opt:
tar xvfz xampp-linux-1.6.6.tar.gz -C /opt
Warning: Please use only this command to install XAMPP. DON’T use any Microsoft Windows tools to extract the archive, it won’t work.
Warning 2: already installed XAMPP versions get overwritten by this command.
That’s all. XAMPP is now installed below the /opt/lampp directory.
STEP 3: START
To start XAMPP simply call this command:
You should now see something like this on your screen:
Starting XAMPP 1.6.6...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
Ready. Apache and MySQL are running.
If you get any error messages please take a look at this link.
STEP 4: TEST..(Most Imp..to ensure yourself)
OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:
Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.
READ ABOUT XAMPP..: LINK to read more
As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.
Here a list of missing security in XAMPP:
- The MySQL administrator (root) has no password.
- The MySQL daemon is accessible via network.
- ProFTPD uses the password “lampp” for user “nobody”.
- PhpMyAdmin is accessible via network.
- Examples are accessible via network.
- MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
It starts a small security check and makes your XAMPP installation more secure.
Start Apache, mySQL at every system startup:
enable the Checkbox: DatabaseServer(mySQL),WebServer(apache2)
Wamp is also a very good Option(I use it on Windows system) 😀
Than You… :)..Reply if ny suggestions or help required..