outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.93k stars 1.03k forks source link

WSGI installation is broken #1952

Open djlynux opened 4 years ago

djlynux commented 4 years ago

Operating System (OS/VERSION):

Ubuntu 18.04.3 LTS

VestaCP Version:

Vesta 0.9.8

Installed Software (what you got with the installer):

Nginx, Apache, php, mysql

Steps to Reproduce:

I have followed steps in how-to-enable-wsgi-debian-ubuntu to enable WSGI in my VESTA deployment. Installation was was successful. Once I create a new domain with WSGI as the web-template apache server fails to start. When I test configtest command I'm getting configuration errors. Looks like the tpl files are not accurate.

root@vesta02-sg:~# apachectl configtest
apache2: Syntax error on line 83 of /etc/apache2/apache2.conf: Syntax error on line 4 of /etc/apache2/conf.d/vesta.conf: Syntax error on line 41 of /home/sub/conf/web/thea.com.apache2.conf: No matches for the wildcard 'apache2.the.com.conf*' in '/home/sub/conf/web', failing (use IncludeOptional if required)
Action 'configtest' failed.
The Apache error log may have more information.
lexusag commented 4 years ago

you just need to replace lines in /usr/local/vesta/data/templates/web/httpd/wsgi.tpl and /usr/local/vesta/data/templates/web/httpd/wsgi.stpl

Include %home%/%user%/conf/web/%web_system%.%domain%.conf* to IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*

strange that this is still not fixed