gplessis / dotdeb-nginx

Dotdeb : Nginx
http://www.dotdeb.org/
BSD 2-Clause "Simplified" License
63 stars 31 forks source link

Error systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument #77

Open mxrd opened 8 years ago

mxrd commented 8 years ago

New installation of Nginx/PHP7 on Debian 8 Jessie (Google cloud). After running "systemctl status nginx" keep on getting error: systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument. error1 Any idea why? Thanks

ghost commented 8 years ago

I had similar issue with pid missing in this same location. After some investigation, a reinstall of php7 was required and slight modifications to my nginx configuration file.

gplessis commented 8 years ago

Does it still happen with the latest 1.10.1 version?

116davinder commented 8 years ago

can you explain what changes you made for this @clessley it would be very helpful for us.

ghost commented 8 years ago

@116davinder Completely remove & purge your older php5 installs and also whatever php7 installation you currently have. Autoremove and reboot. Then install php7 (completely; all required packages). This was the only way I was able to get past the PID error. The remaining errors which I allude to can then be worked through by just checking your /var/log/nginx/error log file for your specific use case. I've not seen that error since. BTW, I'm running Ubuntu not Debian.

Pavel-Novikov commented 8 years ago

Yes the same in the version 1.10.1. Debian Jessie

lubry commented 7 years ago

i have same problem in centos 7, i had try this https://www.svennd.be/pid-file-runnginx-pid-not-readable-yet-after-start/ but not resolve the problem, but i think that not problem, my nginx server running normaly