<?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>Building the Web &#187; tips</title>
	<atom:link href="http://www.filonov.com/blog/tags/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.filonov.com/blog</link>
	<description>Web development notes, tips, tricks, ideas, thoughts</description>
	<lastBuildDate>Sat, 07 Nov 2009 17:33:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Error 400: Size of a request header field exceeds server limit</title>
		<link>http://www.filonov.com/blog/2009/11/07/error-400-size-of-a-request-header-field-exceeds-server-limit/</link>
		<comments>http://www.filonov.com/blog/2009/11/07/error-400-size-of-a-request-header-field-exceeds-server-limit/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 17:33:33 +0000</pubDate>
		<dc:creator>Andrei Filonov</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.filonov.com/blog/?p=50</guid>
		<description><![CDATA[If you get error like this one
Error 400
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
That means that your browser is trying to send too much at once. Probably, it&#8217;s size of the cookies. The easy way to fix it &#8211; delete cookies. Of course, [...]]]></description>
			<content:encoded><![CDATA[<p>If you get error like this one</p>
<p><code>Error 400<br />
Your browser sent a request that this server could not understand.<br />
Size of a request header field exceeds server limit.</code></p>
<p>That means that your browser is trying to send too much at once. Probably, it&#8217;s size of the cookies. The easy way to fix it &#8211; delete cookies. Of course, you lose all info in the cookies, but at least you can access site again.</p>
<p>If you develop/manage web site and your customers complain of this error message &#8211; there are two things to do: </p>
<ul>
<li>Review cookies and limit the size of cookies your application stores in the browser. </li>
<li>Increase allowed request size in web server configuration</li>
</ul>
<p>To increase request size in Apache, add directive  LimitRequestFieldSize to the configuration file. Default value is 8190 bytes. To increase it 2 times add<br />
<code>LimitRequestFieldSize 16380</code><br />
Apache restart is required.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.filonov.com/blog/2009/11/07/error-400-size-of-a-request-header-field-exceeds-server-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLSTATE[HY000] [2003] Can&#8217;t connect to MySQL server on &#8216;xxx.xxx.xxx.xxx&#8217; (13)</title>
		<link>http://www.filonov.com/blog/2009/08/07/sqlstatehy000-2003-cant-connect-to-mysql-server-on-xxx-xxx-xxx-xxx-13/</link>
		<comments>http://www.filonov.com/blog/2009/08/07/sqlstatehy000-2003-cant-connect-to-mysql-server-on-xxx-xxx-xxx-xxx-13/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 14:34:44 +0000</pubDate>
		<dc:creator>Andrei Filonov</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[selinux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.filonov.com/blog/?p=45</guid>
		<description><![CDATA[One of the things I wish I had found in Google faster when trying to figure out why PHP script refuses to connect to remote MySQL server issuing an error
SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'xxx.xxxx.xxx.xxx' (13)
I am able to connect from local shell, so first thought was if something wrong with recent [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I wish I had found in Google faster when trying to figure out why PHP script refuses to connect to remote MySQL server issuing an error<br />
<code>SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'xxx.xxxx.xxx.xxx' (13)</code></p>
<p>I am able to connect from local shell, so first thought was if something wrong with recent Zend Framework upgrade, but after a while I figured out that answer is very simple &#8211; SELinux was blocking remote connections from PHP scripts executed by Apache web server. The error code (13) at the end of error message means &#8220;permission denied&#8221;, so that&#8217;s the indication to see if you have similar issue or not.</p>
<p>Anyway, login as root and do<br />
<code>setsebool -P httpd_can_network_connect=1</code><br />
to make it work.</p>
<p>Of course, think twice because you make web server a bit less secure, so don&#8217;t do that unless you are sure you need it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.filonov.com/blog/2009/08/07/sqlstatehy000-2003-cant-connect-to-mysql-server-on-xxx-xxx-xxx-xxx-13/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Freelance PHP positions</title>
		<link>http://www.filonov.com/blog/2009/05/06/freelance-php-positions/</link>
		<comments>http://www.filonov.com/blog/2009/05/06/freelance-php-positions/#comments</comments>
		<pubDate>Wed, 06 May 2009 16:28:41 +0000</pubDate>
		<dc:creator>Andrei Filonov</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://filonov.com/blog/2009/05/06/freelance-php-positions/</guid>
		<description><![CDATA[Do you know PHP and thinking about getting some freelance job? You are not alone for sure, freelancing is a good way to get an extra income, to get started building your portfolio or to stop coming to the office and work from home.
Here is a good list of freelance positions for PHP developers:
http://workfromhomephpjobs.blogspot.com/
]]></description>
			<content:encoded><![CDATA[<p>Do you know PHP and thinking about getting some freelance job? You are not alone for sure, freelancing is a good way to get an extra income, to get started building your portfolio or to stop coming to the office and work from home.</p>
<p>Here is a good list of freelance positions for PHP developers:<br />
<a href="http://workfromhomephpjobs.blogspot.com/">http://workfromhomephpjobs.blogspot.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.filonov.com/blog/2009/05/06/freelance-php-positions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
