Thursday, January 24, 2013

XAMPP for Linux On Centos 6.3

Setup steps for XAMPP for Linux On Centos 6.3

a. This tutorial is based on VirtualBox Image of Centos 6.3 downloadable from
b. This image uses Italian Keyboard Layout. It is recommended that you change the layout to United States. Otherwise, you may have problem such as vi commands not getting through the system.
c. The steps below were adapted from

1. Run Centos 6.3.
a. Log in as Centos.
b. Run Terminal.
c. Change user to root. Enter password "reverse".

[centos@localhost ~]$ su

2. Update system using yum
[root@localhost centos]# yum update

3. Get the latest version of XAMPP Linux
[root@localhost centos]# wget

4.  Extract it to /opt/ folder
[root@localhost centos]# tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

5.after you run the xampp be sure you stop the httpd service(in case it is pre-installed)
[root@localhost centos]# service httpd stop

6.add password to the /xampp/,Phpmyadmin,mysql and FTP
[root@localhost centos]# /opt/lampp/lampp security
you will asked to add password. be sure you will remember the password. the password in mysql is not recoverable.

The Virtual Image that we are using is currently using centos/reverse and root/reverse for username/password. To make it easy, set all passwords to 'reverse'. Remember that username for XAMPP is 'lampp'.

7.Edit the httpd-xampp.conf
[root@localhost centos]# vi /opt/lampp/etc/extra/httpd-xampp.conf

8. Remove the following 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
useful vi commands:
[alt]+i = INSERT mode
[esc] = shift from INSERT mode to COMMAND mode
dd = delete a line
zz = save
:wq = save before quit
:q = quit without save

9. Run XAMPP
[root@localhost centos]# /opt/lampp/lampp start

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

11. Useful Paths:
/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.


  1. Nice one, i was looking for such a kind of post for many days. Thank you for sharing such a good stuff. I am providing hosting in pakistan and i think it will be much beneficial for me.

  2. If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (no matter why you broke up) you got to watch this video
    right away...

    (VIDEO) Why your ex will NEVER get back...

  3. Good one, Xampp is a beauty if you want to develop your site or want to do any work regarding development locally. I am offering web design services in Lahore.

  4. Step by step instructions to Install MySQL on CentOS 6.6 with DB Installation Support | Cognegic
    Ceaselessly endeavoring to introduce MySQL on CentOS 6.6 yet did not get any positive reaction? Well! It appears something turns out badly in MySQL that is the reason you need to endure this issue. One of definitive approaches to dispose of this issue is DB Installation and Configuration Support or DB Configuration Support. Our database specialists can without much of a stretch handle your concern by giving you most ideal arrangement. Pick our Database Management Services and investigate the snappy help gave by Cognegic.
    For More Info:
    Contact Number: 1-800-450-8670
    Email Address-
    Company’s Address- 507 Copper Square Drive Bethel Connecticut (USA) 06801