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

Code:
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)

Code:
wget http://www.apachefriends.org/download.php?xampp-linux-1.7.7.tar.gz

extract it to /opt/ folder

Code:
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)

Code:
service httpd stop

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

Code:
/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

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

remove this line(end of the file)

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

and final, run your xampp

Code:
/opt/lampp/lampp start

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

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

This is the useful path

Code:
/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/config.inc.php - The phpMyAdmin configuration file.

i hope it helps

Source : http://www.host1free.com/forum/vps-technical-support/7609-tutorial-how-install-xampp-centos-6-a.html

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s