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.
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.
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.
Even if you solved it, had some similar problem (from the result when using pear) in the past... http://www.howtoforge.com/forums/showthread.php?p=45816
|All times are GMT +2. The time now is 09:15.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.