<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; proxy timeout</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/proxy-timeout/feed" rel="self" type="application/rss+xml" />
	<link>https://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Apache Proxy Timeout with PHP-FPM</title>
		<link>https://wiki.centos-webpanel.com/apache-proxy-timeout-with-php-fpm</link>
		<comments>https://wiki.centos-webpanel.com/apache-proxy-timeout-with-php-fpm#comments</comments>
		<pubDate>Wed, 28 Oct 2020 20:31:34 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[proxy timeout]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1500</guid>
		<description><![CDATA[Apache has a default timeout of 60 seconds, you can increase it by creating a custom template in cwp. Follow this basic steps to increase the php timeout when using php-fpm : Copy the default templates and save/create it as timeout tpl and stpl: cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/php-fpm/ cp default.stpl timeout.stpl cp default.tpl timeout.tpl Now you need [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Apache has a default timeout of 60 seconds, you can increase it by creating a custom template in cwp.<br />
Follow this basic steps to increase the php timeout when using php-fpm :</p>
<p><strong>Copy the default templates and save/create it as timeout tpl and stpl:</strong></p>
<pre>cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/php-fpm/
cp default.stpl timeout.stpl
cp default.tpl timeout.tpl</pre>
<p>Now you need to edit the both templates "<strong>timeout.tpl</strong>" and "<strong>timeout.stpl</strong>" and add this line: </p>
<pre>ProxyTimeout 90</pre>
<p> under
<pre>&lt;IfModule proxy_fcgi_module&gt;</pre>
<p> and save it.</p>
<p>** ProxyTimeout 90 is the limit that allows the script to run for 90 seconds before it gets hit with the timeout threshold.<br />
Increase it according to your needs, please don't use too high numbers to avoid server overloads.</p>
<p>eg :</p>
<pre>&lt;IfModule proxy_fcgi_module&gt;
    ProxyTimeout 90
    &lt;FilesMatch \.php$&gt;
        SetHandler "proxy:%backend_fcgi%|fcgi://localhost"
    &lt;/FilesMatch&gt;
&lt;/IfModule&gt;</pre>
<p>Now all you need is to create a custom configuration under webserver domain config and select the template or choose this template as a default in the webserver main config.</p>
<p>More info about the custom templates can be found <a href="/webservers-vhost-templates" title="Webserver custom templates" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/apache-proxy-timeout-with-php-fpm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
