douhuan1937 2017-02-23 13:34 采纳率: 0%
浏览 39

13:权限在ubuntu 14.06上使用nginx拒绝了php 5.6 fpm

I am not able to run php fpm on nginx. I am getting permission error with www-data user/group. My error log is as below. I tried giving permission to the user www-data with different solutions over internet but didnt worked. I am running codeingiter framework. Please check error log below

10673#10673: *19456 stat() "/var/www/html/testphp/api/ajax/getdetails" failed (13: Permission denied), client: 11.11.1.11, server: www.mydomain.com, request: "GET /api/ajax/getroomdetails/201 HTTP/1.1", h$

10673#10673: *19456 stat() "/var/www/html/testphp/api/ajax/getdetails" failed (13: Permission denied), client: 11.11.1.11, server: www.mydomain.com, request: "GET /api/ajax/getroomdetails/201 HTTP/1.1", h$

10673#10673: *19456 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 11.11.1.11, server: www.mydomain.com, request: "GET /api/ajax/getdetails HTTP/1.1$

Please suggest how can I give correct permissions to run php-fpm

  • 写回答

1条回答 默认 最新

  • dqjmq28248 2017-02-23 14:09
    关注

    have you checked your file permissions cd /you Directory then type ls -l after that you can use

    chown -R root:www-data /Directory chmod g+w -R /Directory

    or

    chmod +x /Directory

    评论

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器