nginx server down

nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2023-09-09 23:29:55 UTC; 5s ago Docs: man:nginx(8) Process: 60405 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 30ms Sep 09 23:29:55 localhost systemd[1]: Starting A high performance web server and a reverse proxy server... Sep 09 23:29:55 localhost nginx[60405]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such fi> Sep 09 23:29:55 localhost nginx[60405]: 2023/09/09 23:29:55 [emerg] 60405#60405: open() "/var/log/nginx/access.log" failed (2: No such file o> Sep 09 23:29:55 localhost nginx[60405]: nginx: configuration file /etc/nginx/nginx.conf test failed Sep 09 23:29:55 localhost systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Sep 09 23:29:55 localhost systemd[1]: nginx.service: Failed with result 'exit-code'. Sep 09 23:29:55 localhost systemd[1]: Failed to start A high performance web server and a reverse proxy server.
8 Replies
CroTomaz
CroTomaz3y ago
cd /var/www/pterodactyl php artisan down php artisan queue:restart php artisan up
7j7w
7j7wOP3y ago
ive done that
CroTomaz
CroTomaz3y ago
still doesnt work ?
7j7w
7j7wOP3y ago
nope is thats this is the error nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory) nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 2023/09/09 23:34:38 [emerg] 60566#60566: open() "/var/log/nginx/access.log" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed
CroTomaz
CroTomaz3y ago
what if you try to reinstall nginx ?
7j7w
7j7wOP3y ago
shall i try it
CroTomaz
CroTomaz3y ago
just make a backup of folder on local machine
7j7w
7j7wOP3y ago
ok how do i unstall blueprint

Did you find this page helpful?