<?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: Running PHP on Shared Hosting</title>
	<atom:link href="http://hostingfu.com/article/running-php-on-shared-hosting/feed" rel="self" type="application/rss+xml" />
	<link>http://hostingfu.com/article/running-php-on-shared-hosting</link>
	<description>Web Hosting Blog by a Software Developer</description>
	<lastBuildDate>Wed, 10 Mar 2010 09:16:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-1#comment-569</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 16 Jan 2008 23:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-569</guid>
		<description>&lt;p&gt;In that &quot;200gb oversold plans&quot; thread, Matt Heaton says if he has an account on your shared server:&lt;/p&gt;
&lt;p&gt;&quot;I will be able to not only list every &quot;webable&quot; file for every account on your server...&quot;&lt;/p&gt;
&lt;p&gt;Is that possible -- and if so actually due to mod_php being installed?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>In that &#8220;200gb oversold plans&#8221; thread, Matt Heaton says if he has an account on your shared server:</p>
<p>&#8220;I will be able to not only list every &#8220;webable&#8221; file for every account on your server&#8230;&#8221;</p>
<p>Is that possible &#8212; and if so actually due to mod_php being installed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scotty</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-#comment-567</link>
		<dc:creator>scotty</dc:creator>
		<pubDate>Wed, 11 Jul 2007 23:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-567</guid>
		<description>&lt;p&gt;Ta. Fixed.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Ta. Fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-1#comment-568</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 11 Jul 2007 14:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-568</guid>
		<description>&lt;p&gt;Error in table:
Performance     High    Medium      Low
must be
Performance     High    Low       Medium&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Error in table:<br />
Performance     High    Medium      Low<br />
must be<br />
Performance     High    Low       Medium</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Orr</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-#comment-564</link>
		<dc:creator>Nicholas Orr</dc:creator>
		<pubDate>Sun, 24 Jun 2007 08:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-564</guid>
		<description>&lt;p&gt;I thought that. You could chroot everyone yeah? One host I went with did this. that effectively allows multiple apache process&#039; yeah?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I thought that. You could chroot everyone yeah? One host I went with did this. that effectively allows multiple apache process&#8217; yeah?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scotty</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-#comment-565</link>
		<dc:creator>scotty</dc:creator>
		<pubDate>Sun, 24 Jun 2007 07:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-565</guid>
		<description>&lt;p&gt;That sounds like mpm-itk which Nicholas has mentioned before...&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>That sounds like mpm-itk which Nicholas has mentioned before&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-1#comment-566</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 23 Jun 2007 20:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-566</guid>
		<description>&lt;p&gt;At the hosting ISP we work at, we use &lt;code&gt;mod_php&lt;/code&gt; on shared hosting and it&#039;s highly secure. We came up with a way where each user has their own apache instance and anything, whether it be &lt;code&gt;mod_php&lt;/code&gt;, server-parsed, etc, are executed as their own unique uid rather than &quot;nobody&quot; or anything shared. I can&#039;t comment on it more, though!!&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>At the hosting ISP we work at, we use <code>mod_php</code> on shared hosting and it&#8217;s highly secure. We came up with a way where each user has their own apache instance and anything, whether it be <code>mod_php</code>, server-parsed, etc, are executed as their own unique uid rather than &#8220;nobody&#8221; or anything shared. I can&#8217;t comment on it more, though!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: svcommunity</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-1#comment-563</link>
		<dc:creator>svcommunity</dc:creator>
		<pubDate>Tue, 29 May 2007 17:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-563</guid>
		<description>&lt;p&gt;Nice Article, i&#039;ve always used mod_php with safe mode ON and never had any problems, i guess im lucky with the scripts i choose to use.&lt;/p&gt;
&lt;p&gt;Im going to read the &quot;fight back against those 200Gb oversold plans&quot; it looks interesting :p&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Nice Article, i&#8217;ve always used mod_php with safe mode ON and never had any problems, i guess im lucky with the scripts i choose to use.</p>
<p>Im going to read the &#8220;fight back against those 200Gb oversold plans&#8221; it looks interesting :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schraalhans Keukenmeester</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-1#comment-562</link>
		<dc:creator>Schraalhans Keukenmeester</dc:creator>
		<pubDate>Sun, 27 May 2007 12:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-562</guid>
		<description>&lt;p&gt;Another weak spot in many shared environments (using mod_php): the syscall related functions like exec(), passthru(), popen(), proc_open(). Rarely are these excluded from use in php.ini, and especially if safe_mode + safe_mode_exec_dir aren&#039;t set this opens up a can of worms. I am not even sure the backtick operator can be disabled at all if safe_mode=off. (it might though)&lt;/p&gt;
