阿里云部署php项目Linux(7.3.1611)+XAMPP(5.6.31)

1、从官网下载对应的XAMPP安装包
阿里云部署php项目Linux(7.3.1611)+XAMPP(5.6.31)
2、用WinSCP将XAMPP安装包上传到服务器端的“opt/”目录下
阿里云部署php项目Linux(7.3.1611)+XAMPP(5.6.31)
3、修改XAMPP安装包的文件操作权限
chmod +x xampp-linux-x64-5.6.31-0-installer.run
阿里云部署php项目Linux(7.3.1611)+XAMPP(5.6.31)
4、运行XAMPP安装包,全部选y,等待进度条100%,安装成功。
./xampp-linux-x64-5.6.31-0-installer.run
阿里云部署php项目Linux(7.3.1611)+XAMPP(5.6.31)
4、启动服务 /opt/lampp/lampp start
5、登录mysql 修改密码
/opt/lampp/bin/mysql -uroot -p
use mysql;
update user set password=password(‘123456’) where user = ‘root’;
flush privileges;
6、重启服务 /opt/lampp/lampp restart
如果访问不了,需要关闭防火墙 /etc/init.d/iptables stop