Tommix
Tommix

Reputation: 1

PHP on IIS with Plesk, write permission denied

I have a PHP website running on IIS with plesk. Everything works fine except I can't grant write access for php scripts.

All permissions on folders for the web user (SDadmin******/IUSR_user****) are set to on for writing.

Launching a basic testing script that creates both a folder and a file I get:

PHP Warning: file_put_contents(test_file.txt): failed to open stream: Permission denied in D:\Inetpub\vhosts\xxxxxxx.xx\httpdocs\in.php on line 4

PHP Warning: mkdir(): Permission denied in D:\Inetpub\vhosts\xxxxxxx.xx\httpdocs\in.php on line 11

I already spent a whole day of googling, reading a bunch of topics and trying almost every possible tip found on internet but with no luck.

Any suggestions?

Thanks

Upvotes: 0

Views: 2921

Answers (1)

Oleg Neumyvakin
Oleg Neumyvakin

Reputation: 10312

Has you domain "Additional write/modify permissions" checked?

plesk-windows-php-write-permissions

Upvotes: 2

Related Questions