[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