• 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

Changing PHP Common Settings

Reliant

New Pleskian
In the PHP settings for my domain, open_basedir is set to "default". I'm not sure what values that contains, but I'd guess the default value would be blank.

For my test subdomain, however, open_basedir isn't set to "default", it's set to {DOCROOT}:/temp/ which is creating a different test environment than my live version. I wanted to change it to {WEBSPACEROOT}, but I can't change the settings.

Based on the terms {DOCROOT} and {WEBSPACEROOT}, I would have guessed that DOCROOT would be the parent directory of {WEBSPACEROOT}, but the PHP error is showing that the current configuration of {DOCROOT} is locked to the Apache documentroot which is where the website is, which would mean {WEBSPACEROOT} would have to be the parent directory of {DOCROOT}. It's all every confusing because the page doesn't give a very concise explanation on the difference between them. All I know is I want my PHP website configuration (such as DB passwords) files stored in a place that's not in the publicly accessed web directory.

My account permissions don't have "Common PHP settings management" checked. I can't find any information on how to turn this on. I have root access to the physical machine, but I just don't know where to go for this. I'm not very familiar with Parallels Panels. Someone else did the installation to the dedicated server. I'm not even sure which version of Parallels Panel I'm using.
 
Hi, Reliant.

Default value means server-wide php.ini setting, as per P11 doc:
http://download1.parallels.com/Ples...k-customer-guide/index.htm?fileName=70742.htm
You can set the value of each parameter in PHP Settings either by selecting a value from a preset, typing a custom value, or leaving the Default value. In the latter case, Panel uses the values defined by the server-wide php.ini file. For information about certain PHP settings, refer to the respective documentation. For example, http://php.net/manual/en/ini.list.php.

{DOCROOT} for the document root directory of a domain that gets custom PHP configuration.
{WEBSPACEROOT} for the root directory of a subscription (webspace).
{TMP} for the directory which stores temporary files.


in this particular case with open_basedir default means:
"/var/www/vhosts/DOMAIN.TLD/:/tmp/"

in your case, {DOCROOT}:/temp/ means:
"/var/www/vhosts/DOMAIN.TLD/httpdocs:/temp/"

in general, {WEBSPACEROOT} means:
"/var/www/vhosts/DOMAIN.TLD"

Correct, WEBSPACEROOT is parent for DOCROOT.

In order to turn on "Common PHP settings management" permission you should:
- either adjust your Plesk subscrion (it will become custom)
- OR adjust your Plesk service plan (and sync it with your subscription)

You need admin access to Plesk in order to do above. Please see more details in Plesk Adm manual:
http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=65719.htm
 
Thanks for that helpful info. Getting access to the administration account allowed me to solve the problem. At the time I posted this, I wasn't aware there was a higher level administration account
 
Back
Top