nanytech
nanytech

Reputation: 398

increase php max_execution_time in IIS 7.5

I'm trying to increase the max_execution_time value in PHP(5.5) running on IIS 7.5 (Windows Server 2012).

phpinfo() shows max_execution_time=300 regardless of what I tried. Some Internet sources mentioned that this value is overridden by something in IIS.

Based on Internet searches, I've tried the following:

I can understand that the third option worked because it is in the same script and immediately above the phpinfo() line and therefore has the highest priority. However, I'm looking for a server-wide configuration. I have a feeling that it's possible, and that I'm not looking in the right place.

Can someone point me in the right direction?

Thanks

Upvotes: 2

Views: 10441

Answers (3)

Marcin Jaworski
Marcin Jaworski

Reputation: 340

C:\Program Files\PHP\v7.0\php.ini

search for: "[WebPIChanges]" there should be "max_execution_time=300" change that record.

Upvotes: 3

nanytech
nanytech

Reputation: 398

After rereading each line in php.ini, I found another section at the very bottom of the file that was named [WebPIChanges] and contained a bunch of "overrides". I'm guessing this is from the Web Platform Installer.

Tweaking that value solved it for me.

I'll leave it up in case anyone runs into the same issue.

Upvotes: 2

Parth Kumar
Parth Kumar

Reputation: 179

Please check for a hidden .htaccess file on your server and if there is no .htaccess file then you can create one( make sure that there is no hidden htaccess file otherwise it will overwrite) and paste this code.

php_value max_execution_time 259200

You can also refer this url Increase max execution time for php

Upvotes: 0

Related Questions