Установка XAMPP на CentOS/RHEL 6.x

baltun

Администратор
Сообщения
10.908
Реакции
2.597
Баллы
2.003
Как расшифровывается XAMPP ?

XAMPP это –
X = кроссплатформа (Windows, MAC OSX, Solaris и Linux)
A = Apache
M = MySQL
P = PHP
P = Perl

Процесс установки:
Шаг первый, скачиваем скрипт последний версии (на момент написания).
Код:
yum install wget
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.21/xampp-linux-x64-5.6.21-0-installer.run
или
wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/7.0.6/xampp-linux-x64-7.0.6-0-installer.run

Устанавливаем права.
Код:
chmod +x xampp-linux-x64-5.6.21-0-installer.run
или
chmod +x xampp-linux-x64-7.0.6-0-installer.run

Второй шаг запускаем скрипт установки. По умолчанию устанавливается по пути /opt/lampp
Код:
./xampp-linux-x64-5.6.21-0-installer.run
или
./xampp-linux-x64-7.0.6-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.

Редактируем файл httpd-xampp.conf если требуется
Код:
nano /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>

Шаг третий, перезапускаем службы.
Код:
/opt/lampp/lampp restart
Код:
[root@localhost ~]# /opt/lampp/lampp restart
Restarting XAMPP for Linux 1.8.3-3...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...not running.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[root@localhost ~]#
 
Назад
Верх Низ