centos6.5(腾讯云)安装xampp

下载:
尝试用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.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值