Page 1 of 1

Let's Encrypt certificate update and SSL Home

Posted: Thu May 31, 2018 1:21 pm
by mme000
First of all, I have to thank you for this amazing control panel: I think it's really a great product.
I'm running version 0.9.8 Rel. 21 and almost everything works flawlessly. I just have a little annoying problem with the Let's Encrypt certificate update.
I use public_shtml as SSL Home and after updating the certificate my site doesn't work anymore. To make it working again, I have to edit the domain configuration and save it (to regenerate the configuration files).
It seems that the problem is related to the configuration file /home/admin/conf/web/<domainname>.httpd.ssl.conf and specifically to the following line:

php_admin_value open_basedir /home/admin/web/<domainname>/public_shtml:/home/admin/tmp

which, after the update is modified to:

php_admin_value open_basedir /home/admin/web/<domainname>/public_html:/home/admin/tmp

Is there any way to fix this problem?

Thx,

mme000

Re: Let's Encrypt certificate update and SSL Home

Posted: Wed Jun 06, 2018 12:23 pm
by mme000
Wow, am I the only one with this problem? :)

Re: Let's Encrypt certificate update and SSL Home

Posted: Tue Jun 19, 2018 10:09 am
by mme000
This night my certificate was renewed and, again, this morning the site was not working.
I had to enter the domain configuration, change from "public_shtml" to "public_html" and back to "public_shtml" and now everything works again.
Is there a solution to this annoying problem?

Re: Let's Encrypt certificate update and SSL Home

Posted: Wed Jun 20, 2018 12:58 pm
by sosojni
Just one possible hint. Try to find templates for config files. Maybe you can create your own template where home folder will be only shtml. I did the same for specific case of wordpress + static caching and it's working flawlesly for months now
I can't tell you where exactly to search for templates as i don't have it in my head, but it's easy topic to find on forum / goole it up.

Hope it helps.

Re: Let's Encrypt certificate update and SSL Home

Posted: Thu Jul 26, 2018 9:39 am
by mme000
sosojni wrote:
Wed Jun 20, 2018 12:58 pm
Just one possible hint. Try to find templates for config files. Maybe you can create your own template where home folder will be only shtml. I did the same for specific case of wordpress + static caching and it's working flawlesly for months now
I can't tell you where exactly to search for templates as i don't have it in my head, but it's easy topic to find on forum / goole it up.

Hope it helps.
Thank you for your help.
It wasn't necessary to create a new template, just to fix the old one.
I found that in my installation of Vesta, even if it's updated to the most recent version, the file /usr/local/vesta/data/templates/web/httpd/default.stpl contained the line

php_admin_value open_basedir %docroot%:%home%/%user%/tmp

instead of

php_admin_value open_basedir %sdocroot%:%home%/%user%/tmp

I changed it and everything works fine, now.

I think there is the same problem with basedir.stpl, hosting.stpl, phpcgi.stpl and phpfcgid.stpl in the same directory.