<?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>UNIXy &#187; PHP</title>
	<atom:link href="http://blog.unixy.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unixy.net</link>
	<description>Fully Managed Dedicated Servers</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:37:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Varnish Cache PHP Extension Hits PECL Repository</title>
		<link>http://blog.unixy.net/2011/09/varnish-cache-php-extension-hits-pecl-repository/</link>
		<comments>http://blog.unixy.net/2011/09/varnish-cache-php-extension-hits-pecl-repository/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 10:03:33 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Future]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bindings]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[varnish]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=1407</guid>
		<description><![CDATA[Varnish Cache PHP Extension Hits PECL Repository ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F09%2Fvarnish-cache-php-extension-hits-pecl-repository%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F09%2Fvarnish-cache-php-extension-hits-pecl-repository%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="Varnish" href="http://www.unixy.net/varnish">Varnish</a> PHP <a title="Bindings" href="http://www.php.net/manual/en/varnish.installation.php" target="_blank">bindings</a> are useful for folks that need to manage Varnish from PHP. A palpable version of the extension code has finally been released. Keep in mind that the release is early beta. Nonetheless, the milestone is significant. So, what can one accomplish with the API?</p>
<p>Here&#8217;s a list of the most important function calls:</p>
<pre> <strong>stop</strong>
 <strong>start</strong>
 <strong>banUrl</strong> - Purge URL
 <strong>ban</strong> - Free form purge command
 <strong>isRunning</strong> - Boolean
 <strong>setPort</strong> - Set the admin port
 <strong>getSnapshot</strong> - Retrieve statistics snapshots
 <strong>getLine</strong> - Retrieve log entry</pre>
<p>We are keeping a close eye on the development of the PHP Varnish extension and will update this page.</p>
<h2><strong>About UNIXY</strong></h2>
<p><a title="UNIXY" href="http://www.unixy.net">UNIXY</a> is a long-time Varnish Cache user and evangelist. They have been offering Varnish acceleration to their <a title="VPS" href="http://www.unixy.net/vps">VPS</a>, <a title="Dedicated server" href="http://www.unixy.net/dedicated-servers">dedicated server</a>, and cluster clients for more than three years. They have released the first c<a title="cPanel Varnish" href="http://www.unixy.net/varnish">Panel Varnish plugin</a> as well as spun a new startup,<a title="Fastlayer" href="http://fastlayer.com">Fastlayer</a>, the on-demand HTTP accelerator for the <a title="Fastlayer for the cloud" href="http://fastlayer.com">cloud</a>.</p>
<p><a href="http://fastlayer.com"><img class="aligncenter" title="Fastlayer" src="http://fastlayer.com/wp-content/uploads/2011/05/logo2.png" alt="" width="184" height="64" /></a></p>
<p>&nbsp;</p>
<p>That&#8217;s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2011/09/varnish-cache-php-extension-hits-pecl-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP built-in Web server for development</title>
		<link>http://blog.unixy.net/2011/03/php-built-in-web-server-for-development/</link>
		<comments>http://blog.unixy.net/2011/03/php-built-in-web-server-for-development/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 04:32:19 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Future]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[built-in]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=1234</guid>
		<description><![CDATA[A PHP built-in Web server has been proposed as a Request For Comment (RFC), which includes a patch to the PHP source code base. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F03%2Fphp-built-in-web-server-for-development%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F03%2Fphp-built-in-web-server-for-development%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A <a href="http://wiki.php.net/rfc/builtinwebserver">PHP built-in Web server</a> has been proposed as a Request For Comment (RFC), which includes a patch to the PHP source code base. If the PHP maintainers decide to move forward with the proposal, we&#8217;d soon see an embedded Web server shipping with PHP CLI. Here&#8217;s how one would start and run the Web server:</p>
<blockquote><p>php -S localhost:8000<br />
Server is listening on localhost:8000&#8230; Press CTRL-C to quit.<br />
[Thu Mar  3 05:42:06 2011] ::1:56258: /<br />
[Thu Mar  3 05:42:06 2011] ::1:56259: /?=PHPE9568F34-D428-11d2-A769-00AA001ACF42<br />
[Thu Mar  3 05:42:06 2011] ::1:56260: /?=PHPE9568F35-D428-11d2-A769-00AA001ACF42</p></blockquote>
<p>In a way, it&#8217;s similar to how one would start the Django or web.py development server. Interesting patch&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2011/03/php-built-in-web-server-for-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opcode caching suPHP cPanel &#8211; Best workaround!</title>
		<link>http://blog.unixy.net/2011/02/opcode-caching-suphp-cpanel-best-workaround/</link>
		<comments>http://blog.unixy.net/2011/02/opcode-caching-suphp-cpanel-best-workaround/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 08:39:43 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[opcode]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[solved]]></category>
		<category><![CDATA[suPHP]]></category>
		<category><![CDATA[varnish]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=1203</guid>
		<description><![CDATA[Everyone knows that PHP opcode caching, or any kind of PHP caching for that matter, is not possible with suPHP. The workaround we've devised doesn't require any compromise in terms of security.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F02%2Fopcode-caching-suphp-cpanel-best-workaround%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F02%2Fopcode-caching-suphp-cpanel-best-workaround%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Everyone knows that PHP opcode <a href="http://www.unixy.net/varnish">caching</a>, or any kind of <a href="http://www.unixy.net/varnish">PHP caching</a> for that matter, is not possible with suPHP. This is a trade off of choosing security over performance. The performance hit of running scripts under suPHP is, however, significant. It&#8217;s so significant that pages take noticeably longer to display at the browser. Also, the server load goes through the roof during traffic spikes.</p>
<p>The workaround we&#8217;re presenting in this post doesn&#8217;t require any compromise in terms of security. You get to keep suPHP with its security blanket but also get a tremendous performance boost from caching. The caching in question comes from Varnish Cache, the open source HTTP accelerator that runs in front Apache (or any other Web server for that matter). We&#8217;ve developed a <a title="Varnish cPanel" href="http://www.unixy.net/varnish" target="_blank">Varnish cPanel </a>script or plugin that allows anyone to run Varnish. The script installs, configures, manages, and integrates Varnish with cPanel without you needing to do any maintenance from the terminal.</p>
<p>Varnish Cache is so powerful that the performance gains surpass that of PHP opcode caching! Both internal and independent benchmarks have shown that our cPanel Varnish Plugin (and <a href="http://en.wikipedia.org/wiki/Varnish_(software)">VCL</a>) performs better than the fastest Web server in the market including Nginx, Litespeed, and Lighttpd.<a title="Varnish Cache cPanel" href="http://www.unixy.net/varnish" target="_blank"> Read more on the results</a>.</p>
<p>The following video shows how one can easily install the Varnish cPanel script:</p>
<p><iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/cly5PkyXoeQ" frameborder="0" allowfullscreen></iframe></p>
<p>Here&#8217;s some feedback from people that are using the script: <a href="http://www.unixy.net/secure/knowledgebase.php?action=displayarticle&#038;id=25">http://www.unixy.net/secure/knowledgebase.php?action=displayarticle&#038;id=25</a></p>
<p>That&#8217;s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2011/02/opcode-caching-suphp-cpanel-best-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Note that the MySQL client library is not bundled anymore. Solved!</title>
		<link>http://blog.unixy.net/2010/01/note-that-the-mysql-client-library-is-not-bundled-anymore-solved/</link>
		<comments>http://blog.unixy.net/2010/01/note-that-the-mysql-client-library-is-not-bundled-anymore-solved/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 03:09:14 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Break-Fix]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[lib64]]></category>
		<category><![CDATA[lightspeed]]></category>
		<category><![CDATA[litespeed]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=232</guid>
		<description><![CDATA[This error is not specific to Litespeed but can be encountered while building PHP with MySQL support on 64-bit systems. The fix is to tell the build that the MySQL client is indeed installed, but in a different directory, by adding the following flag to the configure line in Litespeed: --with-libdir=lib64 The reason being the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2010%2F01%2Fnote-that-the-mysql-client-library-is-not-bundled-anymore-solved%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2010%2F01%2Fnote-that-the-mysql-client-library-is-not-bundled-anymore-solved%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This error is not specific to Litespeed but can be encountered while building PHP with MySQL support on 64-bit systems. The fix is to tell the build that the MySQL client is indeed installed, but in a different directory, by adding the following flag to the configure line in Litespeed:</p>
<blockquote><p><code>--with-libdir=lib64</code></p></blockquote>
<p>The reason being the build doesn&#8217;t know at this point that it is dealing with a 64-bit OS. If adding the above switch does not work, be sure to install the MySQL client and libraries.</p>
<p>That&#8217;s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2010/01/note-that-the-mysql-client-library-is-not-bundled-anymore-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

