My astpp server ngnix status showing Faild. install on Debian11. please tell me how to restart ngnix.
thank you
You have new mail.
Last login: Thu Oct 5 08:06:12 2023 from 112.135.205.173
root@vmi1470285:~# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset>
Active: inactive (dead)
Docs: man:nginx(8)
lines 1-4/4 (END)
root@vmi1470285:~# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset>
Active: failed (Result: exit-code) since Thu 2023-10-05 08:30:00 CEST; 50s>
Docs: man:nginx(8)
Process: 1086 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proce>
CPU: 35ms
inside the error log only following two statments are thr.
2023/10/11 08:28:52 [notice] 84840#84840: using inherited sockets from “6;7;”
2023/10/11 08:34:05 [emerg] 85503#85503: bind() to [::1]:8735 failed (99: Cannot assign requested address)
@tissa , there might a possibility that something else running on either 80 or 443 port and that’s why nginx is not starting or check astpp.conf and fs.conf server blocks of astpp for nginx are they configured correctly?
root@vmi1496557:/usr/src# /etc/nginx/conf.d/astpp.conf
/etc/nginx/conf.d/astpp.conf: line 1: server: command not found
/etc/nginx/conf.d/astpp.conf: line 2: listen: command not found
/etc/nginx/conf.d/astpp.conf: line 3: listen: command not found
/etc/nginx/conf.d/astpp.conf: line 10: root: command not found
/etc/nginx/conf.d/astpp.conf: line 11: client_max_body_size: command not found
/etc/nginx/conf.d/astpp.conf: line 14: index: command not found
/etc/nginx/conf.d/astpp.conf: line 16: server_name: command not found
/etc/nginx/conf.d/astpp.conf: line 17: ssl_certificate: command not found
/etc/nginx/conf.d/astpp.conf: line 18: ssl_certificate_key: command not found
/etc/nginx/conf.d/astpp.conf: line 19: access_log: command not found
/etc/nginx/conf.d/astpp.conf: line 20: error_log: command not found
/etc/nginx/conf.d/astpp.conf: line 23: syntax error near unexpected token (' /etc/nginx/conf.d/astpp.conf: line 23: location ~ .(csv|pdf|doc|docx|tplate|all-wcprops|entries|format)$ {’
root@vmi1496557:/usr/src# /etc/nginx/conf.d/fs.conf
/etc/nginx/conf.d/fs.conf: line 1: server: command not found
/etc/nginx/conf.d/fs.conf: line 2: listen: command not found
/etc/nginx/conf.d/fs.conf: line 3: listen: command not found
/etc/nginx/conf.d/fs.conf: line 15: root: command not found
/etc/nginx/conf.d/fs.conf: line 18: index: command not found
/etc/nginx/conf.d/fs.conf: line 20: server_name: command not found
/etc/nginx/conf.d/fs.conf: line 21: access_log: command not found
/etc/nginx/conf.d/fs.conf: line 22: error_log: command not found
/etc/nginx/conf.d/fs.conf: line 24: location: command not found
/etc/nginx/conf.d/fs.conf: line 25: try_files: command not found
/etc/nginx/conf.d/fs.conf: line 26: syntax error near unexpected token `}’
/etc/nginx/conf.d/fs.conf: line 26: