<?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; suPHP</title>
	<atom:link href="http://tom.knaupp.com/tag/suphp/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>Tue, 23 Mar 2010 22:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>suPHP 0.6.3 released / security fix</title>
		<link>http://tom.knaupp.com/2008/04/11/suphp-063-released-security-fix/</link>
		<comments>http://tom.knaupp.com/2008/04/11/suphp-063-released-security-fix/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 16:17:13 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=85</guid>
		<description><![CDATA[The latestet release of suPHP (v.0.6.3) has been published on Mar 30th, 2008. It&#8217;s a security fix release eliminating two symlink race-conditions. Users are strongly advised to update immediately.]]></description>
			<content:encoded><![CDATA[<p>The latestet release of <a href="http://www.suphp.org/" target="_blank">suPHP</a> (v.0.6.3) has been published on Mar 30th, 2008.<br />
<br />
It&#8217;s a <a href="http://www.suphp.org/download/suphp-0.6.3.tar.gz">security fix release</a> eliminating two symlink race-conditions.<br />
Users are strongly advised to update immediately.</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2008/04/11/suphp-063-released-security-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xt:Commerce &amp; suPHP</title>
		<link>http://tom.knaupp.com/2007/04/02/xtcommerce-suphp/</link>
		<comments>http://tom.knaupp.com/2007/04/02/xtcommerce-suphp/#comments</comments>
		<pubDate>Mon, 02 Apr 2007 15:23:45 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[suPHP]]></category>
		<category><![CDATA[xt:Commerce]]></category>

		<guid isPermaLink="false">http://tom.knaupp.com/?p=33</guid>
		<description><![CDATA[After installing suPHP a few days ago, I had the first problem with a xt:Commerce installation. That&#8217;s what happened on a SuSE 10.0 system: When trying to access the pages, it stayed blank and there were some wierd errors in the apache logfile: [Mon Apr 02 16:44:48 2007] [error] [client x.x.x.x] PHP Fatal error: %v%v() [...]]]></description>
			<content:encoded><![CDATA[<p>After installing suPHP <a href="http://tom.knaupp.com/?p=32" title="suPHP, installation mini docu">a few days ago</a>, I had the first problem with a <a href="http://www.xt-commerce.com/" title="openSource web shop" target="_blank">xt:Commerce</a> installation. That&#8217;s what happened on a SuSE 10.0 system:<br />
<br />
When trying to access the pages, it stayed blank and there were some wierd errors in the apache logfile:<br />
<code>[Mon Apr 02 16:44:48 2007] [error] [client x.x.x.x] PHP Fatal error:  %v%v() [&lt;a href='function.require'&gt;function.require&lt;/a&gt;]: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='/usr/share/php5') in /path/to/user/html/includes/application_top.php on line 57</code><br />
<br />
Reason was found quite quick:<br />
The include path only had the default path and didn&#8217;t include the webroots any longer : (<br />
<br />
Solution: change config in /etc/php5/cli/php.ini .<br />
From:<br />
<code>include_path = "/usr/share/php5"</code><br />
To:<br />
<code>include_path = ".:/usr/share/php5"</code><br />
<br />
. = Homedir of webroot<br />
: = next path</p>
]]></content:encoded>
			<wfw:commentRss>http://tom.knaupp.com/2007/04/02/xtcommerce-suphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
