<?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; WebServer Errors</title>
	<atom:link href="https://wiki.centos-webpanel.com/tag/webserver-errors/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>WebServer Errors</title>
		<link>https://wiki.centos-webpanel.com/webserver-errors</link>
		<comments>https://wiki.centos-webpanel.com/webserver-errors#comments</comments>
		<pubDate>Tue, 25 Jan 2022 20:50:41 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[WebServer Errors]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1702</guid>
		<description><![CDATA[The page isn’t redirecting properly - you probably have HTTPS redirect forced in .htaccess if you are using nginx then do a redirect via nginx https template 403 Forbidden - Mod Security (most common): click here for instructions - Incorrect include file location - Other apache rules or permissions For more details please check apache [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>The page isn’t redirecting properly</strong><br />
- you probably have HTTPS redirect forced in .htaccess if you are using nginx then do a redirect via nginx https template</p>
<p><strong>403 Forbidden</strong><br />
- Mod Security (most common): <a href="/mod_security-for-cwp" title="Mod Security info" target="_blank">click here for instructions</a><br />
- Incorrect include file location<br />
- Other apache rules or permissions<br />
For more details please check <a href="/service-log-paths" title="Apache Logs" target="_blank">apache logs</a>.</p>
<p><strong>500 Internal Server Error</strong><br />
Issue related to the server configuration, examples, and most common issues:<br />
- Domain has custom PHP version configured using .htaccess and that PHP version isn't installed<br />
- Domain has defined <strong>Options</strong> in .htaccess file, you need to remove line starting with Options<br />
- PHP/PHP-FPM version is not working well with the site code, try another version.<br />
- Error: "<em>End of script output before headers</em>" this can be related to file permissions, try using fix account permissions</p>
<p><strong>502 Bad Gateway</strong><br />
- PHP-FPM is down, try to restart PHP-FPM service<br />
- It can be also related to the small number of php-fpm processes, this can be changed from WebServers_conf by using "PHP-FPM default template" default process limit is 4.<br />
if some have issue increase to 20 or more depending on the requirements<br />
- It can be also related to apache having all processes used if you use nginx, in this case, if the server is not overloaded apache number of the process will need to be increased.</p>
<p><strong>503 Service Unavailable</strong><br />
- This is probably related to incorrect port redirection or php-fpm socket if not working<br />
- php-fpm is down<br />
- php-fpm specific version not installed (example missing php-fpm56 and domain is set to use it)<br />
Error_Log:  FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm56/usr/var/sockets/wwwener.sock (*) failed</p>
<p>Rebuild webservers and tail log: /var/log/cwp/webservers.log<br />
2018-12-20 01:12:57 <USERNAME> PHP-FPM php-fpm72: ERROR failed at quota or security limits<br />
TEST</p>
<pre>
# su USERNAME -c "touch /home/USERNAME/.quota-check" -s /bin/bash
su: cannot create child process: Resource temporarily unavailable
su: cannot open session: System error</pre>
<p>then this is probably related to users security limits you need to increase it and don't use 0 as this is the lowest limit.</p>
<p>if we have this output</p>
<pre>touch: cannot touch '/home/USERNAME/.quota-check': Permission denied</pre>
<p>then this means users home folder has incorrect permissions /home/USERNAME/</p>
<p>it can be also related to session restrictions in the pam file<br />
/etc/pam.d/su [know platforms having this issue: lxckvm]<br />
change "session include system-auth" to "session optional system-auth"</p>
<p><strong>503 Backend fetch failed</strong><br />
- This is probably related to incorrect backend configuration for varnish</p>
<p>https://stackoverflow.com/questions/34548690/how-to-increase-timeout-between-varnish-4-and-nginx</p>
<p><strong>504 GATEWAY TIMEOUT</strong><br />
- probably related to apache or php-fpm not responding, try restarting apache or php-fpm version you are using</p>
<p>For Apache issue: If the issue repeats then try to increase apache limits<br />
For PHP-FPM: If the issue repeats then try to increase the process limit as described above<br />
...more info to be added here</p>
]]></content:encoded>
			<wfw:commentRss>https://wiki.centos-webpanel.com/webserver-errors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
