Steve, you could create a second Apache instance with its own pool of PHP jobs and its own fastcgi.conf file.

Alan

Alan Seiden
Principal, Seiden Group
PHP and Python on IBM i




Free tips on PHP, Python, IBM i and open source: http://www.seidengroup.com/tips <http://www.seidengroup.com/tips>

Office: 201-447-2437 Cell: 201-248-4704
http://www.seidengroup.com <http://www.seidengroup.com/> | alan@xxxxxxxxxxxxxxx <mailto:alan@xxxxxxxxxxxxxxx>
http://twitter.com/alanseiden <http://twitter.com/alanseiden>

On Sep 28, 2018, at 7:42 PM, Steve Richter <stephenrichter@xxxxxxxxx <mailto:stephenrichter@xxxxxxxxx>> wrote:

changed the RequestTimeout setting in fastcgi.conf
RequestTimeout="180"

that worked. The PHP job does not time out.

any way I can apply this timeout change to this specific PHP script?
Changing fastcgi.conf sets the timeout at the server level.





On Fri, Sep 28, 2018 at 3:53 PM, Steve Richter <stephenrichter@xxxxxxxxx <mailto:stephenrichter@xxxxxxxxx>>
wrote:

how to set PHP timeout to nomax?

I have a PHP script that is run using HTTPGETCLOB. It runs as part of a
batch job on the IBM i. Getting HTTP response code 408 - request timeout.

Java stored procedure or user-defined function SYSTOOLS.HTTPGETCLOB,
specific name HTTPG00005 aborted with an exception "Server returned
HTTP response code: 408 for URL:
http://172.16.1.254:10080/marketing/dropbox_importProdOnHand.php <http://172.16.1.254:10080/marketing/dropbox_importProdOnHand.php>".

this error returns in 60 seconds.

In the PHP script I run:
set_time_limit(0);
ini_set('max_execution_time', 300);

in PHP.INI, there is this:
max_execution_time=30

and the apache httpd.conf file has
TimeOut 30000


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx <mailto:WEB400@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400 <https://lists.midrange.com/mailman/listinfo/web400>
or email: WEB400-request@xxxxxxxxxxxx <mailto:WEB400-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400 <https://archive.midrange.com/web400>.




Thanks,
Alan

Alan Seiden
Principal, Seiden Group
PHP and Python on IBM i




Free tips on PHP, Python, IBM i and open source: http://www.seidengroup.com/tips <http://www.seidengroup.com/tips>

Office: 201-447-2437 Cell: 201-248-4704
http://www.seidengroup.com <http://www.seidengroup.com/> | alan@xxxxxxxxxxxxxxx <mailto:alan@xxxxxxxxxxxxxxx>
http://twitter.com/alanseiden <http://twitter.com/alanseiden>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.