Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

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

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
mario
Posts: 3
Joined: Mon Apr 23, 2018 11:20 pm

Os: CentOS 5x
Web: apache + nginx
Let'sEncrypt autorenew overwrites custom config of httpd.ssl.conf
  • Quote

Post by mario » Mon Apr 23, 2018 11:37 pm

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
Top

mario
Posts: 3
Joined: Mon Apr 23, 2018 11:20 pm

Os: CentOS 5x
Web: apache + nginx
Re: Let'sEncrypt autorenew overwrites custom config of httpd.ssl.conf
  • Quote

Post by mario » Wed Apr 25, 2018 3:12 am

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
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password