angristan / nginx-autoinstall

Compile NGINX from source with custom modules and patches on Debian and Ubuntu
GNU General Public License v3.0
636 stars 237 forks source link

/usr/sbin/nginx: No such file or directory #216

Open Reverse256 opened 2 years ago

Reverse256 commented 2 years ago

I had this issue on an existing system and a fresh install of debian 10

1) install debian 10 2) run the repositories script as headless 3) no executable /usr/sbin/nginx when the service is automatically started at the end of the script

user@nginxv3:~$ sudo journalctl -xe

Jan 06 12:56:12 nginxv3 systemd[26829]: nginx.service: Failed to execute command: No such file or directory
Jan 06 12:56:12 nginxv3 systemd[26829]: nginx.service: Failed at step EXEC spawning /usr/sbin/nginx: No such file or directory
-- Subject: Process /usr/sbin/nginx could not be executed
Creativi64 commented 2 years ago

I had the same error and the problem was that it didn't installed nginx because i had newer dependency's installed on my system. Removed them and the script worked fine.