Re: (no subject)
"Chuck Rider" <[email protected]> Thu, 8 May 2003 15:46:15 -0700 (PDT)
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Message-ID | <[email protected]> |
I have open_basedir set to /usr/local/apache2 in my php.ini. Netjuke is in /usr/local/apache2/htdocs/netjuke. Notice the line in the following errors that states "File (/usr/local/lib/php/inc-legacy.php) is not within the allowed path(s): (/usr/local/apache2)". This makes me think that it is not following relative paths from the current location of the php script, but is looking for the relative path from the base location of php. If I comment out the inc_legacy.php line, it gives a similar error on the next required_once line, as would be expected. If I change all the required_once lines to absolute paths then I receive the error "PHP Fatal error: Call to a member function on a non-object in /usr/local/apache2/htdocs/netjuke/lib/inc-theme.php on line 133". > Hmmm, that's a strange error. Are you setting an open_basedir > configuration in your php.ini or at runtime (via .htaccess or similar?). > The problem seems to be a known PHP issue -- > http://bugs.php.net/bug.php?id=19292 and I hope that it is fixed in the > PHP version currently in release candidate status. You could try > removing the require for inc-legacy.php -- the legacy functions are only > necessary on older PHP builds anyway. > > Blake > > On Sat, 3 May 2003 16:57:51 -0700 (PDT) > "Chuck Rider" <[email protected]> wrote: > > I just upgraded to netjuke-1.0b18-pre1 and have a problem. It is >> throwing a set of php errors when I try to open index.php: >> >> [03-May-2003 16:47:02] PHP Warning: main() [<a >> href='http://www.php.net/function.main'>function.main</a>]: >> open_basedir restriction in effect. >> File(/usr/local/lib/php/inc-legacy.php) is not within the allowed >> path(s): (/usr/local/apache2) in >> /usr/local/apache2/htdocs/netjuke/lib/inc-common.php on line 17 >> >> [03-May-2003 16:47:02] PHP Warning: main(inc-legacy.php) [<a >> href='http://www.php.net/function.main'>function.main</a>]: failed to >> create stream: Operation not permitted in >> /usr/local/apache2/htdocs/netjuke/lib/inc-common.php on line 17 >> >> [03-May-2003 16:47:02] PHP Fatal error: main() [<a >> href='http://www.php.net/function.main'>function.main</a>]: Failed >> opening required 'inc-legacy.php' >> (include_path='.:/usr/local/lib/php') in >> /usr/local/apache2/htdocs/netjuke/lib/inc-common.php on line 17 >> >> ------- >> I surmise that is opening lib/inc-common.php just fine, but that it >> cannot open lib/inc-legacy.php. >> >> I am running under Apache 2.0.44 and PHP 4.3.1 on FreeBSD. Permissions >> are set for everything in and below the netjuke directory to belong to >> the apache server. Netjuke 1.0b17 worked without error. What should I >> try? >> >> >> >> >> ------------------------------------------------------- >> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >> The only event dedicated to issues related to Linux enterprise >> solutions www.enterpriselinuxforum.com >> >> _______________________________________________ >> Netjuke-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/netjuke-users ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com