<?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>Narkaleptic Thoughtless &#187; php 5.3</title>
	<atom:link href="http://josh.mainelan.net/tag/php-53/feed/" rel="self" type="application/rss+xml" />
	<link>http://josh.mainelan.net</link>
	<description>Random nonsense from the mind of Narkaleptic.</description>
	<lastBuildDate>Wed, 02 Sep 2009 18:29:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP 5.3 symlink() in Windows Vista and Server 2008</title>
		<link>http://josh.mainelan.net/2009/06/php-5-3-symlink-in-windows/</link>
		<comments>http://josh.mainelan.net/2009/06/php-5-3-symlink-in-windows/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 15:22:40 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[mklink]]></category>
		<category><![CDATA[php 5.3]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[secpol.msc]]></category>
		<category><![CDATA[symlink]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://josh.mainelan.net/?p=87</guid>
		<description><![CDATA[I just discovered that Vista can create symbolic links via the command mklink!  It performs the same thing as ln in linux with both hard and soft links.  My understanding of links is fairly limited but I use them on my web server to apply seam-less templates.  Until now, this was something [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered that Vista can create symbolic links via the command <code>mklink</code>!  It performs the same thing as <code>ln</code> in linux with both hard and soft links.  My understanding of links is fairly limited but I use them on my web server to apply seam-less templates.  Until now, this was something that I could only test on my web server and not my Windows 7 development PC.  PHP 5.3 automatically uses the <code>mklink</code> command when you use <code>symlink()</code> but the problem comes with enabling it in Windows Vista or 7.</p>
<p>If you pull up a command prompt and try to use mklink, you&#8217;ll see something like this:<br />
<code><br />
D:\Web>mklink /D nnnnn.com\content templates\bluemoon<br />
You do not have sufficient privilege to perform this operation.<br />
</code><br />
Or PHP will throw this back at you:<br />
<code><br />
Debug Warning: /includes/templates.inc.php line 78 - symlink() [<a href='function.symlink'>function.symlink</a>]: Cannot create symlink, error code(1314)<br />
</code></p>
<p>To fix this:</p>
<ol>
<li>Bring up your run box, type &#8220;<code>secpol.msc</code>&#8221; and click OK.</li>
<li>Navigate under the Security Settings \ Local Policies \ User Rights Assignment folder.</li>
<li>Find &#8220;Create symbolic links&#8221; and add the Users group to it.</li>
</ol>
<p>I think you need to restart your computer or something after doing this.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.mainelan.net/2009/06/php-5-3-symlink-in-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install PHP 5.3.0 on CentOS 5 as CGI along side PHP 5.2.9</title>
		<link>http://josh.mainelan.net/2009/06/php-5-3-on-centos-5-as-cgi/</link>
		<comments>http://josh.mainelan.net/2009/06/php-5-3-on-centos-5-as-cgi/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 23:37:35 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[php 5.3]]></category>

		<guid isPermaLink="false">http://josh.mainelan.net/?p=74</guid>
		<description><![CDATA[Well, turns out I&#8217;d rather play with just PHP 5.3 RC4 for now.  Here is my guide to installing it onto my CentOS 5 64-bit VPS from 1&#038;1.

Update: PHP 5.3.0 has been released and there are some changes.

It went pretty smoothly.  Here is the guide, minus the hours of trial and error, of [...]]]></description>
			<content:encoded><![CDATA[<p>Well, turns out I&#8217;d rather play with just PHP 5.3 RC4 for now.  Here is my guide to installing it onto my CentOS 5 64-bit <a href="http://en.wikipedia.org/wiki/Virtual_private_server">VPS</a> from <a href="http://order.1and1.com/xml/order/VpsRoot">1&#038;1</a>.<br />
<br />
<strong>Update:</strong> PHP 5.3.0 has been released and there are some changes.<br />
<br />
It went pretty smoothly.  Here is the guide, minus the hours of trial and error, of course:<br />
<br />
<strong>First</strong>, install anything you may need to compile with.<br />
<code><br />
yum install gcc gcc-c++.x86_64</p>
<p>yum install \<br />
&nbsp;	libicu-devel.x86_64 \<br />
&nbsp;	libxml2-devel.x86_64 \<br />
&nbsp;	mysql-devel.x86_64 \<br />
&nbsp;	libpng-devel.x86_64 \<br />
&nbsp;	libjpeg-devel.x86_64 \<br />
&nbsp;	curl-devel.x86_64 \<br />
&nbsp;	bzip2-devel.x86_64 \<br />
&nbsp;	gettext-devel.x86_64 \<br />
&nbsp;	gmp-devel.x86_64 \<br />
&nbsp;	pcre-devel.x86_64 \<br />
&nbsp;	freetype-devel.x86_64 \<br />
&nbsp;	gd-devel.x86_64 \<br />
&nbsp;	aspell-devel.x86_64<br />
</code><br />
<strong>NOTE:</strong> You can copy that entire block and paste it, the backslash (\) will carry the command over to the next line automatically.</p>
<p><strong>Next</strong>, make the folders for the configs and binaries.<br />
<code><br />
mkdir /usr/local/php53 /etc/php53 /etc/php53.d<br />
</code><br />
<br />
<strong>Begin</strong>, by downloading and extracting the latest snapshot.  Don&#8217;t use the file name I have below, get it fresh from <a href="http://snaps.php.net"> snaps.php.net</a>.<br />
<code><br />
cd ~<br />
wget http://us2.php.net/get/php-5.3.0.tar.bz2/from/us.php.net/mirror<br />
tar xjf php-5.3.0.tar.bz2<br />
cd php-5.3.0.tar.bz2</p>
<p># gz: tar xzf php-5.3.0.tar.gz<br />
# bz2: tar xfj php-5.3.0.tar.bz2<br />
# zip: tar xfZ php-5.3.0.zip</code><br />
<br />
<strong>Now</strong>, set up all of your configuration options.  You may want to adjust these.  To see what they mean, type: <code>./configure --help</code><br />
<code><br />
./configure \<br />
&nbsp;	--prefix=/usr/local/php53  \<br />
&nbsp;	--with-libdir=lib64  \<br />
&nbsp;	--with-config-file-path=/etc/php53  \<br />
&nbsp;	--with-config-file-scan-dir=/etc/php53.d  \<br />
&nbsp;	--with-bz2  \<br />
&nbsp;	--with-curl  \<br />
&nbsp;	--with-exec-dir=/usr/bin  \<br />
&nbsp;	--with-freetype-dir=/usr  \<br />
&nbsp;	--with-png-dir=/usr  \<br />
&nbsp;	--enable-gd-native-ttf  \<br />
&nbsp;	--without-gdbm  \<br />
&nbsp;	--with-gettext  \<br />
&nbsp;	--with-gmp  \<br />
&nbsp;	--with-iconv  \<br />
&nbsp;	--with-jpeg-dir=/usr  \<br />
&nbsp;	--with-openssl  \<br />
&nbsp;	--with-png-dir=/usr \<br />
&nbsp;	--with-pspell  \<br />
&nbsp;	--with-libexpat-dir=/usr  \<br />
&nbsp;	--with-pcre-regex=/usr  \<br />
&nbsp;	--with-zlib  \<br />
&nbsp;	--with-layout=GNU  \<br />
&nbsp;	--enable-exif  \<br />
&nbsp;	--enable-ftp  \<br />
&nbsp;	--enable-magic-quotes  \<br />
&nbsp;	--enable-sockets  \<br />
&nbsp;	--enable-sysvsem  \<br />
&nbsp;	--enable-sysvshm  \<br />
&nbsp;	--enable-sysvmsg  \<br />
&nbsp;	--enable-wddx  \<br />
&nbsp;	--with-kerberos  \<br />
&nbsp;	--enable-ucd-snmp-hack  \<br />
&nbsp;	--enable-shmop  \<br />
&nbsp;	--enable-calendar  \<br />
&nbsp;	--with-mysql=mysqlnd \<br />
&nbsp;	--with-mysqli=mysqlnd \<br />
&nbsp;	--with-pdo-mysql=mysqlnd \<br />
&nbsp;	--with-mysql-sock=/var/lib/mysql/mysql.sock \<br />
&nbsp;	--with-libxml-dir=/usr  \<br />
&nbsp;	--without-mysql  \<br />
&nbsp;	--with-gd=/usr<br />
</code><br />
<br />
<strong>Finally</strong>, compile and install!<br />
<code><br />
gmake<br />
gmake install<br />
</code><br />
<br />
<strong>Lastly</strong>, you&#8217;ll likely want to use it in Apache&#8230;  Here is how I set up my domain to use PHP 5.3:<br />
<code><br />
&lt;VirtualHost 74.208.46.111:80&gt;<br />
&nbsp;    ServerName php53.mainelan.com:80<br />
&nbsp;    ServerAlias www.php53.mainelan.com<br />
&nbsp;    UseCanonicalName On<br />
&nbsp;    ServerAdmin "webmaster@mainelan.net"<br />
&nbsp;    DocumentRoot /var/www/vhosts/php53.mainelan.com/httpdocs</p>
<p><strong>&nbsp;    # PHP 5.3<br />
&nbsp;    ScriptAlias    /php53-cgi /usr/local/php53/bin/php-cgi<br />
&nbsp;    Action         application/x-http-php53 /php53-cgi<br />
&nbsp;    AddHandler   application/x-http-php53 .php</strong></p>
<p>&nbsp; . . .<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://josh.mainelan.net/2009/06/php-5-3-on-centos-5-as-cgi/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
