Page 1 of 1

Let'sEncrypt autorenew overwrites custom config of httpd.ssl.conf

Posted: Mon Apr 23, 2018 11:37 pm
by mario
Server: Centos
Web: Apache 2.4

Hello,

I have an https installation of Moodle, in wich I have to give access to the path /home/user/web/domain.com/moodledata to php. So I edit the file /home/user/conf/web/domain.com.httpd.ssl.conf and I get:

Code: Select all

#File /home/user/conf/web/domain.com.httpd.ssl.conf
...
<VirtualHost domain.com>
...
<directory /home/user/domain.com/web/public_html>
php_admin_value open_basedir  ( ... ) /home/user/web/domain.com/moodledata
...
BUT, when the certificate of let'sEncript get renewed, the process overwrites all changes.

There is a way to keep the custom config in domain.com.httpd.ssl.conf?

Thanks in advance,

Mario

Re: Let'sEncrypt autorenew overwrites custom config of httpd.ssl.conf

Posted: Wed Apr 25, 2018 3:12 am
by mario
Nevermind, I finally found the answer in the forum

Code: Select all

You're not really giving a lot of information here, but you might want to look into the php logs and see if there are errors about the open_basedir directive. 

If this is the case, you'll need to adjust this. You can do so temporarily in your ~/conf/web/apache2.conf. If you want the changes to be permanent, you can change the template file in 
/usr/local/vesta/data/templates/web/
Or, probably better, create a new template from default.tpl, and then select it in the control panel.
viewtopic.php?f=11&hilit=open_basedir&p ... b2929fce95