问题:
nginx: [emerg] open() "/www/server/nginx/conf/enable-php.conf" failed (2: No such file or directory) in /www/server/nginx/conf/nginx.conf:76 nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
在建新网站这边能看到这个报错,
![使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第1张 使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第1张](/upload/website_attach/202402/1_SE3FD37DYPPF262H.jpeg)
然后吧再去软件商店重载配置,依旧能看到报错的
![使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第2张 使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第2张](/upload/website_attach/202402/1_N9BAEXQWNQTHAV6P.jpeg)
![使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第3张 使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第3张](/upload/website_attach/202402/1_R2EMWM84K96M78JG.jpeg)
遇到过很多次啦,估计是因为博主都用国外服务器的原因,每次都是这样遇到好多次。
我的安装顺序是先安装:宝塔->开心版->安装所需要的nginx、php等运行环境
遇到这个情况的时候我就会想着先去改一下代理
解决过程:
第一种方法:
![使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第4张 使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第4张](/upload/website_attach/202402/1_PBYXTSRWPAYUUSY5.jpeg)
然后重新安装:
![使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第5张 使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第5张](/upload/website_attach/202402/1_MMDHPWR7EYEA8AUY.jpeg)
重新安装是为了看执行日志
![使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第6张 使用宝塔开心版时遇到nginx: [emerg] open() “wwwservernginxconfenable-php.conf“ failed,第6张](/upload/website_attach/202402/1_6WMT6PDECXVYFZYX.jpeg)
mv: cannot stat ‘/www/server/nginx/waf/wafconf’: No such file or directory
重装完莫名其妙可以,先保存着吧后续再看看
上一篇:【计算机网络】一些乱七八糟内容