open_basedir issues

Discussion in 'General' started by eponymous, Mar 14, 2011.

  1. eponymous

    eponymous New Member

    Something weird is happening with php's open_basedir directive. Not sure if it's and ISPConfig error.

    I'm getting the following error message from a site I'm setting up:
    First of all, there is no /usr/share/pear/ directory on my server. When I add /usr/share/pear to the open_basedir directive in ISPConfig, nothing changes (I did not expect that it would).

    However if I were to add '/' or /usr/share to open_basedir the error goes away. It's weird because, as a said, there is no /usr/share/pear directory, so adding these two directories should not satisfy any requirement.

    I don't to have the site able to access my whole /usr/share directory, so this is not ideal.

    Any ideas?

    Using ISPConfig Version: 3.0.3.2
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess that the Zend framework just checks if there is a file /usr/share/pear/ZendX/Application/Resource/Frontcontroller.php and does not really require it. Try to create the directory:

    mkdir /usr/share/pear

    and then add /usr/share/pear to the open_basedir path.
     

Share This Page