&lt;p&gt;To hide sensitive data one might resort to including or fopen-ing remote files (if ISP allows it) which only are served from the proper ip, referer, request_uri etc. Even that&#039;s not secure, since all those details can be spoofed in the header, but combined with a strict firewall ruleset on the second host (e.g. a local machine) most can be kept out. Better than returning an error if the request doesn&#039;t match the criteria would be to return a version of the requested files containing bogus values.&lt;/p&gt;
&lt;p&gt;In short: php_mod is not really suited for secure shared hosting. Period.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Another weak spot in many shared environments (using mod_php): the syscall related functions like exec(), passthru(), popen(), proc_open(). Rarely are these excluded from use in php.ini, and especially if safe_mode + safe_mode_exec_dir aren&#8217;t set this opens up a can of worms. I am not even sure the backtick operator can be disabled at all if safe_mode=off. (it might though)</p>
<p>To hide sensitive data one might resort to including or fopen-ing remote files (if ISP allows it) which only are served from the proper ip, referer, request_uri etc. Even that&#8217;s not secure, since all those details can be spoofed in the header, but combined with a strict firewall ruleset on the second host (e.g. a local machine) most can be kept out. Better than returning an error if the request doesn&#8217;t match the criteria would be to return a version of the requested files containing bogus values.</p>
<p>In short: php_mod is not really suited for secure shared hosting. Period.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Orr</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-#comment-559</link>
		<dc:creator>Nicholas Orr</dc:creator>
		<pubDate>Fri, 13 Apr 2007 01:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-559</guid>
		<description>&lt;p&gt;Umm.&lt;/p&gt;
&lt;p&gt;I should have previewed my post, information got chopped off do to angle brackets...&lt;/p&gt;
&lt;p&gt;Just to clarify:&lt;/p&gt;
&lt;p&gt;I run each vhost as apache:apache(username)  (ie apachenorr)&lt;/p&gt;
&lt;p&gt;I think everything else makes sense now that the group I run as is not common :)&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Umm.</p>
<p>I should have previewed my post, information got chopped off do to angle brackets&#8230;</p>
<p>Just to clarify:</p>
<p>I run each vhost as apache:apache(username)  (ie apachenorr)</p>
<p>I think everything else makes sense now that the group I run as is not common :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scotty</title>
		<link>http://hostingfu.com/article/running-php-on-shared-hosting/comment-page-#comment-560</link>
		<dc:creator>scotty</dc:creator>
		<pubDate>Thu, 12 Apr 2007 23:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://hostingfu.com/?p=98#comment-560</guid>
		<description>&lt;p&gt;Nicholas -- sorry I actually did not know anything about mpm-itk. I just had a look and think it is a good solution. Obviously it has a few issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Apache running as root before vhost is determined.&lt;/li&gt;
&lt;li&gt;Apache forks to execute each request, and the process is not reused.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Neither are big issues I think in shared hosting environment. I&#039;ll take a closer look at this stuff.&lt;/p&gt;
&lt;p&gt;With regular prefork MPM + mod_php, another user on the same server is running PHP scripts with the same privilege as you. So for every file you enable Apache to read, someone else can read it as well on the same server. chgrp apache + chmod g+w is not that useful as someone else&#039;s script is still running with GID=apache. Explicitly crippling PHP (safe mode + friends) is probably the only secure way for prefork MPM + mod_php.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Nicholas &#8212; sorry I actually did not know anything about mpm-itk. I just had a look and think it is a good solution. Obviously it has a few issues:</p>
<ol>
<li>Apache running as root before vhost is determined.</li>
<li>Apache forks to execute each request, and the process is not reused.</li>
</ol>
<p>Neither are big issues I think in shared hosting environment. I&#8217;ll take a closer look at this stuff.</p>
<p>With regular prefork MPM + mod_php, another user on the same server is running PHP scripts with the same privilege as you. So for every file you enable Apache to read, someone else can read it as well on the same server. chgrp apache + chmod g+w is not that useful as someone else&#8217;s script is still running with GID=apache. Explicitly crippling PHP (safe mode + friends) is probably the only secure way for prefork MPM + mod_php.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
