在Linux上安装xampp平台
wget https://nchc.dl.sourceforge.net/project/xampp/XAMPP%20Linux/5.6.40/xampp-linux-x64-5.6.40-1-installer.run
可能会出现证书过期,在末尾添加--no-check-certificate即可
wget https://nchc.dl.sourceforge.net/project/xampp/XAMPP%20Linux/5.6.40/xampp-linux-x64-5.6.40-1-installer.run --no-check-certificate
添加可执行权限并运行
启动xampp
/opt/lampp/lampp start
然后访问即可。
注:xampp启动时,出现报错情况
修改启动配置文件
vim /opt/lampp/lampp
436行 export LD_ASSUME_KERNEL=2.2.5 修改为 2.8.0
修改之后启动即可
输入IP及端口访问xmapp出现不能访问且已经确认端口防火墙放开的情况下
(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. Error 403 192.168.6.142 Apache/2.4.10 (Unix) OpenSSL/1.0.1i PHP/5.5.15 mod_perl/2.0.8-dev Perl/v5.16.3 )
进入这个[root@localhost ~]# cd /opt/lampp/etc/extra目录下。
编辑:vim httpd-xampp.conf
将其中的Require local改为Require all granted
访问成功!!