Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx fails to start

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
ozdamar
Posts: 8
Joined: Mon Jan 25, 2016 8:45 am

Nginx fails to start
  • Quote

Post by ozdamar » Tue Sep 27, 2016 8:07 am

After i remove a domain aliases and add it as a normal domain nginx failing to start

I get this mail

Code: Select all

The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Redirecting to /bin/systemctl restart  nginx.service
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Top

ozdamar
Posts: 8
Joined: Mon Jan 25, 2016 8:45 am

Re: Nginx fails to start
  • Quote

Post by ozdamar » Tue Sep 27, 2016 8:44 am

to investigate

Code: Select all

root@srv ~]# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] the same path name "/var/cache/nginx/domain.com" used in /etc/                                                                                                             nginx/conf.d/01_caching_pool.conf:2 and in /etc/nginx/conf.d/01_caching_pool.con                                                                                                             f:8
nginx: configuration file /etc/nginx/nginx.conf test failed
You have new mail in /var/spool/mail/root
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Nginx fails to start
  • Quote

Post by tjebbeke » Tue Sep 27, 2016 11:32 am

When you open /etc/nginx/conf.d/01_caching_pool.conf You will see 2 line with the same content /var/cache/nginx/domain.com.
Delete one of this lines and try again.
Top

Spooney
Posts: 15
Joined: Sun May 25, 2014 4:58 am

Re: Nginx fails to start
  • Quote

Post by Spooney » Sun Nov 13, 2016 8:35 am

Great, that solved my problem too, thanks!
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password