报的错误

2018/10/12 16:33:44 [crit] 5351#0: *121 stat() "/root/wwwroot/test/1.html" failed (13: Permission denied), client: 127.0.0.1, server: input.cc, request: "GET /1.html HTTP/1.1", host: "input.cc"

2018/10/12 16:33:44 [error] 5351#0: *121 FastCGI sent in stderr: "Unable to open primary script: /root/wwwroot/test/index.php (No such file or directory)" while reading response header from upstream, client: 127.0.0.1, server: input.cc, request: "GET /1.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "input.cc"

2018/10/12 16:33:44 [info] 5351#0: *121 client 127.0.0.1 closed keepalive connection

2018/10/12 16:33:47 [error] 5351#0: *123 FastCGI sent in stderr: "Unable to open primary script: /root/wwwroot/test/2.php (No such file or directory)" while reading response header from upstream, client: 127.0.0.1, server: input.cc, request: "GET /2.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "input.cc"

2018/10/12 16:33:47 [info] 5351#0: *123 client 127.0.0.1 closed keepalive connection

nginx 站点的配置

nginx, php-fpm使用用户和组为www

站点目录与文件的权限

无法访问配置的站点

nginx监听到的错误

本以为是权限问题,我也设置了权限,还是报错.不知道什么问题.

unable open file php,linux 使用lnmp 报Unable to open primary script相关推荐

  1. linux txt file busy,linux使用cp报错 Text file busy

    我第一个想到的是:可能ioctl可以检查文件.可惜我猜错了,看了一下cp的源码,原来如果一个文件正在运行,另一个进程再open以获得写权限的话,这个open本身就会失败,返回-1,errno为ETXT ...

  2. IDEA中对代码进行commit时,git报Unable to create ‘E:/blog/.git/index.lock‘: File exists问题解决

    IDEA中对代码进行commit时,git报Unable to create 'E:/blog/.git/index.lock': File exists问题解决 **解决方法** **方法一** * ...

  3. kali linux卸载lnmp,kali linux 如何安装lnmp 1.2

    先按照正常的步骤安装,执行命令 wget -c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz && tar zxf lnmp1.2-fu ...

  4. linux 编译报错 not a directory,Linux常见英文报错中文翻译

    Linux常见英文报错中文翻译(菜鸟必知) 1.command not found 命令没有找到 2.No such file or directory 没有这个文件或目录 3.Permission ...

  5. Linux常见英文报错中文翻译(菜鸟必知)

    Linux常见英文报错中文翻译(菜鸟必知) 1.command not found 命令没有找到 2.No such file or directory 没有这个文件或目录 3.Permission ...

  6. 南京邮电大学嵌入式系统开发实验5:嵌入式Linux下LED报警灯驱动设计及编程

    实验5  嵌入式Linux下LED报警灯驱动设计及编程 一.实验目的 理解驱动本质,掌握嵌入式Linux系统下驱动开发相关知识,包括端口寄存器访问.接口函数编写.和文件系统挂接.注册及相关应用编程等知 ...

  7. Linux整合LNMP(Centos7.4+Nginx+PHP+MariaDB)

    分享知识 传递快乐 由于之前写过Windows整合方式,有很多相同的地方,在此就不过多重复写了,参考下面几篇文章就够用了. Win7整合WNMP(Linux整合LNMP(Centos7.4+Nginx ...

  8. linux中文翻译为,Linux常见英文报错中文翻译

    Linux常见英文报错中文翻译(菜鸟必知) 1.command not found 命令没有找到 2.No such file or directory 没有这个文件或目录 3.Permission ...

  9. Failure to open file: /home/samba/demo/untitled/Makefile Unable to generate makefile for: /home/samb

    记录初学linux时,使用QT交叉编译碰到的坑. Failure to open file: /home/samba/demo/untitled/Makefile Unable to generate ...

最新文章

  1. 一文搞懂RNN(循环神经网络)
  2. stm32车联网监控源码_物联网DIY,STM32配合ESP8266,APP控制LED,可以绑定天猫精灵...
  3. 解决多个pts/*在线登录问题
  4. 查看tomcat服务器返回的响应消息,Tomcat上的WebSocket握手返回意外响应代码500
  5. Windows系统帮助中心程序的0day漏洞
  6. 6.6 数据集的存储与表达
  7. 文件操作-打开文件方式以及写入和追加数据
  8. Hibernate中二级缓存配置
  9. ubuntu java android_Ubuntu中为Android系统实现内置Java应用程序测试Application Frameworks层的硬件服务...
  10. 二叉树为空意味着二叉树_我是怎么调试出来二叉树的遍历(超精彩配图),从此遍历不再愁了...
  11. 华为达芬奇架构到底好在哪里?
  12. Total internal reflection TIR
  13. QT5之修改程序图标
  14. Opencv实现的简易绘图工具
  15. c语言投票程序设计报告书,C语言程序设计报告书
  16. GPUImage源码解读之GPUImageFramebufferCache
  17. 百分字符知识付费教程
  18. matlab模型辨识工具箱的使用
  19. appium之toast处理
  20. 我和腾讯不得不说的故事

热门文章

  1. thinkphp重大漏洞_经过许多重大的改进计划,关键基础设施仍然存在漏洞
  2. CTFshow MISC 杂项签到~misc4
  3. MySQL 多表结构的创建与分析
  4. linux中expr的用法,linux expr命令参数及用法详解(示例代码)
  5. 自建机房跟IDC运营机房差异比较
  6. 技术干货 | 一文读懂GPU显卡10个重要参数
  7. 查看网页ftp服务器地址,怎么查看本地的ftp服务器地址
  8. OpenStack入门科普,看这一篇就够啦
  9. 鹅头上长头瘤怎么回事 鹅头上长大包用什么药
  10. 2006-06-12无所事事的一天