Thứ Ba, 10 tháng 11, 2015

How to install XAMPP on CentOS/RHEL 6.5

How to install XAMPP on CentOS/RHEL 6.5

XAMPP is a open source cross platform software stack package mainly used for web server solution. XAMPP is available for Windows,MAC OSX,Solaris and Linux(WAMP, MAMP, SAMP, LAMP).
XAMPP stands for –
X = Cross Platform (Windows,MAC OSX,Solaris and Linux)
A = Apache
M = MySQL
P = PHP
P = Perl

NOTE: SELINUX is in Enforcing mode

Step 1: Download the XAMPP
yum install wget
wget https://www.apachefriends.org/xampp-files/5.5.30/xampp-linux-x64-5.5.30-0-installer.run
Step 2:  Give executable permission to downloaded XAMPP script
chmod +x xampp-linux-x64-5.5.30-0-installer.run
Step 3: Run XAMPP installer script
[root@localhost src]# ./xampp-linux-x64-5.5.30-0-installer.run
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.

----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

----------------------------------------------------------------------------
Installation Directory

XAMPP will be installed to /opt/lampp
Press [Enter] to continue:

----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.

[root@localhost src]#
Step 4: Allow ALL network to access XAMPP Server
Edit the last section of file called httpd-xampp.conf. Add new line Require all granted and comment the line Require local by using # sign
vi /opt/lampp/etc/extra/httpd-xampp.conf
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    # Require local
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
Step 5 : Restart all services by using lampp script
Restart all the services by using below given command
/opt/lampp/lampp restart
Below given is the reference from my system
[root@localhost src]# /opt/lampp/lampp restart
Restarting XAMPP for Linux 5.5.30-0...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[root@localhost src]#

Step 6: Now open the XAMPP in Web browser

Now open the web browser and type the URL or ip-address in address bar
The XAMPP dashboard will be open






Share This!


Không có nhận xét nào:

Đăng nhận xét