<?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>[boomshadow.net~]# &#187; Software Installations</title>
	<atom:link href="http://boomshadow.net/category/tech/installs/feed/" rel="self" type="application/rss+xml" />
	<link>http://boomshadow.net</link>
	<description>Tech, filmmaking, &#38; thoughts.</description>
	<lastBuildDate>Sat, 13 Apr 2013 12:45:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to install PHP memcache</title>
		<link>http://boomshadow.net/tech/installs/how-to-install-php-memcache/</link>
		<comments>http://boomshadow.net/tech/installs/how-to-install-php-memcache/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 13:32:25 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Software Installations]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php modules]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=755</guid>
		<description><![CDATA[This guide will show you how to install PHP memcache via PECL.]]></description>
				<content:encoded><![CDATA[<p><a href="http://boomshadow.net/wp-content/uploads/2012/02/pecl-logo.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/02/pecl-logo.gif" alt="The logo for PECL library" title="PECL logo" width="115" height="115" class="alignleft size-full wp-image-760" /></a><br />
This guide will help you install PHP Memcache on a CentOS server.</p>
<h4>What is PHP memcache?</h4>
<p>In my <a href="http://boomshadow.net/tech/installs/how-to-install-memcached/" target="_blank">previous article</a>, I showed you how to install Memcached, the service daemon. Now, if you would like your PHP software to interface with that daemon, you will want to install a PHP extension for it.</p>
<p>There are actually two separate implementations of a PHP Client that wraps the memcached (daemon); both are provided via the <a href="http://pecl.php.net/" target="_blank">PECL library</a>. One is called <a href="http://pecl.php.net/package/memcache" target="_blank">&#8216;memcache&#8217;</a> and the other is called <a href="http://pecl.php.net/package/memcached" target="_blank">&#8216;memcached&#8217;</a>. I know that it is a little confusing that &#8216;memcached&#8217; shares the same name as the daemon itself, but it IS a separate PHP wrapper.</p>
<p>This article will focus on installing &#8216;memcache&#8217; as it is the most commonly used. You can use the information to install &#8216;memcached&#8217; as well; the installation steps are the same. The main difference is that &#8216;memcached&#8217; requires the libMemcached library. You can see a comparison of the two different PHP clients here: <a href="http://code.google.com/p/memcached/wiki/PHPClientComparison" target="_blank">http://code.google.com/p/memcached/wiki/PHPClientComparison</a></p>
<h4>Installation, the quick method</h4>
<p>The easiest method is to simply use PECL&#8217;s &#8216;install&#8217; command. This will grab the latest stable release, configure it with the default options, and add it to the server&#8217;s php.ini:</p>
<pre>pecl install memcache</pre>
<p>*Note: Un-installation is just as easy:</p>
<pre>pecl uninstall memcache</pre>
<h4>Installation, the manual method</h4>
<p>The quick &#8216;install&#8217; method uses the default configuration options and should serve most peoples&#8217; purposes. However, if you need more control over the installation options, you can manually install from source and add it flags as you need.</p>
<p>Download the source package via PECL:</p>
<pre>
cd /usr/local/src/
pecl download memcache
</pre>
<p>Unpack the tar and enter into the newly extracted directory (be sure to replace the X&#8217;s with your downloaded version):</p>
<pre>
tar -xvzf memcache-X.X.X.tgz
cd memcache-X.X.X
</pre>
<p>Configure and install:</p>
<pre>
phpize
./configure &#038;&#038; make &#038;&#038; make install
</pre>
<h4>Verify the install</h4>
<p>Verify the installation by displaying all the installed PHP modules. See if &#8216;memcache&#8217; is listed:</p>
<pre>
php -m
memcache
</pre>
<h4>Problems with manual installation</h4>
<p>The &#8216;make install&#8217; should load the module into your server&#8217;s extension directory automatically. However, if you do not see memcache listed in a &#8216;php -m&#8217;, you will need to add the module manually</p>
<p>First, you&#8217;ll want to very the location of your server&#8217;s extensions directory:</p>
<pre>grep extension_dir /usr/local/lib/php.ini</pre>
<p>It should return something similar to the following:</p>
<pre>extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"</pre>
<p>Next, copy the memcache module into that directory (be sure to replace the path with the one found on your server):</p>
<pre>cp modules/memcache.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613</pre>
<p>Finally, add the module to your php.ini:</p>
<pre>echo 'extension=memcache.so' >> /usr/local/lib/php.ini</pre>
<h4>Thoughts</h4>
<p>It used to be a common issue that the quick &#8216;install&#8217; method could not be used for servers where the /tmp partition was mounted &#8216;noexec&#8217;. The problem was that the &#8216;configure&#8217; process could not execute because the PECL client downloaded the module into in /tmp. When /tmp is mounted &#8216;noexec&#8217;, servers cannot execute scripts from /tmp.</p>
<p>However, PECL now downloads and executes the script from /root/tmp. No need to worry about compiler errors with /tmp. You can use the &#8216;install&#8217; method even with a secured /tmp.</p>
<h2>Note about this article</h2>
<p>This article is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a href="http://blog.servint.net/2012/03/16/the-tech-bench-how-to-install-php-memcache/" title="ServInt Blog" target="_blank">ServInt blog here</a>. They are using my article with my permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/installs/how-to-install-php-memcache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Memcached</title>
		<link>http://boomshadow.net/tech/installs/how-to-install-memcached/</link>
		<comments>http://boomshadow.net/tech/installs/how-to-install-memcached/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 19:42:38 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Software Installations]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[centos 4]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=704</guid>
		<description><![CDATA[Memcache is one of the most popular caching tools used in hosting today. This guide will show you how to install it.]]></description>
				<content:encoded><![CDATA[<p># Updates<br />
# <h7 class="updated">01/02/13</h7> &#8211; Updated RPM locations</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/02/memcached-icon.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/02/memcached-icon-150x150.gif" alt="Memcached icon with Zoolander critters" title="Memcached Icon" width="100" height="100" class="alignleft size-thumbnail wp-image-710" /></a>This guide will help you setup Memcached on a CentOS server.</p>
<h4>What is caching</h4>
<p>Before diving into Memcache specifically, let&#8217;s take a step back. What is caching? Why should you care and why should you use it? Caching is used for two very important reasons: to speed up the delivery of the pages and to alleviate system resources. Caching is used to speed up dynamic sites; database driven sites will benefit most form caching. Think about a WordPress site. Each page you visit is not an actually file, but rather an amalgamation of the theme, widgets, posts, footers, headers, etc&#8230; Each time a page is accessed, PHP will generate the page requested on the fly from the database. It takes time to query the database to create the page. These database queries put a strain on the resources of your server.</p>
<p>However, what if instead of continually generating a new page, the same page, for every visitor, you were to turn those pages into static HTML files? No database querying is needed for the new visitors. A static file can be served up much faster and with significantly less resource consumption. Your visitors see their requested page sooner, and you save on CPU cycles. Everyone is happy. This is what caching does.</p>
<h4>What is Memcached</h4>
<p>Memcached is a general-purpose distributed memory caching system. It is one of the most popular caching tools and is used in such popular sites as: YouTube, Reddit, Zynga, Facebook, and Twitter.</p>
<p>According to Memcached&#8217;s <a href="http://www.memcached.org/" target="_blank">official site</a>, Memcached is defined as: Free &#038; open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.</p>
<p>In simpler terms, it decreases database load by storing objects in memory.</p>
<h4>Installing Memcached (daemon)</h4>
<p>The quickest and easiest method would be to install via Yum. First, you must grab the RPM that matches your OS:</p>
<p>CentOS 6 (64 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm'</pre>
<p>CentOS 6 (32 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm'</pre>
<p>CentOS 5 (64 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm'</pre>
<p>CentOS 5 (32 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/i386/epel-release-5-4.noarch.rpm'</pre>
<p>CentOS 4 (32 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/4/i386/epel-release-4-10.noarch.rpm'</pre>
<p>Now, to install it with Yum:</p>
<pre>yum install memcached</pre>
<p>Start the memcached service:</p>
<pre>/etc/init.d/memcached start</pre>
<p>Configure the memcached service to start when the server boots:</p>
<pre>chkconfig memcached on</pre>
<p>Finally, disable the RPM so that it is not used for future Yum functions:</p>
<pre>perl -pi -e "s/enabled=1/enabled=0/g;" /etc/yum.repos.d/epel.repo</pre>
<h4>Testing</h4>
<p>It&#8217;s always a good idea to check your work. Make sure that memcached is running:</p>
<pre>ps auwx | grep memcache</pre>
<h4>PHP memcache</h4>
<p>For information on how to install the PHP extension so that your PHP software can interface with memcached (daemon), see my article here: <a href="http://boomshadow.net/tech/installs/how-to-install-php-memcache/" target="_blank">How to install PHP memcache</a></p>
<h2>Note about this article</h2>
<p>This article is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a href="http://blog.servint.net/2012/02/20/the-tech-bench-memcached/" title="ServInt Blog" target="_blank">ServInt blog here</a>. They are using my article with my permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/installs/how-to-install-memcached/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to install Icecast</title>
		<link>http://boomshadow.net/tech/installs/icecast-installation/</link>
		<comments>http://boomshadow.net/tech/installs/icecast-installation/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 08:44:48 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Software Installations]]></category>
		<category><![CDATA[/etc/rc.local]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[icecast]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://jacobtirey.com/?p=65</guid>
		<description><![CDATA[Installing icecast can actually be easy. What do you know? This guide will show you how to install it.]]></description>
				<content:encoded><![CDATA[<p># Updates<br />
# <h7 class="updated">06/22/11</h7> &#8211; Updated guide to use the latest version of Icecast (2.3.2)</p>
<p>*Note &#8211; This does NOT work on 64 bit CentOS (x86_64); it will only install for 32 bit (i386). If you need to install on 64 bit, use the guide found here: <a href="http://support.cast-control.net/index.php?_m=knowledgebase&#038;_a=viewarticle&#038;kbarticleid=69">http://support.cast-control.net/index.php?_m=knowledgebase&#038;_a=viewarticle&#038;kbarticleid=69</a>. Once you got it installed, you can start from my Step #3 &#8211; Configuration. I tested their guide on my personal server and it worked perfectly.<br />
<a href="http://boomshadow.net/wp-content/uploads/2010/12/icecast-logo.gif"><img src="http://boomshadow.net/wp-content/uploads/2010/12/icecast-logo-150x150.gif" alt="Icecast Logo" title="Icecast Logo" width="75" height="75" class="alignleft size-thumbnail wp-image-681" /></a></p>
<h2>Icecast Installation Guide for CentOS 5</h2>
<p>I ran across a request from a customer recently asking me to install Icecast. I didn&#8217;t find any easy guides out there that had the entire process laid out. So, here is my contribution to the Internet. I hope one of you find this useful. With this guide, you can set it up in a mere 10 minutes.</p>
<h3>#1 &#8211; First off, What is Icecast?</h3>
<p>Per the official website (<a href="http://www.icecast.org/">http://www.icecast.org</a>): Icecast is free server software for streaming multimedia. In particular, icecast streams audio to listeners over the Internet, and is compatible with Nullsoft&#8217;s Shoutcast.</p>
<h3>#2 &#8211; Installation</h3>
<p>The first thing to do is install the dependencies that are needed run icecast:</p>
<pre>yum install curl-devel libtheora-devel libvorbis-devel libxslt-devel speex-devel</pre>
<p>Next, grab the SRPM:</p>
<pre>rpm -ivh http://downloads.xiph.org/releases/icecast/icecast-2.3.2-0.src.rpm
</pre>
<p>****If you get the following error:</p>
<pre class="brush: bash; gutter: false;">Retrieving http://downloads.xiph.org/releases/icecast/icecast-2.3.2-0.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
</pre>
<p>You will need to install the development dependencies:</p>
<pre>yum groupinstall 'Development Tools'
</pre>
<p>Now build the binary package using the newly acquired specs:</p>
<pre>rpmbuild -bb /usr/src/redhat/SPECS/icecast.spec
</pre>
<p>And then install the RPM:</p>
<pre>rpm -ivh /usr/src/redhat/RPMS/i386/icecast-2.3.2-0.i386.rpm
</pre>
<h3>#3 &#8211; Configuration</h3>
<p>You need to modify the /etc/icecast.xml file and change the default passwords for the users: source, relay,  admin. The Icecast developers definitely have a sense of humor; The default passwords are &#8216;hackme&#8217;.</p>
<pre class="brush:bash; first-line: 23; highlight: [25,27,31] ">
         <authentication>
              <!-- Sources log in with username 'source' -->
              <source-password>NEW-PASSWORD</source-password>
              <!-- Relays log in with username 'relay' -->
              <relay-password>NEW-PASSWORD</relay-password>
     
              <!-- Admin logs in with the username given below -->
              <admin-user>admin</admin-user>
              <admin-password>NEW-PASSWORD</admin-password>
         </authentication>
</pre>
<p>You will have to change the user that the icecast service runs as. It cannot be initiated as root. It&#8217;s very picky and will give an error message:</p>
<pre>[root ~]# ERROR: You should not run icecast2 as root
</pre>
<p>So simply change it to something else. The most intuitive solution would be to use &#8216;icecast&#8217;:</p>
<pre class="brush:bash; first-line: 175; highlight: [176]">
         <changeowner>
             <user>icecast</user>
             <group>nogroup</group>
         </changeowner>
</pre>
<p>And the last modification is to change the log directory from /usr/var/log/icecast to &#8211;&gt; /var/log/icecast:</p>
<pre>
         &lt;logdir&gt;/var/log/icecast&lt;/logdir&gt;
</pre>
<h3>#4 &#8211; Add user and log folder</h3>
<p>Almost done. Now add the icecast user and create the log path we specified above:</p>
<pre>
mkdir /var/log/icecast
useradd icecast
chown icecast:icecast /var/log/icecast/
</pre>
<h3>#5 &#8211; Run Icecast</h3>
<p>This is it, the moment you&#8217;ve been waiting for:</p>
<pre>su icecast -c 'icecast -c /etc/icecast.xml -b'
</pre>
<p>Make sure port 8000 is opened in your firewall. Now you can test it by accessing: <em>http://yourdomain.com:8000</em>. You will see a black screen:</p>
<div id="attachment_88" class="wp-caption aligncenter" style="width: 310px"><a href="http://boomshadow.net/wp-content/uploads/2010/12/Icecast-status.jpg"><img class="size-medium wp-image-88" title="Icecast status page" src="http://boomshadow.net/wp-content/uploads/2010/12/Icecast-status-300x133.jpg" alt="Icecast status page" width="300" height="133" /></a><p class="wp-caption-text">The front page for Icecast server</p></div>
<h3>#6 &#8211; Add to system start up</h3>
<p>You will want icecast to start when the server boots. Take the command to run the service (listed above) and place it in your:
<pre>/etc/rc.local</pre>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/installs/icecast-installation/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>
