How to Install and Uninstall XAMPP/LAMPP in Linux

How to Install and Uninstall XAMPP/LAMPP in Linux


If you need web server with complete features, please try XAMPP/LAMPP. It's Totally Free !!
XAMPP is Apache distribution that contains MySQL, PHP and Perl. You really no need to worry about configuring MySQL, PHP, or Perl for Apache. Just install XAMPP, and everything is ready to go.

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


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

3. Start or stop XAMPP
Start xampp. It starts all the xampp services.

# /opt/lampp/lampp start

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)...
 
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.
# rm -rf /opt/lampp

 

Comments