<?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; Service</title>
	<atom:link href="http://www.tucsonconsulting.com/category/software/service/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>Configure CentOS Firewall From Command Line</title>
		<link>http://www.tucsonconsulting.com/network/configure-centos-firewall-from-command-line/</link>
		<comments>http://www.tucsonconsulting.com/network/configure-centos-firewall-from-command-line/#comments</comments>
		<pubDate>Sun, 24 Jun 2007 23:08:07 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/uncategorized/configure-centos-firewall-from-command-line/</guid>
		<description><![CDATA[Run Lokkit Program to Configure Firewall
lokkit
Add port 902 to communicate with VMWare service
]]></description>
			<content:encoded><![CDATA[<p><strong>Run Lokkit Program to Configure Firewall</strong><br />
lokkit</p>
<p>Add port 902 to communicate with VMWare service</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/network/configure-centos-firewall-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore MySQL Database</title>
		<link>http://www.tucsonconsulting.com/software/service/database/mysql/restore-mysql-database/</link>
		<comments>http://www.tucsonconsulting.com/software/service/database/mysql/restore-mysql-database/#comments</comments>
		<pubDate>Sat, 26 May 2007 15:34:47 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/service/database/mysql/restore-mysql-database/</guid>
		<description><![CDATA[Quick Way to Restore a MySQL Databse
mysql -p &#60;database&#62; &#60; &#60;dump file&#62; 
]]></description>
			<content:encoded><![CDATA[<p><strong>Quick Way to Restore a MySQL Databse</strong><br />
mysql -p &lt;database&gt; &lt; &lt;dump file&gt; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/service/database/mysql/restore-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Ruby 1.8.5, Rails, FastCGI on OpenBSD 4.1</title>
		<link>http://www.tucsonconsulting.com/software/language/ruby/install-ruby-185-on-openbsd-41/</link>
		<comments>http://www.tucsonconsulting.com/software/language/ruby/install-ruby-185-on-openbsd-41/#comments</comments>
		<pubDate>Thu, 24 May 2007 03:26:57 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[4.1]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/language/ruby/install-ruby-185-on-openbsd-41/</guid>
		<description><![CDATA[Install Ruby
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/ruby-1.8.5p6.tgz
Install Gems
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/ruby-gems-0.9.0.tgz
Install Rails And FCGI
gem install rails
gem install fcgi
]]></description>
			<content:encoded><![CDATA[<p><strong>Install Ruby</strong><br />
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/ruby-1.8.5p6.tgz</p>
<p><strong>Install Gems</strong><br />
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/ruby-gems-0.9.0.tgz</p>
<p><strong>Install Rails And FCGI</strong><br />
gem install rails<br />
gem install fcgi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/language/ruby/install-ruby-185-on-openbsd-41/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install MySQL 5.0 on OpenBSD 4.1</title>
		<link>http://www.tucsonconsulting.com/software/service/database/mysql/install-mysql-50-on-openbsd-41/</link>
		<comments>http://www.tucsonconsulting.com/software/service/database/mysql/install-mysql-50-on-openbsd-41/#comments</comments>
		<pubDate>Thu, 24 May 2007 03:13:52 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[4.1]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/uncategorized/install-mysql-50-on-openbsd-41/</guid>
		<description><![CDATA[Install Package
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/mysql-server-5.0.33.tgz
Install Default Database
/usr/local/bin/mysql_install_db
Start Service And Set Root Password
/usr/local/bin/mysqld_safe &#038;
/usr/local/bin/mysqladmin -u root password &#8216;&#60;password&#62;&#8217;
Start Daemon on Server Startup, Add to /etc/rc.local
if [ -x /usr/local/bin/mysqld_safe ]; then
&#160;&#160;echo &#8216;MySQL&#8217;
&#160;&#160;/usr/local/bin/mysqld_safe &#038;
fi
]]></description>
			<content:encoded><![CDATA[<p><strong>Install Package</strong><br />
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/mysql-server-5.0.33.tgz</p>
<p><strong>Install Default Database</strong><br />
/usr/local/bin/mysql_install_db</p>
<p><strong>Start Service And Set Root Password</strong><br />
/usr/local/bin/mysqld_safe &#038;<br />
/usr/local/bin/mysqladmin -u root password &#8216;&lt;password&gt;&#8217;</p>
<p><strong>Start Daemon on Server Startup, Add to /etc/rc.local</strong><br />
if [ -x /usr/local/bin/mysqld_safe ]; then<br />
&nbsp;&nbsp;echo &#8216;MySQL&#8217;<br />
&nbsp;&nbsp;/usr/local/bin/mysqld_safe &#038;<br />
fi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/service/database/mysql/install-mysql-50-on-openbsd-41/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Lighttp 1.4 w/ FastCGI on OpenBSD 4.1</title>
		<link>http://www.tucsonconsulting.com/software/language/ruby/install/</link>
		<comments>http://www.tucsonconsulting.com/software/language/ruby/install/#comments</comments>
		<pubDate>Thu, 24 May 2007 03:05:44 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[4.1]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[Lighttp]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/service/lighttp/install/</guid>
		<description><![CDATA[Install Packages
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/fcgi-2.4.0p2.tgz
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/lighttpd-1.4.13p2-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.1/packages/i386/fcgi-2.4.0p2.tgz<br />
pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.1/packages/i386/lighttpd-1.4.13p2-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/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup MySQL Database</title>
		<link>http://www.tucsonconsulting.com/software/service/database/mysql/backup-mysql-database/</link>
		<comments>http://www.tucsonconsulting.com/software/service/database/mysql/backup-mysql-database/#comments</comments>
		<pubDate>Sun, 06 May 2007 19:53:16 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/service/database/mysql/backup-mysql-database/</guid>
		<description><![CDATA[Quick Way to Backup a MySQL Databse
mysqldump &#8212;opt &#8212;user &#60;username&#62; &#8212;password=&#34;&#60;password&#62;&#34;  &#34;&#60;database&#62;&#34; > &#60;output&#62;.dmp
]]></description>
			<content:encoded><![CDATA[<p><strong>Quick Way to Backup a MySQL Databse</strong><br />
mysqldump &#8212;opt &#8212;user &lt;username&gt; &#8212;password=&quot;&lt;password&gt;&quot;  &quot;&lt;database&gt;&quot; > &lt;output&gt;.dmp</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/service/database/mysql/backup-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install/Configure VMWare Server on CentOS</title>
		<link>http://www.tucsonconsulting.com/software/operating-system/linux/centos/installconfigure-vmware-on-centos/</link>
		<comments>http://www.tucsonconsulting.com/software/operating-system/linux/centos/installconfigure-vmware-on-centos/#comments</comments>
		<pubDate>Fri, 04 May 2007 23:41:37 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/operating-system/linux/centos/installconfigure-vmware-on-centos/</guid>
		<description><![CDATA[Stop VM Servers
/etc/init.d/vmware stop
Install VMWare Package
rpm -Uhv /tmp/VMware-server-&#60;version&#62;.i386.rpm
Run Installation Script
vmware-config.pl
]]></description>
			<content:encoded><![CDATA[<p><strong>Stop VM Servers</strong><br />
/etc/init.d/vmware stop</p>
<p><strong>Install VMWare Package</strong><br />
rpm -Uhv /tmp/VMware-server-&lt;version&gt;.i386.rpm</p>
<p><strong>Run Installation Script</strong><br />
vmware-config.pl</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/software/operating-system/linux/centos/installconfigure-vmware-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>301 Redirect With Lighttp 1.4</title>
		<link>http://www.tucsonconsulting.com/network/internet/search-engine-optimization/301-redirect-with-lighttp/</link>
		<comments>http://www.tucsonconsulting.com/network/internet/search-engine-optimization/301-redirect-with-lighttp/#comments</comments>
		<pubDate>Thu, 03 May 2007 04:04:10 +0000</pubDate>
		<dc:creator>Chris Koehler</dc:creator>
				<category><![CDATA[Lighttp]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>

		<guid isPermaLink="false">http://www.tucsonconsulting.com/software/service/lighttp/301-redirect-with-lighttp/</guid>
		<description><![CDATA[Direct all clean traffic using an exact match on the host.
$HTTP["host"] == &#8220;www.&#60;example&#62;.com&#8221; {
&#160;&#160;&#160;server.document-root        = &#8220;/www/sites/&#60;example&#62;.com/www/&#8221;
}
Trap all traffic not directed to the main site (regex non-match), then filter remaining traffic headed to the correct domain with the wrong host (regex) and redirect to the main site.
$HTTP["host"] !~ &#8220;^(www&#124;mail)\.(&#60;example&#62;\.com)$&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Direct all clean traffic using an exact match on the host.</strong></p>
<p>$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 />
}</p>
<p><strong>Trap all traffic not directed to the main site (regex non-match), then filter remaining traffic headed to the correct domain with the wrong host (regex) and redirect to the main site.</strong></p>
<p>$HTTP["host"] !~ &#8220;^(www|mail)\.(&lt;example&gt;\.com)$&#8221; {<br />
&nbsp;&nbsp;&nbsp;$HTTP["host"] =~ &#8220;(^|.*\.)&lt;example&gt;\.com&#8221; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url.redirect = ( &#8220;^/(.*)&#8221; => &#8220;http://www.&lt;example&gt;.com/&#8221; )<br />
&nbsp;&nbsp;&nbsp;}<br />
}</p>
<blockquote><p>This is an effective defensive technique to guard against redundant content bombing in which a competitor submits URLs containing different hosts with the same domain to search engines making it appear as if the target site has several pages of identical content</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.tucsonconsulting.com/network/internet/search-engine-optimization/301-redirect-with-lighttp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
