We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Apache template not created
-
- Posts: 8
- Joined: Wed Nov 26, 2014 8:03 am
Apache template not created
Hi there,
I don't know why but from day to another when I try to register a new domain on my VESTA - nginx restart failed (because teh configuration file failed...) and I also realized apache2 config is missing - any clue? Where can I found log or something?
I am really appreciated your help
I don't know why but from day to another when I try to register a new domain on my VESTA - nginx restart failed (because teh configuration file failed...) and I also realized apache2 config is missing - any clue? Where can I found log or something?
I am really appreciated your help
Re: Apache template not created
Based off what you said I am guessing your using Ubuntu, http://vestacp.com/docs/#config-log-loc ... ian-ubuntuattilatamasi wrote:Hi there,
I don't know why but from day to another when I try to register a new domain on my VESTA - nginx restart failed (because teh configuration file failed...) and I also realized apache2 config is missing - any clue? Where can I found log or something?
I am really appreciated your help
Apache
Code: Select all
/var/log/apache2/access.log
/var/log/apache2/error.log
/var/log/apache2/domains/$domain.log
/var/log/apache2/domains/$domain.error.log
Code: Select all
/var/log/nginx/access.log
/var/log/nginx/error.log
/var/log/apache2/domains/$domain.log
/var/log/apache2/domains/$domain.error.log
-
- Posts: 8
- Joined: Wed Nov 26, 2014 8:03 am
Re: Apache template not created
Thanks Joem for the fast response! Yes you've right, I am using Ubuntu. I checked these log files and nothing in there... actually the apache2 log files for the requested domain has not been created at all... just the nginx thing.
Re: Apache template not created
attilatamasi wrote:Thanks Joem for the fast response! Yes you've right, I am using Ubuntu. I checked these log files and nothing in there... actually the apache2 log files for the requested domain has not been created at all... just the nginx thing.
Try restarting nginx from command line that should give you the full error message.
Code: Select all
service nginx restart
-
- Posts: 8
- Joined: Wed Nov 26, 2014 8:03 am
Re: Apache template not created
Let me summarize what happening now:
1 step
Right after when I am adding a new Domain, I've got this error message on Vesta panel:
When I am opening the /etc/nginx/conf.d/vesta.conf I realized there is something changed:
If I'm gonna fix these lines - the nginx able to restart, but the there is no apache2 config has been created in some reason...
1 step
Right after when I am adding a new Domain, I've got this error message on Vesta panel:
Afterwards I've got this error log via email from my server:Error: nginx restart failed
2 stepnginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/vesta.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed
* Restarting nginx nginx
nginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/conf.d/vesta.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed
When I am opening the /etc/nginx/conf.d/vesta.conf I realized there is something changed:
One ; is missing and the Include is capitalized and that is wrong... I don't know why it has been inserted with big I and without ; character in the end of the line.include /home/user1/conf/web/nginx.conf;
include /home/user2/conf/web/nginx.conf;
include /home/user3/conf/web/nginx.conf;
Include /home/user4/conf/web/nginx.conf
If I'm gonna fix these lines - the nginx able to restart, but the there is no apache2 config has been created in some reason...
Re: Apache template not created
Sorry I am a little confused on what you mean?If I'm gonna fix these lines - the nginx able to restart, but the there is no apache2 config has been created in some reason...
-
- Posts: 8
- Joined: Wed Nov 26, 2014 8:03 am
Re: Apache template not created
In some reason the apache configuration for newly created domains has been not created, just the nginx (but it is also wrong because the capitalized I and the ; character is missing from the end of the config file...)
-
- Posts: 8
- Joined: Wed Nov 26, 2014 8:03 am
Re: Apache template not created
from now on, I have to create the apache2 conf manually? :(