<?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>Distributed Software Systems LLC &#187; PHP</title>
	<atom:link href="http://www.tucsonconsulting.com/category/software/language/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tucsonconsulting.com</link>
	<description>Software For Every Situation.</description>
	<lastBuildDate>Sun, 24 Jun 2007 23:20:51 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Install PHP 5.1 w/ FastCGI on OpenBSD 4.0</title>
		<link>http://www.tucsonconsulting.com/software/operating-system/unix/openbsd/40/install-php-51-w-fastcgi-on-openbsd-40/</link>
		<comments>http://www.tucsonconsulting.com/software/operating-system/unix/openbsd/40/install-php-51-w-fastcgi-on-openbsd-40/#comments</comments>
		<pubDate>Thu, 03 May 2007 00:56:55 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[4.0]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/uncategorized/install-php-51-w-fastcgi-on-openbsd-40/25</guid>
		<description><![CDATA[Download, Compile And Install Package
lynx -source &#8220;http://download.pureftpd.org/OpenBSD/misc/ports/php5.1-with-fastcgi-openbsd-4.0.tar.gz&#8221; > /tmp/php5.1-with-fastcgi-openbsd-4.0.tar.gz

Unfortunately, as of OpenBSD 4.0 there isn&#8217;t a standard package for PHP with FastCGI support.

cd /tmp
tar xzf /tmp/php5.1-with-fastcgi-openbsd-4.0.tar.gz
cd /tmp/php5 &#038;&#038; make install clean
&#8230;wait a long, long time&#8230;
Install Subsequent PHP Support Packages
pkg_add -v /usr/ports/packages/i386/all/php5-mysql-5.1.6.tgz
/usr/local/sbin/phpxs -a mysql
]]></description>
			<content:encoded><![CDATA[<p><strong>Download, Compile And Install Package</strong><br />
lynx -source &#8220;http://download.pureftpd.org/OpenBSD/misc/ports/php5.1-with-fastcgi-openbsd-4.0.tar.gz&#8221; > /tmp/php5.1-with-fastcgi-openbsd-4.0.tar.gz</p>
<blockquote><p>
Unfortunately, as of OpenBSD 4.0 there isn&#8217;t a standard package for PHP with FastCGI support.
</p></blockquote>
<p>cd /tmp<br />
tar xzf /tmp/php5.1-with-fastcgi-openbsd-4.0.tar.gz<br />
cd /tmp/php5 &#038;&#038; make install clean</p>
<p>&#8230;wait a long, long time&#8230;</p>
<p><strong>Install Subsequent PHP Support Packages</strong><br />
pkg_add -v /usr/ports/packages/i386/all/php5-mysql-5.1.6.tgz<br />
/usr/local/sbin/phpxs -a mysql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/operating-system/unix/openbsd/40/install-php-51-w-fastcgi-on-openbsd-40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Lighttp 1.4 w/ FastCGI on OpenBSD 4.0</title>
		<link>http://www.tucsonconsulting.com/software/language/ruby/install-lighttp-w-fastcgi-14-on-openbsd-40/</link>
		<comments>http://www.tucsonconsulting.com/software/language/ruby/install-lighttp-w-fastcgi-14-on-openbsd-40/#comments</comments>
		<pubDate>Thu, 03 May 2007 00:45:31 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[4.0]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[Lighttp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/service/lighttp/install-lighttp-w-fastcgi-14-on-openbsd-40/24</guid>
		<description><![CDATA[Install Packages
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/fcgi-2.4.0p1.tgz
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/lighttpd-1.4.11-mysql.tgz
Example /etc/lighttpd.conf For PHP
$HTTP["host"] == &#8220;www.&#60;example&#62;.com&#8221; {
&#160;&#160;&#160;server.document-root        = &#8220;/www/sites/&#60;example&#62;.com/www/&#8221;
&#160;&#160;&#160;index-file.names            = ( &#8220;index.php&#8221; )
&#160;&#160;&#160;server.error-handler-404	= &#8220;/index.php&#8221;
fastcgi.server = ( &#8220;.php&#8221; =>
&#160;&#160;&#160;( &#8220;localhost&#8221; =>
&#160;&#160;&#160;&#160;&#160;&#160;(
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#8221;socket&#8221; => &#8220;/tmp/php-fastcgi.socket&#8221;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#8221;bin-path&#8221; => &#8220;/usr/local/bin/php-fcgi&#8221;
&#160;&#160;&#160;&#160;&#160;&#160;)
&#160;&#160;&#160;)
)
}
Example /etc/lighttpd.conf For Ruby on Rails
$HTTP["host"] == &#8220;www.&#60;example&#62;.com&#8221; {
&#160;&#160;&#160;server.indexfiles [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install Packages</strong><br />
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/fcgi-2.4.0p1.tgz<br />
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/lighttpd-1.4.11-mysql.tgz</p>
<p><strong>Example /etc/lighttpd.conf For PHP</strong><br />
$HTTP["host"] == &#8220;www.&lt;example&gt;.com&#8221; {<br />
&nbsp;&nbsp;&nbsp;server.document-root        = &#8220;/www/sites/&lt;example&gt;.com/www/&#8221;<br />
&nbsp;&nbsp;&nbsp;index-file.names            = ( &#8220;index.php&#8221; )<br />
&nbsp;&nbsp;&nbsp;server.error-handler-404	= &#8220;/index.php&#8221;<br />
fastcgi.server = ( &#8220;.php&#8221; =><br />
&nbsp;&nbsp;&nbsp;( &#8220;localhost&#8221; =><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;socket&#8221; => &#8220;/tmp/php-fastcgi.socket&#8221;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;bin-path&#8221; => &#8220;/usr/local/bin/php-fcgi&#8221;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;&nbsp;)<br />
)<br />
}</p>
<p><strong>Example /etc/lighttpd.conf For Ruby on Rails</strong><br />
$HTTP["host"] == &#8220;www.&lt;example&gt;.com&#8221; {<br />
&nbsp;&nbsp;&nbsp;server.indexfiles = ( &#8220;index.html&#8221; )<br />
&nbsp;&nbsp;&nbsp;server.error-handler-404 = &#8220;/dispatch.fcgi&#8221;<br />
&nbsp;&nbsp;&nbsp;server.document-root = &#8220;/Rails/public&#8221;<br />
&nbsp;&nbsp;&nbsp;fastcgi.server =  (&#8221;.fcgi&#8221; => ( &#8220;&lt;example&gt;&#8221; =><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;( &#8220;min-procs&#8221; => 1,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;max-procs&#8221; => 5,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;socket&#8221; => &#8220;/tmp/rails-&lt;example&gt;.fastcgi&#8221;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;bin-path&#8221; => &#8220;/Rails/public/dispatch.fcgi&#8221;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#8221;bin-environment&#8221; => ( &#8220;RAILS_ENV&#8221; => &#8220;production&#8221; )<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;&nbsp;))<br />
}</p>
<p><strong>Start Daemon on Server Startup, Add to rc.local</strong><br />
if [ -x /usr/local/sbin/lighttpd ] ; then<br />
&nbsp;&nbsp;echo &#8216;Lighttp&#8217;<br />
&nbsp;&nbsp;/usr/local/sbin/lighttpd -f /etc/lighttpd.conf<br />
fi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/language/ruby/install-lighttp-w-fastcgi-14-on-openbsd-40/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
