How to add a custom or additional path to the open_basedir option for a domain?

Follow

Comments

6 comments

  • Avatar
    Raheel Ansari

    I ran in to an issue with with my magento 1.7 installation on Plesk ONYX. It was running for a while but the admin section of magento became very slow suddenly last week. After checking error logs I discovered it was an issue with directive set in open_basedir. What are Plesk's recommendations for proper configuration of open_basedir for magento. Which directories should be included.

    0
    Comment actions Permalink
  • Avatar
    Denis Bykov

    @Raheel Ansari

    Unless Magento installation is heavily customized, including web space root directory and system temporary directory (as in default settings in Plesk) is sufficient.
    Could you share the exact error message with me? You may change the actual domain name to 'example.com'.

    0
    Comment actions Permalink
  • Avatar
    Mark Anderson

    I thought for Windows you need to use a  semicolon (;)  as a separator  ?

    Files in the specified directories can be accessed by PHP scripts. To separate directories, use a colon (:) on Linux and a semicolon (;) on Windows.

    Cheers

     

     

    0
    Comment actions Permalink
  • Avatar
    Daria Gavrilova

    Hello @Mark Anderson,

    Thank you for your input!

    The article was modified on this matter.

    0
    Comment actions Permalink
  • Avatar
    Giorgio De Fiore

    Hi: I am trying to add some directives to the open_basedir field in Plesk 17.8.11 on CentOS and it seems like the field has a character limit: if I exceed more or less 1000 char the system throws an error and doesen't add the last part of the directives

    The error is

    phpinimng failed: configuration test '/opt/plesk/php/5.6/sbin/php-fpm --test' failed with code 78, and message: PHP: syntax error, unexpected $end, expecting TC_DOLLAR_CURLY or TC_QUOTED_STRING or '"' in Unknown on line 2 [26-Jun-2019 12:33:36] ERROR: Unable to include /opt/plesk/php/5.6/etc/php-fpm.d/mypress.it.conf from /opt/plesk/php/5.6/etc/php-fpm.conf at line 33 [26-Jun-2019 12:33:36] ERROR: failed to load configuration file '/opt/plesk/php/5.6/etc/php-fpm.conf' [26-Jun-2019 12:33:36] ERROR: FPM initialization failed

    Any clues?

    Thanks a lot

    0
    Comment actions Permalink
  • Avatar
    Alexey Lapshin

    Hello, @Giorgio

    The "open_basedir" parameter value should consist of one line.
    The error you faced happens when attempting to enter multi-lines value. Looks like you paste string that including the newline (line feed) character.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request