1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Changing PHP Common Settings

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by Reliant, Oct 8, 2012.

  1. Reliant

    Reliant New Pleskian

    10
     
    Joined:
    Oct 8, 2012
    Messages:
    2
    Likes Received:
    0
    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.
     
  2. Alexey.Plotnitsky

    Alexey.Plotnitsky Regular Pleskian

    16
    55%
    Joined:
    Jan 19, 2012
    Messages:
    218
    Likes Received:
    3
    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
     
  3. Reliant

    Reliant New Pleskian

    10
     
    Joined:
    Oct 8, 2012
    Messages:
    2
    Likes Received:
    0
    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
     
Loading...