Page 1 of 1

Can't start nginx after restoring backup

Posted: Mon Feb 08, 2016 9:18 pm
by Nou4r
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

Re: Can't start nginx after restoring backup

Posted: Tue Feb 09, 2016 7:18 am
by tjebbeke
'Rebuild web' of that user.

Re: Can't start nginx after restoring backup

Posted: Tue Feb 09, 2016 12:39 pm
by Nou4r
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..

Re: Can't start nginx after restoring backup

Posted: Fri Feb 12, 2016 10:03 am
by Elizine
Is that you are missing ";" in etc/nginx/sites-available/default?

Re: Can't start nginx after restoring backup

Posted: Fri Feb 12, 2016 10:18 am
by tjebbeke
Try: sudo nginx -t