如何在Linux云服务器上搭建Xampp

1.从Xampp官网下载对应的Linux版本安装包
2.使用X-shell 连接云服务器
3.执行rz,选中已经下好的安装包,等待上传完毕
4.上传完毕,后发现当前目录下(及执行rz命令的目录下)多了xampp-linux-x64-5.6.28-0-installer.run
5.将安装包改为可执行文件,chmod +x xampp-linux-x64-5.6.28-0-installer.run
6. 使用 ./xampp-linux-x64-5.6.28-0-installer.run 进行安装 ,一直y直到安装结束
7. cd /opt/lampp
8. ./ctlscript.sh start 开启服务
9. http://你的云服务器ip/phpmyadmin 会发现如何的错误这里写图片描述

下面谈谈如何解决这个错误
经过一番搜索与尝试
1。vim /opt/lampp/etc/extra/httpd-xampp.conf
2。将Directory的内容改为如下

<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    #Require local
        Order allow,deny
        Allow from all
        Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

<Directory "/opt/lampp/phpsqliteadmin">
    AllowOverride AuthConfig Limit
    #Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>

3。./ctlscript.sh restart 重启服务
现在就可以使用 http://你的云服务器ip/phpmyadmin进行访问了

另外,推荐一个更改密码的好方法:
http://blog.csdn.net/quincylk/article/details/50562399

参考
http://stackoverflow.com/questions/11999371/access-to-the-requested-object-is-only-available-from-the-local-network-phpmyadm
http://blog.csdn.net/jsship/article/details/43770311

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值