A
A
Ana Heim2021-05-14 09:52:04
Windows
Ana Heim, 2021-05-14 09:52:04

Wordpress 5.7 on IIS 10 does not display images when uploading through the site, error - 500, where do I need permissions?

On the site directory, folders, files, IUSR and IIS_IUSRS have access rights everywhere.
On Linux, just a digital parameter for a folder is set and that's it.
In Windows, setting access rights through "security".
It would seem nothing complicated.
However, all the same, when opening the image directly, the error is 500, and the image does not display on the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ana Heim, 2021-05-14
@ana_heim

Php uploads the image first to the Windows/temp folder, and then transfers it to wp-content/upload with rights inherited from temp.
I recommend to give the rights to the windows / temp folder IUSR - write / change / read and IIS_IUSRS - read.
And it's better to change the temporary folder php
Program Files (x86)/PHP/vers/php.ini
change the upload_tmp_dir parameter, Windows/temp is most likely installed there,
just specify your directory and assign IUSR and IIS_IUSRS rights to it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question