PHP Open_basedir and PEAR

Discussion in 'Installation/Configuration' started by DaddyFix, Oct 25, 2006.

  1. DaddyFix

    DaddyFix New Member

    Hello Falko and Till,

    I feel like I know you personally cause I have been reading a ton of solutions you have written for other users! Falko, I love ISPConifg.

    Here's my Prob. I just installed Debian 3.1 (Sarge) and all the OS Apps. and then the latest ISPConfig 2.2.7.

    Everything went well until I tried to use PEAR classes. After turning PHP Safe Mode to ON, I was able to determine that the PEAR class I want to use (Services/Weather.php) is being blocked with the open_basedir directive in /path/to/apache2/conf/vhosts/Vhosts_ispconfig.conf.

    So I tried to add the directive php_admin_flag include_path ".:/var/www/someweb/:/path/to/pear" through my ISP Manager->Apache Directives, but that also didn't do the trick.

    Now, I also tried to check with my php include_path in my php.ini and found that it was commented out. so I uncommented it and added the path to my PEAR modules directory, something like, /use/share/php/. No luck either.

    So then I made sure my PEAR modules were up to date (pear update-all)

    Now, Im tired and confused. Any ideas how to get PEAR working?


    Except things still don't work.
     
  2. DaddyFix

    DaddyFix New Member

    Ok. I figured out that Apache is finding the PEAR directory and is executing the scripts there too.

    But the Services/Weather scripts I am calling aren't working properly.. I will do more investigating on this.
     
  3. DaddyFix

    DaddyFix New Member

    :eek: :eek:

    OH and I stuuuuupppid.

    It turns out that the PEAR dependancy XML_Serializer was not installed and the script failed!!! But there is no notice of this when the script tries to run!

    Sorry for wasting anyones time.

    :eek: :eek:
     
  4. Ben

    Ben ISPConfig Developer ISPConfig Developer

Share This Page