• Hello,

    We have WordPress installed on Windows Server using IIS. We are able to upload files (JPGS, GIFs) to the server via the WordPress control panel, but we can only see the files using a browser when we are logged into the WordPress control panel or they are being displayed using an image slider in the template for example. Once the files are uploaded, if we just put the URL into a browser, it will show a 500 error message but should be displaying the actual file being displayed (JPG or GIF).

    I tried the suggestion of giving more file permissions to IUSR and IIS_IUSR and that did not work. I also tried creating a new TEMP_UPLOADS folder and adjusting the PHP.ini setting and that did not work either. I tried the TEMP_UPLOADS folder in the /inetpub/wwwroot/ folder and outside of it and neither setup worked.

    The problem appears to be that when we upload a JPG/GIF file it cannot be seen from public view and produces a 500 server error response. We verify using Remote Desktop that the file is uploaded properly which they always are. But when you put the uploaded file URL into any browser, the file cannot be seen unless being done via the WordPress control panel or an internal template plugin is displaying the uploaded file.

    To resolve the issue I have to login via the remote desktop, highlight the Uploads folder, choose Security tab, then open the permissions for IUSR. I give Full Control permission when open then remove it right away then save and after that I refresh the browser and I can see the uploaded file. Ultimately, I am not giving any new permissions to the folder, just re-saving the existing folder permissions. I have to do this anytime I upload a file in order to build the website.

    When we setup the new Windows IIS server at the webhosting company, I tried the using Web Platform installer to install the WordPress onto the server. But it did not work. So I had to manually install the WordPress. So I suspect this is how something is not setup correct. I do not know how to fix this problem with the WordPress install. We have 5 WordPress website installs on this server and they all have the same problem.

    Just to be clear this is what happens. When a file is uploaded via the WordPress control panel using the Media Library for example, we can see it via the control panel. The uploaded file (JPG) is displayed in the confirmation page in the Media Library and it seems to upload fine. But when we copy the file URL from the Media Library file information screen and enter it into a browser in a new window, it produces a 500 error. Then we use Windows Remote Desktop to open the folder permissions for IUSR for the Uploads folder on the server, re-save the exact same permissions for IUSR and magically when we go back to the other browser window and refresh the exact same uploaded image it is then displayed properly and no more 500 error.

    Does anyone has a suggestion on how to fix this problem?

    Thank, Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello Matt:

    when we copy the file URL from the Media Library file information screen and enter it into a browser in a new window, it produces a 500 error.

    What’s in your PHP error log?

    Best wishes,
    Mitchell

    Thread Starter candatsystems

    (@candatsystems)

    Hello,

    After checking, I do not see any errors in the PHP log file when uploading.

    I now suspect that the WordPress is not using the temp upload folder that I have defined in PHP.ini. So when I adjusted the settings on the new temp folder, that is why it did not solve the problem.

    Does anyone know how to show what folder WordPress is using for temp uploads when uploading JPGS to the website?

    Thanks,
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uploaded Files Produce 500 Error From Public View’ is closed to new replies.