<?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>eITWebguru &#187; Install suPHP</title>
	<atom:link href="http://eitwebguru.com/tag/install-suphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://eitwebguru.com</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 05:48:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Installation And Configuration of Mod_suPHP on Plesk (CentOS)</title>
		<link>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/</link>
		<comments>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 17:17:21 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk For Linux]]></category>
		<category><![CDATA[enable suPHP on Plesk]]></category>
		<category><![CDATA[install mod_suphp]]></category>
		<category><![CDATA[Install suPHP]]></category>
		<category><![CDATA[suPHP on CentOS]]></category>
		<category><![CDATA[suPHP Plesk]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=32</guid>
		<description><![CDATA[Introduction: Whenever PHP runs as an Apache Module it get executes as &#8220;user/group&#8221; of the web server which is usually &#8220;nobody&#8221; or &#8220;apache&#8221;. SuExec is a mechanism supplied with Apache which allows executing CGI scripts as the user to which they belongs to, rather than Apache’s user. This improves security in possibilities where multiple mutually [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><strong><span style="font-family: Verdana; font-size: small;">Introduction:</span></strong></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Whenever PHP runs as an Apache Module it get executes as &#8220;user/group&#8221; of the web server which is usually &#8220;nobody&#8221; or &#8220;apache&#8221;.  SuExec is a mechanism supplied with Apache which allows executing CGI scripts as the user to which they belongs to, rather than Apache’s user. This improves security in possibilities where multiple mutually distrusting users can put CGI content on the server and these scripts are executed as the user that created them. If user &#8220;admin&#8221; uploaded a PHP OR CGI script, you would see it was &#8220;admin&#8221; running the script when looking at the running processes on your server? This also provides an additional layer of security where script permissions can’t be set to 777 (read/write/execute at user/group/world level).</span></p>
<p><span id="more-32"></span></p>
<p><strong><span style="font-family: Verdana; font-size: small;">Installation:</span></strong></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">**Make sure yum is installed on the server as it will help to install the dependencies.</span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">1) To get the latest version of mod_suphp RPM enable the Atomic Repository for Yum. This can be done using Following command</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 25px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong># wget -q -O - http://eitwebguru.com/scripts/atomic |sh </strong></pre>
<p align="justify"><span style="font-family: Verdana; font-size: small;">2) After this mod_suPHP can be installed using command &#8220;yum install mod_php&#8221;</span></p>
<p><strong><strong><span style="font-family: Verdana; font-size: small;">Configuration:</span></strong></strong></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">Once mod_suphp is installed, you will have to configure it with Apache.</span><strong> </strong></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">1) First you will have to create a suphp.conf file in /etc/httpd/conf.d/ Directory and Paste the following code</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 150px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><strong>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

</strong></strong></pre>
<p align="justify"><span style="font-family: Verdana; font-size: small;">2) Restart Apache Service using command <strong><strong>&#8220;service httpd restart&#8221;</strong></strong></span></p>
<p align="justify"><span style="font-family: Verdana; font-size: small;">3) Now you will have to creae suphp configuration file. So, create a new file in <strong><strong>/etc</strong></strong> directory named <strong><strong>&#8220;suphp.conf&#8221; </strong></strong>(rename<strong><strong> </strong></strong>the existing file and create a new one) and add following lines in it:</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 175px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><strong><strong>[global]
logfile=/var/log/suphp.log
loglevel=info
webserver_user=apache
docroot=/var/www/vhosts
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
check_vhost_docroot=false
errors_to_browser=false
env_path=/bin:/usr/bin
umask=0022
min_uid=30
min_gid=30

[handlers]
x-httpd-php=php:/usr/bin/php-cgi
x-suphp-cgi=execute:!self
</strong></strong></strong></pre>
<p align="justify">
<p align="justify"><span style="font-family: Verdana; font-size: small;">4) Restart Apache once more i.e. <strong><strong><strong>&#8220;service httpd restart&#8221;</strong></strong></strong></span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/installation-and-configuration-of-mod_suphp-on-plesk-centos/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

