开发者社区> 问答> 正文

在Debian 8里安装foxphp3.0.1

看到云友在 安装foxphp遇到了小问题 ,所以实践一下。

环境:debian 8,nginx 1.6, php 5.6,foxphp3.0.1

过程:

1. 先安装好php+mysql的环境,请参考这里: https://bbs.aliyun.com/read/288162.html
2. apt-get install php5-curl php5-gd # 因foxphp要求curl和gd组件,所以补安装
3. chown -R www-data:www-data /var/www/html # 将foxmphp文件所在的目录修改为web进程用户(www-data)所有
4. 修改站点配置文件 /etc/nginx/sites-enabled/default ,修改静态化规则内容:
location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                # try_files $uri $uri/ =404;
                   if (!-e $request_filename) {
                   rewrite  ^(.*)$  /index.php?s=$1  last;
                   break;
                    }
        }

5. 通过浏览器访问站点,开始安装foxphp,可顺利完成,网站前后台显示内容正常


[attachment=139617]


[attachment=139618]


[attachment=139619]


[attachment=139620]


[attachment=139621]


[attachment=139622]


参考: http://doc.thinkphp.cn/manual/hidden_index.html

展开
收起
dongshan8 2018-01-11 11:30:16 3692 0
1 条回答
写回答
取消 提交回答
  • 非常实用 赞赞
    2018-01-25 10:48:20
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Debian GNU/Linux 安全合规之路 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载