#1  
Old 25th October 2006, 20:39
DaddyFix DaddyFix is offline
Member
 
Join Date: Jan 2006
Location: Canada
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 25th October 2006, 22:31
DaddyFix DaddyFix is offline
Member
 
Join Date: Jan 2006
Location: Canada
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #3  
Old 25th October 2006, 22:34
DaddyFix DaddyFix is offline
Member
 
Join Date: Jan 2006
Location: Canada
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
Default



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.

Reply With Quote
  #4  
Old 26th October 2006, 08:11
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:07.


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