PHP Unable to write...
 
Notifications
Clear all

PHP Unable to write C:WindowsTemp

3 Posts
2 Users
0 Reactions
2,725 Views
Posts: 34
Topic starter
(@halimzhz)
Trusted Member
Joined: 8 years ago

Hi SolidCP,

My client complain about he's PHP script cant writing on C:WindowsTemp when upload the file and when i try to run icacls C:WindowsTemp, its shown:

c:windowstemp NT AUTHORITYSYSTEM:(OI)(CI)(S,RD)
BUILTINIIS_IUSRS:(OI)(CI)(S,RD)
CREATOR OWNER:(OI)(CI)(IO)(F)
NT AUTHORITYSYSTEM:(OI)(CI)(IO)(F)
NT AUTHORITYSYSTEM:(F)
BUILTINAdministrators:(OI)(CI)(IO)(F)
BUILTINAdministrators:(F)
BUILTINUsers:(CI)(S,WD,AD,X)
NT SERVICEReportServer:(OI)(CI)(RX,WD,AD)
NT AUTHORITYNETWORK SERVICE:(OI)(CI)(M)
NT SERVICETrustedInstaller:(I)(F)
NT SERVICETrustedInstaller:(I)(CI)(IO)(F)
NT AUTHORITYSYSTEM:(I)(F)
NT AUTHORITYSYSTEM:(I)(OI)(CI)(IO)(F)
BUILTINAdministrators:(I)(F)
BUILTINAdministrators:(I)(OI)(CI)(IO)(F)
BUILTINUsers:(I)(RX)
BUILTINUsers:(I)(OI)(CI)(IO)(GR,GE)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
APPLICATION PACKAGE AUTHORITYALL APPLICATION PACKAGES:(I)(RX)
APPLICATION PACKAGE AUTHORITYALL APPLICATION PACKAGES:(I)(OI)(CI)(IO)(GR,GE)

I also check on php.ini and i found the line upload_tmp_dir=C:Windowstemp

Please help what suppose i do. TQ so much

2 Replies
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hello,

 

You will need to provide IIS_IUSRS with write permissions to the directory. PHP should then be able to store temporary files in the location.

 

Kind Regards,

 

Trevor Robinson

Reply
Posts: 34
Topic starter
(@halimzhz)
Trusted Member
Joined: 8 years ago

TQ so much Trevor, i will ask my client to try and i hope this is the same problem with the old WebsitePanel File Manager when try to listing some of folder

Reply
Share: