I am having problems with large file uploads using IIS6 FastCGI and php.
The main problem was that FastCGI was timing out on files over 12mb. This I corrected by increasing the ActivityTimeout variable in the fastcgi config file. This seems to have resolved this issue as I was then able to upload a 16mb file with no issues. However something else has started to happed now whilst trying to upload an 18.8mb file after aprox 7 minutes which is well within the 10 minutes I have set up as a timeout the page just comes up with a http 500 Internal Server Error. I have checked the php.ini file for sizes and all settings are good for upto 21mb. I am no longer getting the fastcgi error message so I think we can assume this is now fixed. Are there any other settings that could be causing this? I thought it maybe a session prob as the upload is within a secure cms. But session timeout is set to the standard 24 minutes. I also had a look at the mysql settings but they all seem fine and I doubt this would cause the issue.
Can anyone else suggest anywhere else to look?
Many Thanks
Lettie
Large File Upload Issues
Moderator: General Moderators
-
lettie_dude
- Forum Commoner
- Posts: 65
- Joined: Thu Dec 07, 2006 10:10 am
Re: Large File Upload Issues
Ok.
It's been a hard slog but It finally looks like I have resolved this. There is a further setting in the php.ini file that needs increasing to allow for large file uploads.
max_input_time = 300 (default) increase this by a relevant amount of time and hey presto it works.
So in summary these are the variables you need to increase to allow for large file uploads using iis 6.0.
php.ini file
max_input_time
upload_max_filesize
post_max_size
fastcgiext.ini
Add these details at the very bottom of the fastCGI ini and inrease as necessary. ActivityTimeout and InstanceTimeout are the key ones.
[Types]
php=PHP
It's been a hard slog but It finally looks like I have resolved this. There is a further setting in the php.ini file that needs increasing to allow for large file uploads.
max_input_time = 300 (default) increase this by a relevant amount of time and hey presto it works.
So in summary these are the variables you need to increase to allow for large file uploads using iis 6.0.
php.ini file
max_input_time
upload_max_filesize
post_max_size
fastcgiext.ini
Add these details at the very bottom of the fastCGI ini and inrease as necessary. ActivityTimeout and InstanceTimeout are the key ones.
[Types]
php=PHP
Code: Select all
ExePath= path to php
QueueLength=1000
MaxInstances=8
ActivityTimeout=300
InstanceTimeout=300
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
Hope this helps someone else out. Its only taken me 6 months to get to the bottom of it!!!Re: Large File Upload Issues
6 Months
Check your error logs
Check your error logs