一、yum update
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
二、XAMPP不支持64位linux系统,解决:
yum install -y glibc*i686
三、错误提示,/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory,解决:
vi /opt/lampp/lampp
找到:export LD_ASSUME_KERNEL=2.2.5
改为:export LD_ASSUME_KERNEL=2.8.0
四、无法外网访问,解决:
#/opt/lampp/lampp stop
修改文件
/opt/lampp/etc/extra/httpd-xampp.conf
注释掉Deny from all 一行。
#/opt/lampp/lampp start
phpadmin加一行
Require all granted
五、关闭防火墙
service iptable stop