Results 1 to 10 of 10
-
04-05-2004, 02:35 PM #1Registered User
- Join Date
- Nov 2002
- Posts
- 33
Error viewing forums, changed servers
I uploaded these to my server in an effort to install phpbb, and I get this error message:
PHP Code:Warning: Unknown(): open_basedir restriction in effect. File(/home/pr/public_html/forum/index.php) is not within the allowed path(s): (/home/naked:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0
Warning: Unknown(/home/pr/public_html/forum/index.php): failed to open stream: Operation not permitted in Unknown on line 0
Warning: (null)(): Failed opening '/home/pr/public_html/forum/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
Thanks
-
04-05-2004, 02:53 PM #2Retired Moderator
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 4,721
Could be a few things:
Do you have safe_mode on?
open_basedir could be badly configured or which version of PHP are you running, there was a bug in 4.2.something related to this.Hyperconfused (™)
-
04-05-2004, 02:55 PM #3Registered User
- Join Date
- Nov 2002
- Posts
- 33
My php version is 4.3.4
and i do not know if i have safe_mode on. How do I check (using cpanel/whm)
thanks
-
04-05-2004, 02:59 PM #4Retired Moderator
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 4,721
Upload a file with just the line:
PHP Code:<?php phpinfo() ?>
Hyperconfused (™)
-
04-05-2004, 03:01 PM #5Registered User
- Join Date
- Nov 2002
- Posts
- 33
I can't view it when I upload it as a php file, I just get the same error
-
04-05-2004, 03:04 PM #6Retired Moderator
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 4,721
If you get the same error on all php files, then you need to contact your host, something is wrong with their configration.
Hyperconfused (™)
-
04-05-2004, 03:06 PM #7Registered User
- Join Date
- Nov 2002
- Posts
- 33
well, I have another account on my whm and php works fine on there.. hmm any ideas?
-
04-05-2004, 03:11 PM #8Retired Moderator
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 4,721
well you shouldn't get that trying to view a phpinfo file, but save the following in a file named php.ini and upload it to the forums directory, see if it fixes your problem
PHP Code:open_basedir = "/home/pr/public_html/forum"
Hyperconfused (™)
-
04-05-2004, 03:14 PM #9Registered User
- Join Date
- Nov 2002
- Posts
- 33
no, it doesn't work. I will contact my host.
Thanks
-
04-05-2004, 03:19 PM #10Retired Moderator
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 4,721
Did you see i edited my post? ^
If not, contact them, they can easily edit the open_basedir restrictions for your domain from WHMHyperconfused (™)