下载:
尝试用wget指令,但是速度很慢,所以换成下载然后用sftp上传到服务器
下载xampp,可以选择windows下载再通过ftp上传
Winscp工具:http://winscp.net/eng/docs/lang:chs
上传以后
Change the permissions to the installer(修改文件的权限)
命令:chmod 775 xampp-linux-x64-7.0.6-0-installer.run
图1
Run the installer(运行安装文件)
命令:sudo ./xampp-linux-x64-7.0.6-0-installer.run
图2
安装目录为/opt/lampp
安装完成进入查看下
图3
命令的链接,运行xampp的命令就是 /opt/lampp/xampp
图4
启动xmapp
图5
现在输入IP地址已经可以访问了
尤其注意!!!
腾讯云的安全组的端口开发问题,记得开放apach默认绑定的80端口,或者是开放修改后apache绑定的端口
图6
卸载
先停止xampp
命令:/opt/lampp/lampp stop
再输入:rm -rf /opt/lampp
xampp的apache启动失败
解决:查看端口情况
命令:netstat -apn
图7
方法二:直接使用 netstat -anp | grep portno
即:netstat –apn | grep 80
图8
kill
图9
再启动xampp
图10
phpadmin外网访问失败问题
How do I enable access to phpMyAdmin from the outside?
仍未解决
图11
官网的解决手册
In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost.
To enable remote access to phpMyAdmin, follow these steps:
Edit the etc/extra/httpd-xampp.conf file in your XAMPP installation directory.
Within this file, find the line below and update it to remove ‘phpmyadmin’ from the list of locations.