Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started 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
/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
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 /etc/nginx/conf.d/vhosts
The file pair is generated from
/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 force-https
- it still uses the default.[s]tpl
pair.
-
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.
-
Default vhost type should be set to php-fpm I believe.