Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Can't Start nginx and apache 2
root@**:/var/log/nginx# service nginx restart
Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.
root@***:/var/log/nginx# systemctl status nginx.service
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-05-09 14:47:50 EET; 16s ago
Process: 6571 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
May 09 14:47:50 ***** systemd: Starting nginx - high performance web server…
May 09 14:47:50 ***** nginx: nginx: [emerg] open() “/var/log/apache2/domains/srvx.om
May 09 14:47:50 ***** systemd: nginx.service: Control process exited, code=exited statu
May 09 14:47:50 ***** systemd: Failed to start nginx - high performance web server.
May 09 14:47:50 ***** systemd: nginx.service: Unit entered failed state.
May 09 14:47:50 ***** systemd: nginx.service: Failed with result ‘exit-code’.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×