<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: suexec, php-5.1.4, fastcgi and cpanel</title>
	<atom:link href="http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/</link>
	<description>Random IT Stuff</description>
	<lastBuildDate>Tue, 31 Aug 2010 23:59:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CAP Marketer - Optimisez votre site internet développé sous Wordpress</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-22151</link>
		<dc:creator>CAP Marketer - Optimisez votre site internet développé sous Wordpress</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-22151</guid>
		<description>[...] eAccelerator ne fonctionnera pas si votre PHP tourne en mode CGI. Vous pouvez essayer d’utiliser fastcgi qui, lui, fonctionne avec suExec et [...]</description>
		<content:encoded><![CDATA[<p>[...] eAccelerator ne fonctionnera pas si votre PHP tourne en mode CGI. Vous pouvez essayer d’utiliser fastcgi qui, lui, fonctionne avec suExec et [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 求索阁 &#187; Blog Archive &#187; WordPress 优化宝典</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-22150</link>
		<dc:creator>求索阁 &#187; Blog Archive &#187; WordPress 优化宝典</dc:creator>
		<pubDate>Mon, 14 Jun 2010 00:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-22150</guid>
		<description>[...] #6：不幸的是，如果 PHP 运行于 CGI 模式，eAccelerator 无法工作。你可以尝试使用 fasgcgi，可以与 suExec 和 eAccelerator [...]</description>
		<content:encoded><![CDATA[<p>[...] #6：不幸的是，如果 PHP 运行于 CGI 模式，eAccelerator 无法工作。你可以尝试使用 fasgcgi，可以与 suExec 和 eAccelerator [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress Optimization Tips &#124; Nanzad - Wordpress Developer</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-22149</link>
		<dc:creator>Wordpress Optimization Tips &#124; Nanzad - Wordpress Developer</dc:creator>
		<pubDate>Fri, 11 Jun 2010 07:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-22149</guid>
		<description>[...] #3: Unfortunately eAccelerator won&#8217;t work if PHP is run as CGI. You can try using fastcgi which will work with suExec and [...]</description>
		<content:encoded><![CDATA[<p>[...] #3: Unfortunately eAccelerator won&#8217;t work if PHP is run as CGI. You can try using fastcgi which will work with suExec and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP-FastCGI, Suexec, and XCache Installed - Reaper-X</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-22147</link>
		<dc:creator>PHP-FastCGI, Suexec, and XCache Installed - Reaper-X</dc:creator>
		<pubDate>Tue, 27 Apr 2010 10:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-22147</guid>
		<description>[...] your own userid, and the good side from this method is you can use PHP Accelerator. Fortunately there&#8217;s someone who&#8217;s using an almost&#160;identical server setup like mine&#160;so i can simply follow his guide (although i need to do some little modification because i [...]</description>
		<content:encoded><![CDATA[<p>[...] your own userid, and the good side from this method is you can use PHP Accelerator. Fortunately there&rsquo;s someone who&rsquo;s using an almost&nbsp;identical server setup like mine&nbsp;so i can simply follow his guide (although i need to do some little modification because i [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sykkes</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-22141</link>
		<dc:creator>sykkes</dc:creator>
		<pubDate>Fri, 15 Jan 2010 03:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-22141</guid>
		<description>What exactly is the difference between mod_fastcgi and mod_fcgid? I want to be able to use the -flush command, so my progressbars work, but if the two modules are &#039;the same&#039;, then why are the configurations so different? I&#039;ve still to get a straight answer to this…xD</description>
		<content:encoded><![CDATA[<p>What exactly is the difference between mod_fastcgi and mod_fcgid? I want to be able to use the -flush command, so my progressbars work, but if the two modules are &#8216;the same&#8217;, then why are the configurations so different? I&#8217;ve still to get a straight answer to this…xD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza Hashemi</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-21903</link>
		<dc:creator>Reza Hashemi</dc:creator>
		<pubDate>Sat, 06 Oct 2007 15:56:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-21903</guid>
		<description>Nice tutorial, It works with php 5.2.4 on centos 4.5, It needs just a minor change, as the binary file is /usr/local/php5-fcgi/bin/php-cgi </description>
		<content:encoded><![CDATA[<p>Nice tutorial, It works with php 5.2.4 on centos 4.5, It needs just a minor change, as the binary file is /usr/local/php5-fcgi/bin/php-cgi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-5305</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 06 Dec 2006 04:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-5305</guid>
		<description>I am having the worse time getting php5 to work on cpanel server as fastcgi.

i am constantly getting unable to load pgsql.so (even though it is in the right place).  Specifically it says undefined symbol PQescapeStringConn.

any advice?</description>
		<content:encoded><![CDATA[<p>I am having the worse time getting php5 to work on cpanel server as fastcgi.</p>
<p>i am constantly getting unable to load pgsql.so (even though it is in the right place).  Specifically it says undefined symbol PQescapeStringConn.</p>
<p>any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-4799</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 25 Nov 2006 19:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-4799</guid>
		<description>There is apparently one way that this can be done. There is a patch to the apache suexec code to tell it to stop checking for the uid/gid of files that it is to run. Then you can place the php5.fcgi script in a central location and change some of the config files around. Apache would run the file as whatever uid/gid was set in its virtualhost declaration.

The problem with doing this is that the suexec mechanism checks uid/gid to limit exposure to certain security risks. I would be concerned about stripping out one of the security mechanisms from suexec.

---
uid = user id
gid = group id</description>
		<content:encoded><![CDATA[<p>There is apparently one way that this can be done. There is a patch to the apache suexec code to tell it to stop checking for the uid/gid of files that it is to run. Then you can place the php5.fcgi script in a central location and change some of the config files around. Apache would run the file as whatever uid/gid was set in its virtualhost declaration.</p>
<p>The problem with doing this is that the suexec mechanism checks uid/gid to limit exposure to certain security risks. I would be concerned about stripping out one of the security mechanisms from suexec.</p>
<p>&#8212;<br />
uid = user id<br />
gid = group id</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-4798</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 25 Nov 2006 19:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-4798</guid>
		<description>Sorry for taking so long to reply.
---
Christos,

I am not sure if there is a way to fix the suexec_logs file. The php5.fcgi is executed and that in turn runs php which parses the file.

To have php files with incorrect permissions is certainly a security threat.
---

Jos van Bakel,

Your method would work; however, I believe it would cause problems in a virtual host environment. The suexec mechanism runs the php5.fcgi file as the user that owns the file. I did see somewhere where there were directives that could be added to Apache&#039;s virtual host sections to specify the exact user that scripts are to be run as.

Looks like I need to do some further research. I will have to do some testing, as I like your way of doing it much better and have always been somewhat dissatisfied with the way I have outlined in this guide.</description>
		<content:encoded><![CDATA[<p>Sorry for taking so long to reply.<br />
&#8212;<br />
Christos,</p>
<p>I am not sure if there is a way to fix the suexec_logs file. The php5.fcgi is executed and that in turn runs php which parses the file.</p>
<p>To have php files with incorrect permissions is certainly a security threat.<br />
&#8212;</p>
<p>Jos van Bakel,</p>
<p>Your method would work; however, I believe it would cause problems in a virtual host environment. The suexec mechanism runs the php5.fcgi file as the user that owns the file. I did see somewhere where there were directives that could be added to Apache&#8217;s virtual host sections to specify the exact user that scripts are to be run as.</p>
<p>Looks like I need to do some further research. I will have to do some testing, as I like your way of doing it much better and have always been somewhat dissatisfied with the way I have outlined in this guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jos van Bakel</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-4797</link>
		<dc:creator>Jos van Bakel</dc:creator>
		<pubDate>Sat, 25 Nov 2006 18:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-4797</guid>
		<description>Nice Tutorial!

I think i found a solution to the php5.fcgi-in-every-virtual-host-directory problem:

Create a directory /usr/share/cgi-bin and put the php5.fcgi file in it.
Be sure that the directory is readable and executable by apache (and all of the virtual host users).
Now, add the following to the apache config:

Alias /shared-cgi-bin/ /usr/share/cgi-bin/


  AllowOverride none
  Options +ExecCGI


And finally modify the path in the &quot;Action php5-fcgi ...&quot; configuration lines to /shared-cgi-bin/php5.fcgi

I haven&#039;t tried it with virtual hosts with different users yet, but it think it will work :)</description>
		<content:encoded><![CDATA[<p>Nice Tutorial!</p>
<p>I think i found a solution to the php5.fcgi-in-every-virtual-host-directory problem:</p>
<p>Create a directory /usr/share/cgi-bin and put the php5.fcgi file in it.<br />
Be sure that the directory is readable and executable by apache (and all of the virtual host users).<br />
Now, add the following to the apache config:</p>
<p>Alias /shared-cgi-bin/ /usr/share/cgi-bin/</p>
<p>  AllowOverride none<br />
  Options +ExecCGI</p>
<p>And finally modify the path in the &#8220;Action php5-fcgi &#8230;&#8221; configuration lines to /shared-cgi-bin/php5.fcgi</p>
<p>I haven&#8217;t tried it with virtual hosts with different users yet, but it think it will work <img src='http://www.morph3ous.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christos</title>
		<link>http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/comment-page-1/#comment-3980</link>
		<dc:creator>Christos</dc:creator>
		<pubDate>Fri, 10 Nov 2006 15:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.morph3ous.net/2006/08/03/suexec-php-514-fastcgi-and-cpanel/#comment-3980</guid>
		<description>Thanks for the tutorial i followed and used php5.2.0 which works quite well.

One question though. suexec_logs indicate that the php5.fcgi scipt is executed not the .php file. Can this be fixed?
 
Apart from that you can have php files with root permissions or chmoded to 777 which is not allowed by suexec. suexec works because if i change the permissions of php5.fcgi then nothing can be executed.
But allowing php scripts to have incorrect permissions isn&#039;t a security threat?</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial i followed and used php5.2.0 which works quite well.</p>
<p>One question though. suexec_logs indicate that the php5.fcgi scipt is executed not the .php file. Can this be fixed?</p>
<p>Apart from that you can have php files with root permissions or chmoded to 777 which is not allowed by suexec. suexec works because if i change the permissions of php5.fcgi then nothing can be executed.<br />
But allowing php scripts to have incorrect permissions isn&#8217;t a security threat?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
