JQuery 500 file upload Internal server error

I’ve been stuck with this for about a week, and I just seem to be going in circles.

The problem is getting 500 internal server errors when downloading files. I have posted several forums, but the help is extremely limited due to the fact that I am running Windows Server.

So what have I done so far?

  • Checked, double checked, triple checked the PHP.INI file to make sure that I have all the correct attributes:

    max_execution_time 600 max_input_time 600 memory_limit 128M post_max_size 50M upload_max_filesize 50M 
  • The script was checked and decided to test several different scripts from different sources of W3Schools, PHP.net, etc., as well as the problem.

  • Updated PHP5 to PHP5.3 with the same problem

  • I tried to implement it using the JQuery_File_Upload API and got unstable results. He rarely downloaded> 10 MB of files and almost always threw an internal server error

  • Check the error log. I checked it, but there was nothing unusual there, and the last record was a few days ago, so I added a user log and again, without writing anything to it.

What else can I do? I am running a dedicated server, Windows 2008, Plesk.

Please, help!

Thanks.

+4
source share
1 answer

I solved this problem by checking the files / var / log / apache 2 / error_log. I saw something there that indicated that the a.htaccess file was being read, so I went to this directory and opened the .htaccess file: server / PHP / files / .htaccess

Then he commented on the following line, putting a hash in front of it: X-Content-Type-Options "nosniff" Header Set

Then I looked through the directory and worked fine.

+1
source

Source: https://habr.com/ru/post/1482185/


All Articles