Jump to content



Photo

How to Install XAMPP in CentOS 6 - Posted By hddramem

Tutorial

  • Please log in to reply
1 reply to this topic

#1 Cryo Kinesis

Cryo Kinesis

    Haphost Staff

  • Moderators
  • 128 posts
  • LocationGridania, Eorzea

Posted 05 August 2014 - 05:24 PM

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)
wget http://www.apachefriends.org/download.php?xampp-linux-1.7.7.tar.gz

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

i hope it helps smile.png
  • cloudfastservers likes this

Cryo%20Kinesis%20Haphost%20Sig2.png


#2 cloudfastservers

cloudfastservers

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 12 November 2014 - 03:48 AM

Thank you good tutorial , use webmin for easy install


cloudfastservers.com

Cloud VPS Linux and Windows






Also tagged with one or more of these keywords: Tutorial

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users