Locked[SOLVED] phpBB and open_basedir error

Junior Member
2011/01/25 21:08:51 (permalink)

[SOLVED] phpBB and open_basedir error

Used click and install apps under HC7 to install phpBB, and then manually updated to current version. But was having a strange error:
PHP Warning: Unknown: open_basedir restriction in effect. File(C:\Windows\TEMP\) is not within the allowed path(s):
This was unusual, because open_basedir was disabled in php.ini. However, phpinfo() showed a local value for open_basedir even though the master value was null. This was because there was a local value entered in Windows registry.
Here's what I think happens:
HC7 creates a php registry for every site with an open_basedir value of each site's virtual path. The fix was to launch regedit.exe and navigate to the php key, down to the individual site. At the end of the value for the open_basedir key, I added ;C:\WINDOWS\Temp\ so that the final value looked like this: C:\Inetpub\wwwroot\site\;C:\WINDOWS\Temp\
Now both the site path and the temp path can run php scripts.
HC7  PHP 5.2.13  Windows 2003 Server

1 Reply Related Threads

    Re:[SOLVED] phpBB and open_basedir error 2011/01/30 08:48:44 (permalink)
    CMS site works better on Linux Box, there its very simple to allow the Open_Basedir using single line in the httpd.conf file.
    Windows environment is not suitable for PHP/mysql site hosting.
    Jump to: