Suggest a StoryDo you have a news tip? We would like to hear from you.

Setup XAMPP Web Development Server On CentOS 6.4 – Fedora 18 – Ubuntu 13.04

Spread the love

XAMPP is free and open-source web development bundle, it includes Apache HTTP web server, MySQL, PHP, Perl, Python. OpenSSL, and many more web modules. XAMPP software bundle “distribution” easily provides all these web modules with a few commands. So, don’t bother installing Apache, MySQL, PHP …etc one by one. Please, follow the installation instructions down below.

XAMPP-Linux-CentOS 6.4-Screenshot

[note]The same installation instructions has been tested on CentOS, Fedora. and Ubuntu. All you need is to run these commands with administrator privileges “sudo or su” depeding on your Linux distribution.[/note]

XAMPP is currently available to install on Linux, MAC OS X and Microsoft Windows. But, in this post we will have a look at how to setup XAMPP on CentOS 6.4 also, as I mentioned up here in the note the installation instructions are the same for CentOS, Fedora, and Ubuntu and many Linux distributions.

The last version of XAMPP is version 1.8.1 which includes these web software and modules: Apache 2.4.3, MySQL 5.5.27, PHP 5.4.7 & PEAR + SQLite 2.8.17/3.6.16 + multibyte (mbstring) support, Perl 5.14.2, ProFTPD 1.3.4a, phpMyAdmin, OpenSSL 1.0.1c, GD 2.0.1, Freetype2 2.1.7, libjpeg 6b, libpng 1.2.12, gdbm 1.8.0, zlib 1.2.3, expat 1.2, Sablotron 1.0, libxml 2.7.6, Ming 0.4.2, Webalizer 2.21-02, pdf class 009e, ncurses 5.3, mod_perl 2.0.5, FreeTDS 0.63, gettext 0.17, IMAP C-Client 2007e, OpenLDAP (client) 2.3.11, mcrypt 2.5.7, mhash 0.8.18, eAccelerator, cURL 7.19.6, libxslt 1.1.26, libapreq 2.12, FPDF 1.6, XAMPP Control Panel 0.8, bzip 1.0.5, PBXT 1.0.09-rc, PBMS 0.5.08-alpha, ICU4C Library 4.2.1, APR (1.4.6), APR-utils (1.4.1).

Step One

Download the latest release of XAMPP Linux “1.8.1” from this Link.

Download Page.

Or, you can download it using this command in Terminal,


Step Two

Extract XAMPP Linux archive package using this command. Make sure you are currently browsing the location you have download the XAMPP archive file, Assuming you the file is downloaded in the “Download” directory for a user called “LinuxNov”. So, open it using this command.

cd /home/LinuxNov/Downloads

Then extract the XAMPP Linux archive file with administrator privileges using this command.

su root tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

It will take a few moments until it extract the XAMPP package to “/opt/lampp” directory. Eventually, it will finish copying and XAMPP for Linux is completely installed and ready to start.

Step Three

Start/Stop XAMPP using these commands.

Start XAMPP for Linux

su root /opt/lampp/lampp start

Stop XAMPP for Linux

su root /opt/lampp/lampp stop

Advanced Start and stop parameters Here.

Step Four: Secure XAMPP

This process won’t prevent XAMPP from running, However, it’s necessary to setup XAMPP security options for localhost XAMPP page, phpMyAdmin, and MySQL, to make sure your personal data is secured.

Run this command which will walk you through the procedures to setup and change localhost, phpMyAdmin and MySQL passwords.

su root /opt/lampp/lampp security

Command sample output

XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'lampp' as user name!
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password for user 'nobody' is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...
XAMPP: Done.

After you have added/changed the new passwords. It’s time to restart XAMPP using this command.

su root /opt/lampp/lampp restart

Finally, go to you web browser and open this Link to view the Localhost page which includes some links for security status, documentations, demo web applications built using several programming languages such as Python and Perl, also, there is a link for “phpMyAdmin” for creating a new databases.

Now, your web development environment is ready to use and you can install many content management systems “CMS” such as “WordPress, Drupal, Joomla, ..etc.”.

[How To]: Fix Access forbidden issue “Error 403”?!

Access forbidden!
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.
If you think this is a server error, please contact the webmaster.

Open this file mentioned in the error page “httpd-xampp.conf” with administrator privileges and add the following text at the end of the file grant access to phpMyAdmin.

su root nano /opt/lampp/etc/extra/httpd-xampp.conf

Ctrl+x to exit and “y” to save the file.

AllowOverride AuthConfig Limit
#Order allow,deny
#Allow from all
Require all granted

If you have another method to fix this error, please don’t hesitate to leave a comment.


Spread the love

Leave a Reply