• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

vhost.conf Config not sticking

A

ascend

Guest
I've got a number of domains set up on a dedicated virtual using Plesk, most of which use PHP and reference files above the site root. This is a problem by default because of PHP's 'open_basedir' settings, but I've managed to override it with vhost.conf files for each site. The problem is that it doesn't seem to stick. I've added these conf files and run '/path.../websrvmng -av' and it works for a while, and then it somehow breaks again. If I run the script again, it will work, but then is wiped clean somehow. Does anyone know what might be happening or how I might fix it? Or even see what is happening? Thanks...
 
if you have added anything outside of vhost.conf then anytime a domain is changed it regenerates the configs, so like httpd.include files or the psa include files, etc. It seems like that would be the cause if it keeps "resetting" every so often.
 
Yea, the only thing I've added is the vhost file so it's just really bizarre. I'm having some issues with some of my domains resolving to the wrong place--some subdomains are resolving to the primary domain of my site--do you think that might be a factor in wiping out the .conf files?
 
I have the same issue. Nothing in vhost.conf is sticking. If I run

/usr/local/psa/admin/bin/websrvmng -a

the changes will apply, 30 seconds later, plesk reverts.

I want to know what is going on because I have spent 2 days trying to fix this and I feel like sending plesk an invoice for my time!
 
Does Include /var/www/vhosts/<domain>/conf/vhost.conf directive still persist in /var/www/vhosts/<domain>/conf/httpd.include after the changes from vhost.conf disappearance?
 
Back
Top