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

Can't start nginx after restoring backup

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Nou4r
Posts: 35
Joined: Mon Feb 08, 2016 9:00 pm

Can't start nginx after restoring backup
  • Quote

Post by Nou4r » Mon Feb 08, 2016 9:18 pm

service nginx configtest
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /home/admin/conf/web/apache2.conf:341


nginx: configuration file /etc/nginx/nginx.conf test failed
root@nlssd1:~# service nginx restart
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.


Can restart vestacp fine.

Debain 7 backup > Debian 8 backup restore
Top

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

Os: CentOS 6x
Web: apache + nginx
Re: Can't start nginx after restoring backup
  • Quote

Post by tjebbeke » Tue Feb 09, 2016 7:18 am

'Rebuild web' of that user.
Top

Nou4r
Posts: 35
Joined: Mon Feb 08, 2016 9:00 pm

Re: Can't start nginx after restoring backup
  • Quote

Post by Nou4r » Tue Feb 09, 2016 12:39 pm

tjebbeke wrote:'Rebuild web' of that user.
root@nlssd1:~# v-rebuild-web-domains admin
Error: nginx restart failed

Edit: Now everything works well, but it always shows the apache2 debian defaul page..
Top

Elizine
Posts: 50
Joined: Wed Aug 12, 2015 12:11 pm
Contact:
Contact Elizine
Website

Re: Can't start nginx after restoring backup
  • Quote

Post by Elizine » Fri Feb 12, 2016 10:03 am

Is that you are missing ";" in etc/nginx/sites-available/default?
Top

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

Os: CentOS 6x
Web: apache + nginx
Re: Can't start nginx after restoring backup
  • Quote

Post by tjebbeke » Fri Feb 12, 2016 10:18 am

Try: sudo nginx -t
Top


Post Reply
  • Print view

5 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