How To Install and Config XAMPP Apache (MySQL, PHP, Perl) For Linux, Windows, Mac OS, and Solaris Easyly

To run various open source applications you might have to install Apache, MySQL, PHP, and Perl (or some combination of these). For those who have difficulties installing and configuring these separately, XAMPP might be helpful.

XAMPP is Apache distribution that contains MySQL, PHP and Perl. You really don’t need to worry about configuring MySQL, PHP, or Perl for Apache. Just install XAMPP, and everything is already pre-built and ready to go. It is that easy!

Also, XAMPP is available for Linux, Windows, Mac OS, and Solaris.

1. Download XAMPP

Download XAMPP from xampp in sourceforge.

2. Install XAMPP

Extract the tar file under /opt directory.

# cd /opt 

# tar xvzf xampp-linux-1.7.3a.tar.gz


Note: For those who prefer to install the individual components separately, you can also install Apache from source, MySQL, PHP from source, or install LAMP using yum.

3. Start or stop XAMPP

Start xampp. It starts all the xampp services.

# /opt/lampp/lampp start


Stop xampp. It stops all the xampp services.


# /opt/lampp/lampp stop

4. Start particular XAMPP service

Start a particular service by specifying the name of the service along with start. For example, following starts only Apache (along with PHP).

# /opt/lampp/lampp startapache 

XAMPP: Starting Apache with SSL (and PHP5)...


Note: Use startmysql in the argument to start only mysql

5. Stop particular service


Similar to start, you can also stop a particular server. For example, following stops only MySQL.


# /opt/lampp/lampp stopmysql 

XAMPP: Stopping MySQL...

6. XAMPP Configuration file


Configuration files are available under /opt/lampp/etc/. Some of the xampp config files are httpd.conf, my.cnf, php.ini.

7. XAMPP uninstallation

Remove the /opt/lampp directory to uninstall xampp.
RaphBlog.Com.NG. Powered by Blogger.