<?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>OpenBSD and FreeBSD resources &#187; PHP</title>
	<atom:link href="http://purebsd.com/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://purebsd.com</link>
	<description></description>
	<lastBuildDate>Tue, 01 Jun 2010 06:01:11 +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>PHP and OpenBSD</title>
		<link>http://purebsd.com/php-and-openbsd.html</link>
		<comments>http://purebsd.com/php-and-openbsd.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 05:37:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://purebsd.com/?p=65</guid>
		<description><![CDATA[PHP (4.0.6) installation process I followed: Download the PHP source package: wget 'http://www.php.net:8000/distributions/php-4.0.6.tar.gz' Extract the sources: tar xvfz php-4.0.6.tar.gz And cd to the php-4.0.6 directory. Configure PHP: ./configure --with-apxs --with-mysql=/usr/local \ --with-config-file-path=/var/www/conf --disable-xml \ --disable-pear --enable-bcmath --enable-magic-quotes Leave out the --with-mysql=/usr/local option if you don&#8217;t want MySQL support or MySQL is not installed. Compile PHP: make &#62; /dev/null [...]]]></description>
			<content:encoded><![CDATA[<p>PHP (4.0.6) installation process I followed:</p>
<ol type="1">
<li>Download the PHP source package:
<p><code> wget 'http://www.php.net:8000/distributions/php-4.0.6.tar.gz'</code></li>
<li>Extract the sources:
<p><code> tar xvfz php-4.0.6.tar.gz</code></p>
<p>And <code>cd</code> to the <code>php-4.0.6</code> directory.</li>
<li>Configure PHP:
<p><code> ./configure --with-apxs --with-mysql=/usr/local \<br />
--with-config-file-path=/var/www/conf --disable-xml \<br />
--disable-pear --enable-bcmath --enable-magic-quotes<br />
</code><br />
Leave out the <code>--with-mysql=/usr/local</code> option if you don&#8217;t want MySQL support or MySQL is not installed.</li>
<li>Compile PHP:
<p><code> make &gt; /dev/null</code></li>
<li>Stop Apache:
<p><code> /usr/sbin/apachectl stop</code></li>
<li>Install the PHP module:
<p><code> make install</code></p>
<p>or copy the <code>libphp4.so.0.0</code> in the <code>.libs/</code> directly to<code>/usr/lib/apache/modules/libphp4.so</code> if you like that better (-:</li>
<li>Edit <code>/var/www/conf/httpd.conf</code>:
<p>Make sure that the following line is present and commented out:</p>
<p><code>LoadModule php4_module /usr/lib/apache/modules/libphp4.so</code></p>
<p>Search for &#8220;<code>#AddType application/x-httpd-php .php</code>&#8221; and remove the # in front of it, thereby telling Apache the line isn&#8217;t a comment anymore.</p>
<p>I added also the .php3 extenstion to it, so files ending in .php3 are also processed by the PHP engine. The end result:</p>
<p><code> AddType application/x-httpd-php .php .php3</code></li>
<li>Start Apache:
<p><code> /usr/sbin/apachectl start</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://purebsd.com/php-and-openbsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

