Install PHP+Apache Server+mySQL

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..

1. Download
2. Installation
3. Start
4. Test

So here We GO:
STEP 1. Download XAMPP

Its some 58 MB file Download it using the above link.
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.

To start XAMPP simply call this command:

/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.6.6...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running.

If you get any error messages please take a look at this link.

STEP 4: TEST..(Most 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.

The image “” cannot be displayed, because it contains errors.

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:

  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 fix most of the security weaknesses simply call the following command:

/opt/lampp/lampp security

It starts a small security check and makes your XAMPP installation more secure.

Start Apache, mySQL at every system startup:
Goto System->Administration->Services
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..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s