<?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 &#187; cpanel</title>
	<atom:link href="http://www.civija.net/?feed=rss2&#038;tag=cpanel" 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>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like"  style="width:80px;"><div class="fb-like" data-send="false" data-show-faces="false" data-layout="button_count" data-href="http://www.civija.net/?p=126"></div><div id="fb-root"></div>
			<script>(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)[0];
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=511753325531773";
			  fjs.parentNode.insertBefore(js, fjs);
			}(document, "script", "facebook-jssdk"));</script></div><div class="really_simple_share_twitter"  style="width:80px;"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Nginx with Apache and suPHP on cPanel" data-url="http://www.civija.net/?p=126" 
						data-via=""  ></a></div><div class="really_simple_share_google1" horizontal style="width:60px;"><div class="g-plusone" data-size="medium" data-href="http://www.civija.net/?p=126" ></div></div><div class="really_simple_share_email"  style="width:30px;"><a href="mailto:?subject=Nginx%20with%20Apache%20and%20suPHP%20on%20cPanel&amp;body=Nginx%20with%20Apache%20and%20suPHP%20on%20cPanel%20-%20http%3A%2F%2Fwww.civija.net%2F%3Fp%3D126"><img src="http://www.civija.net/wp-content/plugins/really-simple-facebook-twitter-share-buttons/images/email.png" alt="Email" title="Email" /> </a></div></div>
		<div style="clear:both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.civija.net/?feed=rss2&#038;p=126</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
