| Project: | ProjectPier |
| Version: | 0.8.6-stable |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | phpfreak |
| Status: | open - needs more info |
Jump to:
Description
Hi Im using iis and keep getting the error when I upload a file...
PHP Warning: Unknown: open_basedir restriction in effect. File(C:\Windows\TEMP\) is not within the allowed path(s): (D:\Websites\blalbla.blabla.bla\httpddocs) in Unknown on line 0
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
I have tried all the fixes and stuff on the forum, none of them work.
I also whent to php.ini and a path is defined: upload_tmp_dir = "D:\Websites\_php_temp"
dont know why it keeps pointing to (C:\Windows\TEMP\)
Can I get a solution?
Great Platform btw!
Thanks in Advance
Usually it works when you give write, read and execute permissions to the user account IUSR to c:\windows\temp and upload_tmp_dir.
If php is not picking up the upload temp dir then you most probably are not running PHP in CGI mode but as an Apache module. Restart Apache to force the php module to reread the php.ini.
Check phpinfo() to see which php.ini is picked up, You might be modifying the wrong one :-)