<?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>Urandom experience</title>
	<atom:link href="http://www.civija.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.civija.net</link>
	<description>Just some bits and pieces about Linux and open source software</description>
	<lastBuildDate>Thu, 24 Jan 2013 11:43:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Nginx with Apache and suPHP on cPanel</title>
		<link>http://www.civija.net/?p=126</link>
		<comments>http://www.civija.net/?p=126#comments</comments>
		<pubDate>Wed, 23 Jan 2013 16:44:47 +0000</pubDate>
		<dc:creator>Miroslav Sabljić</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginxcp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[suphp]]></category>

		<guid isPermaLink="false">http://www.civija.net/?p=126</guid>
		<description><![CDATA[Recently I was testing nginx as a proxy for Apache and PHP on cPanel installation. I came a cross nginxadmin plugin for cPanel, By default Apache is configured in WHM to run PHP in SuPHP mode. After installing nginxadmin I wanted to test index.php on my test website but I got error message saying “500 [...]]]></description>
				<content:encoded><![CDATA[<p>Recently I  was testing nginx as a proxy for Apache and PHP on cPanel installation. I came a cross <a href="http://nginxcp.com/" target="_blank">nginxadmin</a> plugin for cPanel, By default Apache is configured in WHM to run PHP in SuPHP mode. After installing nginxadmin I wanted to test index.php on my test website but I got error message saying “500 Internal Server Error”.  Index.php is just calling phpinfo() function.</p>
<p>Looking at the error_log revealed the following:</p>
<blockquote><p>[Sat Jan 19 14:12:06 2013] [error] [client 192.168.1.200] SoftException in Application.cpp:256: File &#8220;/home/user/public_html/index.php&#8221; is writeable by group<br />
[Sat Jan 19 14:12:06 2013] [error] [client 192.168.1.200] Premature end of script headers: index.php</p></blockquote>
<p></br><br />
So the solution is to make chmod 640 on /home/user/public_html/index.php file or to tweak SuPHP settings to allow files with group writable permissions.</br><br />
If you don&#8217;t want to change file permissions on every .php file you can change the setting in <strong>/opt/suphp/etc/suphp.conf</strong> file. Find the line &#8216;<strong>allow_file_group_writeable=false</strong>&#8216; and change the parameter value to <strong>true</strong>.<br />
</br></p>
]]></content:encoded>
			<wfw:commentRss>http://www.civija.net/?feed=rss2&#038;p=126</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
