Hello I'm new to the forums, since I have just purchased a VPS with IIS 7, so I have a couple of issues regarding the php timeout with file uploads in particular. In my php upload script I have used the function set_max_time(0), which works perfectly fine locally
but when it gets on the server side of things the uploader bar at the bottom of Google Chrome keeps resetting to 0% after a certain amount of time.
I thought I had fixed this problem as I made a quick script with the php_info() function and found that the edited php.ini file, which I had already edited was indeed the wrong one. I then went on to edit the php.ini file which had been loaded through the php_info()
function but then still no luck.
I'm wondering if this may just be down to Chrome going a bit funny as to be honest I have not yet made an uploader bar which displays upload progress to the user, so I may just leave it and see if it still works. Otherwise if there is something that I have
missed please enlighten me as I would be very grateful. I am so nearly there I have spent the last few days trying to set up the permissions for ffmpeg to run and finally I have managed to do that, all I need to do now is fix this problem and then I think
I am done.
Thanks for the reply yes I have Plesk Panel 10.4 installed, I went about fiddling with the php config settings through plesk and it works exactly the same through there. Although I think I may have found that the problem is indeed not php but the actual browser,
as it gets an error when uploading saying the connection was reset.
I will take a look into those links you provided for the browser issues, but unfortunately ffmpeg is no longer executing. So I have to some how fix that again.
Well I have set the max file size to 250MB as of now in the php.ini files and I have also set the time limit to something like 1600 seconds. I have not changed any other settings as of yet.
Thanks Martin those links look like they will come in handy I had a go at setting the application to CGI instead of FastCGI and that seems to work for now but it is not really the best solution. So I will looking into changing the IIS server settings through
Plesk.
I went back to using FastCGI as obviously it is a lot better and a lot faster performance wise. So I changed the time-out to 3000 seconds on both PHP and FastCGI and yet it still gets the Error Connection Reset. I have only tried this through restarting IIS
so I have gone ahead and restarted the VPS and I am going to see if that will do anything.
Yes I did try and with the VPS being restarted and I am starting to have a feeling that it is the size of the files being uploaded and possibly not a timeout. As it can upload a 25mb file fine for like 10 minutes or whatever but a 100mb+ file seems to timeout
after like 5.
Chub
7 Posts
PHP max execution time
Jan 25, 2012 08:47 PM|LINK
I thought I had fixed this problem as I made a quick script with the php_info() function and found that the edited php.ini file, which I had already edited was indeed the wrong one. I then went on to edit the php.ini file which had been loaded through the php_info() function but then still no luck.
I'm wondering if this may just be down to Chrome going a bit funny as to be honest I have not yet made an uploader bar which displays upload progress to the user, so I may just leave it and see if it still works. Otherwise if there is something that I have missed please enlighten me as I would be very grateful. I am so nearly there I have spent the last few days trying to set up the permissions for ffmpeg to run and finally I have managed to do that, all I need to do now is fix this problem and then I think I am done.
IIS 7 php configuring php.ini
HCamper
8048 Posts
Re: PHP max execution time
Jan 26, 2012 06:24 AM|LINK
Hi,
A new purchase a "VPS" with IIS 7 server installed and problems with PHP and Google Chrome Browser.
Do you have a Control Panel for the VPS with IIS 7 Server to check and make changes ?
For IIS Server do you have http://learn.iis.net/page.aspx/113/getting-started-with-iis-manager/ ?
The issues for PHP http://learn.iis.net/page.aspx/770/install-the-microsoft-web-platform-for-php/ references
http://learn.iis.net/page.aspx/944/using-php-manager-for-iis-to-setup-and-configure-php/ install PHP Manager for the settings
configuration and testing. You can check the PHP current settings http://learn.iis.net/page.aspx/724/install-and-configure-php/.
Google Chrome Browser update progress bar and ffmpeg :
Get Fiddler 2 http://fiddler2.com/fiddler2/ http://fiddler2.com/Fiddler/help/ it should help with browser progress bar and ffmpeg.
How to fix the problems for IIS Server http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/
check the IIS Server log status codes and errors it will explain more about IIS Server.
Feel free to ask more questions or post status codes in the forum to be checked.
HTH
Martin
Community Member Award 2011
Chub
7 Posts
Re: PHP max execution time
Jan 26, 2012 07:49 PM|LINK
I will take a look into those links you provided for the browser issues, but unfortunately ffmpeg is no longer executing. So I have to some how fix that again.
kctt
654 Posts
Re: PHP max execution time
Jan 27, 2012 05:29 AM|LINK
How big is the file you try to upload?
There are other time out limit on IIS, not just php.
Chub
7 Posts
Re: PHP max execution time
Jan 28, 2012 03:26 PM|LINK
HCamper
8048 Posts
Re: PHP max execution time
Jan 28, 2012 03:36 PM|LINK
Hi,
"I have set the max file size to 250MB as of now in the php.ini files".
You have Plesk Panel 10.4 installed how to change the IIS Server settings.
http://www.iis.net/ConfigReference please check.
Martin
Community Member Award 2011
Chub
7 Posts
Re: PHP max execution time
Jan 28, 2012 03:42 PM|LINK
Chub
7 Posts
Re: PHP max execution time
Jan 28, 2012 04:23 PM|LINK
HCamper
8048 Posts
Re: PHP max execution time
Feb 06, 2012 02:18 PM|LINK
Hi,
Sorry for late reply,
Have you resolved the errors connection Reset ?
You have tried IIS and the VPS restarting and what were the results ?
Can you post the the PHP information or the connection settings ?
Martin
Community Member Award 2011
Chub
7 Posts
Re: PHP max execution time
Feb 07, 2012 03:35 PM|LINK