<?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>tom's blog &#187; apache2</title>
	<atom:link href="http://tom.knaupp.com/tag/apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://tom.knaupp.com</link>
	<description>free software, security and a bunch of my strange thoughts</description>
	<lastBuildDate>Fri, 21 Jan 2011 00:13:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installation of suPHP using Apache2 &amp; PHP5</title>
		<link>http://tom.knaupp.com/2007/03/31/installation-of-suphp-using-apache2-php5/</link>
		<comments>http://tom.knaupp.com/2007/03/31/installation-of-suphp-using-apache2-php5/#comments</comments>
		<pubDate>Sat, 31 Mar 2007 19:13:44 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=32</guid>
		<description><![CDATA[suPHP is a nice tool for executing PHP scripts with the permissions of their owners. It&#8217;s comparable to suexec (which is for perl scripts). When using this tool, you don&#8217;t need SafeMode any longer, etc&#8230; Tested on: SuSE 10.0, openSuSE 10.1 Prerequisites: php5-fastcgi, autoconf, gcc in openSuSE 10.1, I had to (soft)link some files: ln [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.suphp.org/" title="suPHP Homepage" target="_blank">suPHP</a> is a nice tool for executing PHP scripts with the permissions of their owners. It&#8217;s comparable to <a href="http://de.wikipedia.org/wiki/Mod_suexec" title="Wikipedia Link" target="_blank">suexec</a> (which is for perl scripts). When using this tool, you don&#8217;t need SafeMode any longer, etc&#8230;<br />
<br />
Tested on: SuSE 10.0, openSuSE 10.1<br />
Prerequisites: <strong>php5-fastcgi</strong>, autoconf, gcc<br />
<br />
in openSuSE 10.1, I had to (soft)link some files:<br />
<code>ln -s /usr/include/apr-1/* /usr/include/apache2</code><br />
<br />
configure in openSuSE 10.1:<br />
<code>./configure --with-apxs=/usr/sbin/apxs2 --with-php=/usr/bin/php5 \<br />
--with-logfile=/var/log/apache2/suphp.log --with-min-uid=30 \<br />
--with-min-gid=30 --with-apache-user=wwwrun \<br />
--with-apr=/usr/bin/apr-1-config --with-setid-mode=owner \<br />
--prefix=/usr --sysconfdir=/etc</code><br />
<br />
configure in SuSE 10.0:<br />
<code>./configure --with-apxs=/usr/sbin/apxs2 --with-php=/usr/bin/php5 \<br />
--with-logfile=/var/log/apache2/suphp.log --with-min-uid=30 \<br />
--with-min -gid=30 --with-apache-user=wwwrun \<br />
--with-apr=/usr/bin/apr-config --with-setid-mode=owner \<br />
--prefix=/usr --sysconfdir=/etc</code><br />
<br />
After that, usual way:<br />
<code>make; make install</code><br />
<br />
Check your configuration at /etc/suphp.conf. For me, it looks someway like this:<br />
<code>[global]<br />
logfile=/var/log/apache2/suphp.log<br />
loglevel=info<br />
webserver_user=wwwrun<br />
docroot=/srv/www/htdocs<br />
allow_file_group_writeable=false<br />
allow_file_others_writeable=false<br />
allow_directory_group_writeable=false<br />
allow_directory_others_writeable=false<br />
check_vhost_docroot=false<br />
errors_to_browser=false<br />
env_path=/bin:/usr/bin<br />
umask=0022<br />
min_uid=30<br />
min_gid=30<br />
;<br />
[handlers]<br />
;Handler for php-scripts<br />
x-httpd-php=php:<strong>/srv/www/cgi-bin/php5</strong><br />
;Handler for CGI-scripts<br />
x-suphp-cgi=execute:!self</code><br />
<br />
Add suPHP module to your apache config (/etc/sysconfig/apache2):<br />
<code>APACHE_MODULES="access .... php5 suphp"</code><br />
<br />
Create a new file to tell apache to use suPHP:<br />
/etc/apache2/httpd.conf.local<br />
<code>&lt;Directory "/srv/www/htdocs"&gt;<br />
php_admin_value engine off<br />
suPHP_Engine on<br />
AddHandler x-httpd-php .php .php3 .php4 .php5<br />
suPHP_AddHandler x-httpd-php<br />
&lt;/Directory&gt;</code><br />
<br />
Include that in your apache configuration (/etc/sysconfig/apache2):<br />
<code>APACHE_CONF_INCLUDE_FILES="httpd.conf.local"</code><br />
<br />
After restarting apache, it should be done  ; )</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2007/03/31/installation-of-suphp-using-apache2-php5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

