• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Subscription PHP settings (open_basedir) ignored

LeonardChallis

New Pleskian
I posted a while back (http://forum.parallels.com/showthre...scription&highlight=subscription+open_basedir) about settings not being saved - it turned out it was a problem with subdomains having their own PHP settings. But this time I am using the standard domain, which is synced to a subscription (not locked). When I change the open_basedir no effect is made - It will always use {DOCROOT}/:{TMP}/. I want to change it to use {WEBROOT} instead so I can use folders like application at the same level as httpdocs, but these settings are ignored.

Can anyone enlighten me?
 
First of all there is no such variable {WEBROOT}. If you want to use domain httpdocs folder as one of open_basedir paths then you need to use variable {DOCROOT}.
Also I see no problems in Plesk with this feature. Plesk correctly applies predefined options for open_basedir and custom ones. What Plesk version you got?
 
First of all there is no such variable {WEBROOT}. If you want to use domain httpdocs folder as one of open_basedir paths then you need to use variable {DOCROOT}.
Also I see no problems in Plesk with this feature. Plesk correctly applies predefined options for open_basedir and custom ones. What Plesk version you got?

If there is no such variable as {WEBROOT} then why is it in one of the default options? I don't want to use docroot, I want to use the one at a higher level. It is Plesk 11. It isn't working properly - I found that if I go to the domain and change that PHP setting to use WEBROOT in the open_basedir field then it remembers it, but I don't want to set it for one domain; I want to use the service plan PHP settings that it's supposedly synced to. When I save the PHP settings for the service plan it says it has synced to all the domains using it but it doesn't work because the domain level settings override them - how can I stop it dong this, and why would it do that anyway, what's the point of the service plan if its going to ignore the settings?
 
Last edited:
OK I found that if I resaved the domain settings to use Default for the open_basedir it started using the ones from the service plan again - and is now working :)
 
Back
Top