Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: gruz on April 26, 2020, 05:35:07 AM

Title: WebServers vhost templates not applied
Post by: gruz on April 26, 2020, 05:35:07 AM
Centos 7
CWPpro version: 0.9.8.963

I saw this topic forwarding to contact the developers directrly http://forum.centos-webpanel.com/index.php?topic=8573.msg30138#msg30138
And this older one http://forum.centos-webpanel.com/index.php?topic=5908.msg20575#msg20575


I set my CWP to use nginx only

(http://images.my-dev.org/x/2020_04_26_08_05_43_oj.png)
 (http://images.my-dev.org/x/2020_04_26_08_05_43_oj.png)


Next I follow this manual and create my templates
https://wiki.centos-webpanel.com/webservers-vhost-templates

Code: [Select]
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm/
default-gruz.stpl
default-gruz.tpl

Next I  save my template

(http://images.my-dev.org/x/2020_04_26_08_24_45_oj.png)
 (http://images.my-dev.org/x/2020_04_26_08_05_43_oj.png)


I also get error
Code: [Select]
Notice: Undefined index: apache_template-type-default in /usr/local/cwpsrv/htdocs/resources/admin/modules/WebServers_conf.php on line 0
(http://images.my-dev.org/x/2020_04_26_08_05_43_oj.png)
 (http://images.my-dev.org/x/2020_04_26_08_05_43_oj.png)



Next I check my vhosts here
Code: [Select]
/etc/nginx/conf.d/vhosts
The file pair is generated from
Code: [Select]
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm/default.tpl
/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm/default.stpl

I also tried selecting predefined templates like
Code: [Select]
force-https - it still uses the
Code: [Select]
default.[s]tpl  pair.

Title: Re: WebServers vhost templates not applied
Post by: gruz on May 01, 2020, 12:33:32 PM
I contacted the developers, but get nothing.

"all looks ok, you are probably mixing nginx+php-fpm vhost and PHP templates for php-fpm which are used with nginx.
Please check our docs and wiki for detailed info about templates."

They say it works, though it doesn't. I spent hours before my request and after checking. Just loosing time.

I'm frustrated.



Title: Re: WebServers vhost templates not applied
Post by: rcschaff on May 01, 2020, 06:00:59 PM
Default vhost type should be set to php-fpm I believe.