Click to See Complete Forum and Search --> : New Install won't allow relative path includes?


RobotDeathSquad
03-01-2003, 07:58 PM
I just installed 4.3.1 on my OS X Server. I am trying to install some very common software like phpbb and b2 (blog software) and I am getting errors.

The errors are concerning included files. PHP will give errors when you include a file with a relative path like ./file.php but if I hack the script with the full path, it works. Is this a problem with the php.ini file? I can post a link to a phpinfo() file if that will help. I've never ran in to this problem before.

Thanks,

BJ Clark

shad0w
03-01-2003, 08:46 PM
Does your include path reside within your web directories?

Are you chrooting your webservice?

RobotDeathSquad
03-01-2003, 08:52 PM
Originally posted by shad0w
Does your include path reside within your web directories?

Are you chrooting your webservice?

1. I'm not sure. The errors say this:
Fatal error: main() [function.main]: Failed opening required './b2config.php' (include_path='.:/usr/local/lib/php') in /www/myilife/robotdeathsquad.com/blog/b2login.php on line 3


So the include path is not pointing to the web directories no (and yes, /www/username is the FULL path). How would I change this.

2. I do not believe they are CHrooted.

shad0w
03-01-2003, 09:10 PM
I'm not sure. I've been trying to track down a simliar problem. Only its with Postnuke and one of its modules.

In your php.ini make sure you have a few things set correctly:

register_globals=On
Try safe_mode=Off (if you have it on)
magic_quotes_gpc = On

RobotDeathSquad
03-01-2003, 10:30 PM
Originally posted by shad0w
I'm not sure. I've been trying to track down a simliar problem. Only its with Postnuke and one of its modules.

In your php.ini make sure you have a few things set correctly:

register_globals=On
Try safe_mode=Off (if you have it on)
magic_quotes_gpc = On


All of that is correct in my php.ini

I really don't get this. :(