HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   PHP Open_basedir and PEAR (

DaddyFix 25th October 2006 21:39

PHP Open_basedir and PEAR
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.

DaddyFix 25th October 2006 23:31

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.

DaddyFix 25th October 2006 23:34

: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:

Ben 26th October 2006 09:11

Even if you solved it, had some similar problem (from the result when using pear) in the past...

All times are GMT +2. The time now is 13:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.