IIS 7 and Above
PHP Configuration Issue
Last post Jun 11, 2013 06:53 PM by szarkos
Jun 06, 2013 05:55 AM|scottlpool2003|LINK
This is a followon from the following thread: http://forums.iis.net/t/1198958.aspx/1?Troubleshooting+500+Error
It is a file upload script and the URL is valid on the server. I've been trying for weeks to resolve this issue and nobody seems to be able to help me locate the problem.
A more detailed description of the problem:
Uploading files larger than 10MB nearly always fail but occasionally they get through. I believe the php.ini file to be setup correctly with the following settings:
C:\Temp\ is writable.
I have tried various scripts and all have the same outcome so I don't believe it to be a coding error. I see the file upload to C:\Temp and when it fails the file remains so it's almost like it just doesn't want to move the file. As I say, occasionally the
file gets through and files less than 10MB get through fine so it is unlikely to be a permission issue.
I also changed maxAllowedContentLength in IIS to 30000000 with no success.
I then created an uploader in ASP which worked fine so this indicates its definitely a PHP issue.
I am totally lost with this one and nobody seems to be able to help me get the issue resolved.
Jun 06, 2013 10:45 AM|Rick Barber|LINK
This forum is primarily for IIS questions and answers. You will find that a lot of the people in the community who help answer questions here are more intimately familiar with ASP and ASP.Net and not as much with PHP. Since you have narrowed this down
to a PHP issue, I would recommend checking out the resources on the PHP site:
http://php.net/support.php. At that link you will notice there is a newsgroup where I suspect you will find some PHP experts and have a better chance of getting your issue resolved.
Jun 06, 2013 11:47 AM|scottlpool2003|LINK
And now IIS off the list.
var_dump( explode( ',', $item1) );
var_dump( explode( ',', $item2 ) );
I shall try the PHP site... probably with no luck. Thanks anyway.
Jun 11, 2013 02:52 AM|kctt|LINK
Have you tried uploading from within the server? Could it be slow internet speed causing upload error?
Do you have to use PHP or you open to Asp / Asp.net upload script?
Jun 11, 2013 06:53 PM|szarkos|LINK
This sounds like it could be an execution timeout issue. Can you check how long it takes from when you access the page (or click "submit" or whatnot) to when you receive the 500 error. If the timing is consistent that usually suggests a timeout issue.
I would recommend checking the following:
IIS has other timeouts as well (such as ConnectionTimeout which is set to 120 seconds by default), but if your uploads work with ASP and not with PHP that seems less likely to be the issue.