<?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>Roy&#039;s Rants</title>
	<atom:link href="http://roymerrill.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://roymerrill.com</link>
	<description>Things I&#039;ve found out</description>
	<lastBuildDate>Wed, 14 Jul 2010 16:57:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mac OS X 10.6.4 and Macfusion</title>
		<link>http://roymerrill.com/?p=27</link>
		<comments>http://roymerrill.com/?p=27#comments</comments>
		<pubDate>Tue, 13 Jul 2010 23:02:52 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Macfuse]]></category>
		<category><![CDATA[Macfusion]]></category>
		<category><![CDATA[ssh mount]]></category>

		<guid isPermaLink="false">http://roymerrill.com/?p=27</guid>
		<description><![CDATA[I love Macfusion.  At work we don&#8217;t have samba installed on our dev servers and duplicating the environment on my own development machine is yet unacheivable.  So Macfusion is a godsend.  Macfusion allows you create a ssh mount.  So Macfusion allows you to mount a directory of a remote machine just like you would a [...]]]></description>
			<content:encoded><![CDATA[<p>I love Macfusion.  At work we don&#8217;t have samba installed on our dev servers and duplicating the environment on my own development machine is yet unacheivable.  So Macfusion is a godsend.  Macfusion allows you create a ssh mount.  So Macfusion allows you to mount a directory of a remote machine just like you would a network drive over SSH.  However, when I updated my Snow Leopard with the latest update to 10.6.4, Macfusion somehow quite working.  Fortunately, I was able to find the following link: <a href="http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/">http://rackerhacker.com/2009/08/28/fix-macfusion-on-snow-leopard/</a> which details how to get it working again.  It worked for me!  Hopefully if you are having the same problem, it will work for you too!</p>
]]></content:encoded>
			<wfw:commentRss>http://roymerrill.com/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Local Web Development on a Mac with zend, apache, php, and mysql</title>
		<link>http://roymerrill.com/?p=14</link>
		<comments>http://roymerrill.com/?p=14#comments</comments>
		<pubDate>Fri, 21 May 2010 17:49:50 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web developement on mac]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend community server]]></category>

		<guid isPermaLink="false">http://roymerrill.com/?p=14</guid>
		<description><![CDATA[Tutorial on how to setup an Apache webserver with PHP and mysql on your mac.]]></description>
			<content:encoded><![CDATA[<p>When you start developing a website the first thing that you might do is go to godaddy and register your domain, then you find a place to host your site and so on and so forth.  However, if you have a Mac, you don&#8217;t need to start there.  You can start serving up your new website on your own machine first.  Then when you are finished and you have all the kinks worked out you and worry about registering the domain and finding a hosting provider and all that jazz.  Developing locally on your own machine is so nice.  So this tutorial will help us set up our Mac so that it can act as a web server.  Now Macs, already come with apache and php.  However, I don&#8217;t like to use that pre installed stuff.  I actually like to use the Zend Community Server.  It is a great package and it will install apache, php, and mysql all together.  It will also already be setup to debug with Zend Studio.  The ability to debug your web applications is a must if you ask me.</p>
<h2>Zend Community Server</h2>
<p>Download the zend community server from the Zend website.<br />
As of this publication I downloaded: ZendServer-CE-php-5.3.2-5.0.1.dmg<br />
Double click on the dmg to mount and open up the contents.  Double click on the ZendServer.pkg and run the installer.<br />
Now Apache, PHP 5.3 and Mysql are installed.  However, we need to configure some things so that we can use them.<br />
zend installs all of it&#8217;s packages in the /usr/local/zend directory, so apache is in /usr/local/zend/apache2, mysql is in /usr/local/zend/mysql<br />
Most of your executables that you will use, execept mysql, are in the /usr/local/zend/bin directory<br />
So if you want to use apache, php, or mysql from the command line you will one to add the following to your /etc/profile</p>
<p><strong>PATH=$PATH:/usr/local/zend/bin</strong></p>
<p><strong>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib<br />
export VISUAL=/usr/bin/nano<br />
export EDITOR=/usr/bin/nano</strong></p>
<p><strong>alias mysql=/usr/local/zend/mysql/bin/mysql<br />
alias mysqladmin=/usr/local/zend/mysql/bin/mysqladmin<br />
alias mysqldump=/usr/local/zend/mysql/bin/mysqldump</strong></p>
<p>Now we need to edit apache conf file so that it will be easy to run.  Edit /usr/local/zend/apache2/conf/httpd.conf</p>
<p>Change the zend default of listening on port 10088 to listening on port 80</p>
<p><strong>old line: Listen 10088<br />
new line: Listen 80</strong></p>
<p>Change the document root from inside the zend apache folder to somewhere more convenient.  I like to use the Sites directory under my user account directory.  You can change it to where ever you want.  Of course, your name is probably not Roy so don&#8217;t just expect copying and pasting to work for you.</p>
<p><strong>old line: DocumentRoot &#8220;/usr/local/zend/apache2/htdocs&#8221;<br />
new line: DocumentRoot &#8220;/Users/<em>ROY</em>/Sites&#8221;</strong></p>
<p>Add Directory Permissions to your new DocumentRoot by changing the &#8220;&lt;Directory&gt;&#8221; listing:</p>
<p><strong>old line: &lt;Directory &#8220;<strong>/usr/local/zend/apache2/htdocs</strong>&#8220;&gt;<br />
new line: &lt;Directory &#8220;/Users/rmerrill/Sites&#8221;&gt;</strong></p>
<p>Add other extensions to act as index files instead of just index.html</p>
<p><strong>&lt;IfModule </strong><strong>dir_module&gt;<br />
DirectoryIndex index.html index.htm index.php<br />
&lt;/IfModule&gt;</strong></p>
<p>Un-comment the Virtual hosts Include directive</p>
<p><strong>old line: #Include conf/extra/httpd-vhosts.conf<br />
new line: Include conf/extra/httpd-vhosts.conf</strong></p>
<p>Now save your changes.  Now let&#8217;s update the httpd-vhosts.conf file.  This file will tell apache that we are going to have virtual hosts and where to look for them.  Edit /usr/local/zend/apache2/conf/extra/httpd-vhosts.conf</p>
<p>Change the NameVirtualHost from looking on port 10088 to port 80</p>
<p><strong>old line: NameVirtualHost *:10088<br />
new line: NameVirtualHost *:80</strong></p>
<p>Remove the VirtualHost examples and add an include directive that tells apache to look in the vhosts directory under your Sites folder for any virtual host conf files:</p>
<p><strong>new line: Include /Users/Roy/Sites/vhosts</strong>/</p>
<p>Now save your changes.</p>
<p>We are set up to start developing locally.  For the rest of my tutorial I will use the domain roysrockets.com as site that I am developing.</p>
<p>Now that I have my server set up, I want to setup the site that I am developing on my local machine.  Whenever I am working on a website, I like my local version to use the extension lcl instead of the the real extension.  That way if I am making updates on my local machine I can check the live site by using the real domain and the dev site by using the local domain.  So in the example of roysrockets.com, I would use the domain roysrockets.lcl for my local site and roysrockets.com for my live site.</p>
<p>In order to make our development machine to look  locally for our domain instead of out on the web, we need to add our local domain to the /etc/hosts file:</p>
<p><strong>new lines: </strong></p>
<p><strong>127.0.0.1  roysrockets.lcl<br />
</strong><strong>127.0.0.1  www.roysrockets.lcl</strong></p>
<p>Now we need to add a configuration file to our vhosts directory so that apache will know where to look for your roysrockets.lcl content.  Create a file called &#8216;roysrockets.conf&#8217; in the /Users/Roy/Sites/vhosts/ directory:</p>
<p><strong>&lt;Vir</strong><strong>tualHost *:80&gt;<br />
ServerAdmin roy@withinmysite.com<br />
DocumentRoot /Users/Roy/Sites/roysrockets.com<br />
ServerName roysrockets.lcl<br />
ServerAlias www.roysrockets.lcl<br />
ErrorLog logs/roysrockets.lcl-error_log<br />
CustomLog logs/roysrockets.lcl-access_log common</strong></p>
<p><strong>&lt;Directory &#8220;/Users/Roy/Sites/roysrockets.com&#8221;&gt;<br />
Options Indexes FollowSymLinks<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</strong></p>
<p>Save the file and restart apache.  Remember that zend&#8217;s apache files are in /usr/local/zend.  If you just do sudo apachectl restart then you will use the apache version that comes with Mac and you won&#8217;t get the desired results.  So you need to make sure that you do: sudo /usr/local/zend/bin/apachectl restart.</p>
<p>So there we have it.  Now we just create the folder roysrockets.com in the /Users/Roy/Sites/ folder and start adding web pages.  When we wont to look at what we have created so far, we just open up our browser and go to: http://www.roysrockets.lcl</p>
]]></content:encoded>
			<wfw:commentRss>http://roymerrill.com/?feed=rss2&amp;p=14</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing a debian webserver</title>
		<link>http://roymerrill.com/?p=4</link>
		<comments>http://roymerrill.com/?p=4#comments</comments>
		<pubDate>Wed, 14 Apr 2010 23:35:20 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://roymerrill.com/?p=4</guid>
		<description><![CDATA[I use a mac for my desktop computer so I am going to start from there.  Now if you use windows or something else, that is okay.  You will just have to find your own way of getting a the debian iso on to a CD.
Make an install disk of Debian

Download a iso of Debian.  [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">I use a mac for my desktop computer so I am going to start from there.  Now if you use windows or something else, that is okay.  You will just have to find your own way of getting a the debian iso on to a CD.</p>
<p><strong>Make an install disk of Debian</strong></p>
<ol>
<li>Download a iso of Debian.  Go to: http://www.debian.org/distrib/netinst and click on the &#8216;Small CDs&#8217; link.  From there you will want to click on the link of your computer&#8217;s cpu.  If you have a intel or athlon xp cpu then click on the i386.  If you have a Athlon64, then click on the amd64.  That will initiate the iso download.</li>
<li>Once the iso is downloaded,  launch the Disk Utility program on your mac.  click Command + spacebar and then type in Disk Utility.</li>
<li>Insert a blank disc into your cd/dvd drive</li>
<li>In the Disk utility program, click &#8216;File&#8217; and select &#8216;Open Disk Image&#8217;.  That will open up a &#8216;Select Image to Attach&#8217; window.  In that window, navigate to where you downloaded the iso to, usually the &#8216;Downloads&#8217; folder.  Then select the iso file and click on the &#8216;Open&#8217; button.</li>
<li>Now in the Disk Utility program, select the iso image in the left hand menu and click on the &#8216;Burn&#8217; icon in the top menu.  A pop-up window will appear and click the &#8216;burn&#8217; button again.</li>
<li>Wait for the cd to be burned.</li>
</ol>
<p><strong>Install Debian on your computer</strong></p>
<ol>
<li>Start the computer up and continually click on the &#8216;delete&#8217; key so that the bios screen comes up.  Make sure that the boot options show that booting from a CD/DVD drive has first priority.  Save and Exit.</li>
<li>Insert the debian install disk and start up the computer.</li>
<li>Follow the install setup wizard until you get to the partition disks section.</li>
<li>select &#8216;Manual&#8217; partitioning of disks.</li>
<li>delete any existing pratitions.</li>
<li>First, let&#8217;s set up the &#8217;swap&#8217; partition.  Select the free space and click &#8216;continue&#8217;.  Select &#8216;Create a new partition&#8217; and click &#8216;continue&#8217;.  Enter the size of the partition.  I usually do twice or three times as much ram available, then click &#8216;continue&#8217;.  Select &#8216;Primary&#8217; then click &#8216;continue&#8217;.  Now when it starts to create a partition by default it uses it as a ext3 journaling file system.  We want a swap so we need to go up and select the &#8216;Use as&#8217; row and hit &#8216;return&#8217;.  Now scroll down and select &#8217;swap area&#8217; and hit &#8216;return&#8217;.  Now select &#8216;Done setting up the partition&#8217; and click &#8216;continue&#8217;</li>
<li>Now we need to create the root partition.  Duplicate the above steps accept use the remaining disk space and make sure it has the &#8216;bootable&#8217; flag set.</li>
<li>Now that we have created the partitions we need to write them to disk.  Select &#8216;Finish partitioning and write changes to disk&#8217; and then click &#8216;Continue&#8217;.  Review your changes to make sure that is what you really want, then select &#8216;Yes&#8217; and click &#8216;Continue&#8217;.</li>
<li>Wait for the partitions to be writen out, then the base system to install&#8230;  Now unselect the desktop environment checkbox, unless you want it, and click &#8216;Install&#8217; to finish.</li>
</ol>
<p><strong>Configure debian with the server software</strong></p>
<ol>
<li><strong>Apache &amp; PHP</strong>
<ol>
<li><strong>setup the environment:</strong></li>
<p>1. Define a repository by opening the following file:    /etc/apt/sources.list  		 and adding the line:</p>
<p>deb   http://repos.zend.com/zend-server/deb  		 server non-free</p>
<p>2.  Add  Zend&#8217;s repository public key by running:</p>
<p># wget    http://repos.zend.com/deb/zend.key  		 -O- |apt-key add -</p>
<p>If  you  are using <em>sudo</em> to run each command the next command requires   using <em>sudo  		 following the &#8216;|&#8217;</em> (pipe) symbol as follows:</p>
<p>#   		 wget http://repos.zend.com/deb/zend.key -O- | <strong>sudo</strong> apt-key  add -</p>
<p>3. To synchronize with Zend&#8217;s repository  run:</p>
<p>#  aptitude update</p>
<li><strong>install zend community server:</strong></li>
<p>To install <strong>Zend Server  Community Edition</strong> with <strong>PHP   		 5.2</strong> run:</p>
<p># aptitude  		 install  zend-server-ce-php-5.2</p>
<p>To  install <strong>Zend Server   Community Edition</strong> with <strong>PHP  		 5.3</strong> run:</p>
<p>#  aptitude  		 install zend-server-ce-php-5.3</p>
<li><strong>configure server for all users:</strong></li>
<p>Zend Server is now installed in the /usr/local/zend  directory.  The  php, pear, pecl, and apachectl binaries are in the bin  directory.  So  you will probably want to put them into your PATH.</p>
<p>To  add the  /usr/local/zend/bin  		 directory to your  $PATH environment variable  for all users:</p>
<p>Log  			 in as  root or use sudo to execute the  following commands.<br />
Using  			 a text editor, open /etc/profile.<br />
Add  			 the following lines to the end of the file:</p>
<p>PATH=$PATH:/usr/local/zend/bin</p>
<p>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib</p>
<p>Save  the file.</p>
<p>In order for this to  take effect, close and  			  reopen your shell or run the following  command:</p>
<p>source  /etc/profile</p>
<p>You  		 can now run the PHP binary provided by Zend  Server  Community Edition  		 without typing its full path.</ol>
</li>
<li><strong>Mysql</strong>
<ol>
<li>#apt-get install mysql-server</li>
</ol>
</li>
<li><strong>SSH Server</strong>
<ol>
<li>#apt-get install openssh-server</li>
</ol>
</li>
</ol>
<p><strong>Extra configurations</strong></p>
<blockquote><p>You can add some extra color and stuff to the prompt by adding the following to /etc/profile:</p>
<p>export CLICOLOR=1<br />
export LSCOLORS=ExFxCxDxBxegedabagacad<br />
export VISUAL=/usr/bin/nano<br />
export EDITOR=/usr/bin/nano</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://roymerrill.com/?feed=rss2&amp;p=4</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

