<?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: Installation And Configuration of Mod_suPHP on Plesk (CentOS)</title>
	<atom:link href="http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 00:10:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Milind</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-298</link>
		<dc:creator>Milind</dc:creator>
		<pubDate>Tue, 08 Jun 2010 09:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-298</guid>
		<description>Which apache version you are using... also let us know the error you are getting so that we can help you in a better way.</description>
		<content:encoded><![CDATA[<p>Which apache version you are using&#8230; also let us know the error you are getting so that we can help you in a better way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roxanne</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-297</link>
		<dc:creator>Roxanne</dc:creator>
		<pubDate>Tue, 08 Jun 2010 03:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-297</guid>
		<description>I&#039;m at the create .conf file but when I add this file it doesn&#039;t work. It seems the LoadModule command isn&#039;t working. I&#039;m using Plesk 9.0.1

Any suggestions?</description>
		<content:encoded><![CDATA[<p>I&#8217;m at the create .conf file but when I add this file it doesn&#8217;t work. It seems the LoadModule command isn&#8217;t working. I&#8217;m using Plesk 9.0.1</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: onur</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-269</link>
		<dc:creator>onur</dc:creator>
		<pubDate>Mon, 31 May 2010 22:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-269</guid>
		<description>I started with the www.grafxsoftware.com configuration but then thought it is not nice to configure every domain every time with new settings and when you want to change a php.ini setting go and change all of them bla bla. this solution seemed nice but with the exact same configuration my php script returned a weird 500 internal server error?! i&#039;ve never seen this since the cgi days. guess this has to do something with the php running as cgi.</description>
		<content:encoded><![CDATA[<p>I started with the <a href="http://www.grafxsoftware.com" rel="nofollow">http://www.grafxsoftware.com</a> configuration but then thought it is not nice to configure every domain every time with new settings and when you want to change a php.ini setting go and change all of them bla bla. this solution seemed nice but with the exact same configuration my php script returned a weird 500 internal server error?! i&#8217;ve never seen this since the cgi days. guess this has to do something with the php running as cgi.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose A</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-250</link>
		<dc:creator>Jose A</dc:creator>
		<pubDate>Tue, 25 May 2010 20:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-250</guid>
		<description>@ Valics Lehei; with http://www.grafxsoftware.com/faq.php/HOW-TO-Setup-a-PLESK-Dedicated-Server/1/4/ not work exec in whoami.php, but test.txt is created and owned user is correct. Why not work exec?;

&lt;?php
echo &quot;Output of the &#039;whoami&#039; command:\n&quot;;
echo exec(&#039;/usr/bin/whoami&#039;);

echo &#039;&#039;;

system(&#039;id&#039;);

$f = fopen (&quot;test.txt&quot;, &quot;a&quot;);
fputs($f, &quot;it&#039;s working !&quot;);
fclose($f);

phpinfo();
?&gt;</description>
		<content:encoded><![CDATA[<p>@ Valics Lehei; with <a href="http://www.grafxsoftware.com/faq.php/HOW-TO-Setup-a-PLESK-Dedicated-Server/1/4/" rel="nofollow">http://www.grafxsoftware.com/faq.php/HOW-TO-Setup-a-PLESK-Dedicated-Server/1/4/</a> not work exec in whoami.php, but test.txt is created and owned user is correct. Why not work exec?;</p>
<p>&lt;?php<br />
echo &quot;Output of the &#039;whoami&#039; command:\n&#8221;;<br />
echo exec(&#8216;/usr/bin/whoami&#8217;);</p>
<p>echo &#8221;;</p>
<p>system(&#8216;id&#8217;);</p>
<p>$f = fopen (&#8220;test.txt&#8221;, &#8220;a&#8221;);<br />
fputs($f, &#8220;it&#8217;s working !&#8221;);<br />
fclose($f);</p>
<p>phpinfo();<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valics Lehel</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-245</link>
		<dc:creator>Valics Lehel</dc:creator>
		<pubDate>Tue, 25 May 2010 04:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-245</guid>
		<description>Try this one, will work.

&lt;a href=&quot;http://eitwebguru.com&quot; rel=&quot;nofollow&quot;&gt;www.grafxsoftware.com/faq.php/HOW-TO-Setup-a-PLESK-Dedicated-Server/1/4/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Try this one, will work.</p>
<p><a href="http://eitwebguru.com" rel="nofollow">http://www.grafxsoftware.com/faq.php/HOW-TO-Setup-a-PLESK-Dedicated-Server/1/4/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose A</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-243</link>
		<dc:creator>Jose A</dc:creator>
		<pubDate>Mon, 24 May 2010 22:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-243</guid>
		<description>Hi,

I have Centos 5 + Plesk 9.0.1 + mod_suphp 0.7.1-1, my /etc/httpd/conf.d/mod_suphp.conf ;


LoadModule suphp_module modules/mod_suphp.so

php_admin_value engine off
suPHP_Engine On
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php


my /etc/suphp.conf ;

[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/var/www/vhosts

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false

;Send minor error messages to browser
errors_to_browser=true

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0022

; Minimum UID
min_uid=30

; Minimum GID
min_gid=30

; Use correct permissions for mod_userdir sites
;handle_userdir=true

[handlers]
;Handler for php-scripts
x-httpd-php=&quot;php:/usr/bin/php-cgi&quot;

;Handler for CGI-scripts
x-suphp-cgi=&quot;execute:!self&quot;


I restart Apache (service httpd restart) and phpinfo() prints;
....
Loaded Modules: ... mod_suphp ....
....

But if execute mydomain.com/whoami.php;

&lt;?php
echo &quot;Output of the &#039;whoami&#039; command:\n&quot;;
echo exec(&#039;/usr/bin/whoami&#039;);
?&gt;

print apache user;

Output of the &#039;whoami&#039; command:
apache

@TooLate; I tried create /var/www/vhosts/mydomain.com/conf/vhost.conf;

php_admin_flag engine Off
suPHP_Engine On
suPHP_UserGroup myvhostuser psacln
AddHandler x-httpd-php .php5 .php
suPHP_AddHandler x-httpd-php

But whoami.php print the same.

Do you know where is the problem? Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have Centos 5 + Plesk 9.0.1 + mod_suphp 0.7.1-1, my /etc/httpd/conf.d/mod_suphp.conf ;</p>
<p>LoadModule suphp_module modules/mod_suphp.so</p>
<p>php_admin_value engine off<br />
suPHP_Engine On<br />
AddHandler x-httpd-php .php .php3 .php4 .php5<br />
suPHP_AddHandler x-httpd-php</p>
<p>my /etc/suphp.conf ;</p>
<p>[global]<br />
;Path to logfile<br />
logfile=/var/log/suphp.log</p>
<p>;Loglevel<br />
loglevel=info</p>
<p>;User Apache is running as<br />
webserver_user=apache</p>
<p>;Path all scripts have to be in<br />
docroot=/var/www/vhosts</p>
<p>;Path to chroot() to before executing script<br />
;chroot=/mychroot</p>
<p>; Security options<br />
allow_file_group_writeable=false<br />
allow_file_others_writeable=false<br />
allow_directory_group_writeable=false<br />
allow_directory_others_writeable=false</p>
<p>;Check wheter script is within DOCUMENT_ROOT<br />
check_vhost_docroot=false</p>
<p>;Send minor error messages to browser<br />
errors_to_browser=true</p>
<p>;PATH environment variable<br />
env_path=/bin:/usr/bin</p>
<p>;Umask to set, specify in octal notation<br />
umask=0022</p>
<p>; Minimum UID<br />
min_uid=30</p>
<p>; Minimum GID<br />
min_gid=30</p>
<p>; Use correct permissions for mod_userdir sites<br />
;handle_userdir=true</p>
<p>[handlers]<br />
;Handler for php-scripts<br />
x-httpd-php=&#8221;php:/usr/bin/php-cgi&#8221;</p>
<p>;Handler for CGI-scripts<br />
x-suphp-cgi=&#8221;execute:!self&#8221;</p>
<p>I restart Apache (service httpd restart) and phpinfo() prints;<br />
&#8230;.<br />
Loaded Modules: &#8230; mod_suphp &#8230;.<br />
&#8230;.</p>
<p>But if execute mydomain.com/whoami.php;</p>
<p>&lt;?php<br />
echo &quot;Output of the &#039;whoami&#039; command:\n&#8221;;<br />
echo exec(&#8216;/usr/bin/whoami&#8217;);<br />
?&gt;</p>
<p>print apache user;</p>
<p>Output of the &#8216;whoami&#8217; command:<br />
apache</p>
<p>@TooLate; I tried create /var/www/vhosts/mydomain.com/conf/vhost.conf;</p>
<p>php_admin_flag engine Off<br />
suPHP_Engine On<br />
suPHP_UserGroup myvhostuser psacln<br />
AddHandler x-httpd-php .php5 .php<br />
suPHP_AddHandler x-httpd-php</p>
<p>But whoami.php print the same.</p>
<p>Do you know where is the problem? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-134</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 20 Apr 2010 10:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-134</guid>
		<description>thanks for the info but we have tested the above post on Plesk 8.6 and it worked without any issues.</description>
		<content:encoded><![CDATA[<p>thanks for the info but we have tested the above post on Plesk 8.6 and it worked without any issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TooLate</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-133</link>
		<dc:creator>TooLate</dc:creator>
		<pubDate>Mon, 19 Apr 2010 20:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-133</guid>
		<description>For me the config doesn&#039;t work server wide. 

My experience is that with Plesk 8.6 and 9.3 you have to also create a vhosts.conf file for each domain. This file goes in the domains conf directory and looks similar to this: 



    php_admin_flag engine Off
    suPHP_Engine On
    suPHP_UserGroup clientname psacln
    AddHandler x-httpd-php .php5 .php
    suPHP_AddHandler x-httpd-php



Note the suPHP_UserGroup is now required because the mod_suphp from ART is compiled with either &#039;force&#039; or &#039;paranoid&#039;.</description>
		<content:encoded><![CDATA[<p>For me the config doesn&#8217;t work server wide. </p>
<p>My experience is that with Plesk 8.6 and 9.3 you have to also create a vhosts.conf file for each domain. This file goes in the domains conf directory and looks similar to this: </p>
<p>    php_admin_flag engine Off<br />
    suPHP_Engine On<br />
    suPHP_UserGroup clientname psacln<br />
    AddHandler x-httpd-php .php5 .php<br />
    suPHP_AddHandler x-httpd-php</p>
<p>Note the suPHP_UserGroup is now required because the mod_suphp from ART is compiled with either &#8216;force&#8217; or &#8216;paranoid&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-26</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 09 Nov 2009 22:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-26</guid>
		<description>hi thanks for the info but the latest version of apache already has following due to which it doesn&#039;t need to be added separately.
==
Include “/etc/httpd/conf.d/*.conf”
==

Still thanks for the info it will definitely help other users.

-Admin</description>
		<content:encoded><![CDATA[<p>hi thanks for the info but the latest version of apache already has following due to which it doesn&#8217;t need to be added separately.<br />
==<br />
Include “/etc/httpd/conf.d/*.conf”<br />
==</p>
<p>Still thanks for the info it will definitely help other users.</p>
<p>-Admin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/comment-page-1/#comment-25</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 05 Nov 2009 17:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://eitwebguru.com/?p=32#comment-25</guid>
		<description>Hi, thanks for the instructions however I think you forgot a key step... After creating the suphp.conf file in /etc/httpd/conf.d/ I had to add an include line to httpd.conf for it to be read:

Include &quot;/etc/httpd/conf.d/suphp.conf&quot;

Cheers</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the instructions however I think you forgot a key step&#8230; After creating the suphp.conf file in /etc/httpd/conf.d/ I had to add an include line to httpd.conf for it to be read:</p>
<p>Include &#8220;/etc/httpd/conf.d/suphp.conf&#8221;</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>

