I'm having problems uploading large files on this server with a php script. I'm sure I've done all the necessary changes to the PHP.ini file to allow larger uploads. I'm sure it is a file size error (compared to time out) as connecting directly to the server to run the script and uploading a 10MB file gives and instant failure. Smaller files are fine.
Relevant php.ini information is below as reported by doing a phpinfo() at the base of my script file.
Directive Local Value Master Value
file_uploads On On
max_execution_time 1200 60
max_file_uploads 20 20
memory_limit 256M 256M
max_input_time 1200 1200
post_max_size 256M 256M
upload_max_filesize 262144000 262144000 (yes this is in bytes)
upload_tmp_dir C:\Windows\Temp C:\Windows\Temp
Now all this is run on an IIS7 2008 server which I'm not much experienced with however like I said small files are all OK. I have flush /recycled the Application pool attached to the server and restarted the website server several times to ensure php.ini changes are picked up - and they are shown in the ini on the script page.
I did find some info on time-outs for the server and CGI in IIS7 and the fact it has a silent default of 30MB for file (a size I'm not even getting to). However I have also made the following changes/additions to the web.config.
<httpRuntime maxRequestLength="256000" executionTimeout="900" />
This should give ample time.
One other note which may be relevant .. I had problems with the web platform installation of PHP as it would not install PEAR so I removed and installed PHP as per these steps http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
and into a c:\php5 location so I could get pear running. I doubt this has much influence as like I said smaller uploads work fine.