How to Install XAMPP in CentOS 6

This tutorial is must working(tested on my VPS)
advantage of using XAMPP – it’s easy to use.

first update your system by using yum

yum update

after you update your server, wget the latest version(don’t use the beta version of XAMPP on Linux, it’s very buggy)


extract it to /opt/ folder

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

after you run the xampp be sure you stop the httpd service(pre-installed)

service httpd stop

now we will add password to the /xampp/,Phpmyadmin,mysql and FTP

/opt/lampp/lampp security

you will asked to add password. be sure you will remember the password. the password in mysql is not recoverable.

next is to edit the httpd-xampp.conf

vi /opt/lampp/etc/extra/httpd-xampp.conf

remove this line(end of the file)

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 \
fc00::/7 \
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

and final, run your xampp

/opt/lampp/lampp start

viola! now the xampp is now working. if you don’t know the username this is the default username:

/xampp/ - lampp
PhpMyAdmin - root
MySql - root
ProFTP - nobody

This is the useful path

/opt/lampp/bin/	- The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor.
/opt/lampp/htdocs/ - The Apache DocumentRoot directory.
/opt/lampp/etc/httpd.conf - The Apache configuration file.
/opt/lampp/etc/my.cnf - The MySQL configuration file.
/opt/lampp/etc/php.ini - The PHP configuration file.
/opt/lampp/etc/proftpd.conf - The ProFTPD configuration file. (since 0.9.5)
/opt/lampp/phpmyadmin/ - The phpMyAdmin configuration file.

i hope it helps

Source :


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