<?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>Hello.World &#187; Web Servers</title>
	<atom:link href="http://matthew.delmarters.com/weblog/category/web-development/web-servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthew.delmarters.com</link>
	<description>The Blog of Matthew Delmarter</description>
	<lastBuildDate>Sat, 10 Dec 2011 09:42:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Missing PuTTY on your Mac? Use the alias command</title>
		<link>http://matthew.delmarters.com/weblog/missing-putty-on-your-mac-use-the-alias-command/</link>
		<comments>http://matthew.delmarters.com/weblog/missing-putty-on-your-mac-use-the-alias-command/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 06:53:01 +0000</pubDate>
		<dc:creator>Matthew Delmarter</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Web Servers]]></category>

		<guid isPermaLink="false">http://matthew.delmarters.com/?p=318</guid>
		<description><![CDATA[If you have moved to Mac OS X from Windows you may be like me and miss the convenience of the saved server settings in PuTTY. These settings allowed you to telnet/ssh into your servers without having to remember the IP of each one. There are numerous ways around this of course, but here is [...]]]></description>
			<content:encoded><![CDATA[<p>If you have moved to Mac OS X from Windows you may be like me and miss the convenience of the saved server settings in <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>. These settings allowed you to telnet/ssh into your servers without having to remember the IP of each one. There are numerous ways around this of course, but here is a tip that may come in handy&#8230;</p>
<p><strong>Use Alias Shortcuts</strong></p>
<p>The 'alias' command allows you to create an alias, or shortcut, to a longer command. For example you could create a shortcut to open TextEdit from the command line like so:</p>
<ul>
<li>Open the Terminal app</li>
<li>Type  the following: 
<div class="VisualSyntax"><code><span style="color: #000000"><br />
alias&nbsp;te='open&nbsp;/Applications/TextEdit.app/'</span><br />
</code></div>
</li>
<li>Press Enter</li>
<li>Now type "te". TextEdit should open</li>
</ul>
<p>So how can we use the alias command to replace the convenience of PuTTY and log into servers easily?</p>
<p>We can create shortcuts for servers that we frequently log into. For example in the Terminal type the following:</p>
<div class="VisualSyntax"><code><span style="color: #000000"><br />
alias&nbsp;myserver='ssh&nbsp;username@xxx.xxx.xxx.xxx'</span><br />
</code></div>
<p>Where:</p>
<ul>
<li>myserver = the name of your alias/shortcut</li>
<li>username = a valid user on the server</li>
<li>xxx.xxx.xxx.xxx = the server IP address</li>
</ul>
<p>Now you can ssh to that server by simply typing "myserver". This should prompt you for your password &#8211; enter that and you're in!</p>
<p><strong>Use .bash_profile to save aliases</strong></p>
<p>At the moment if you close your Terminal, and then re-open it, your aliases will have been forgotten. So how do we tell Terminal to remember them permanently? The trick is to create a .bash_profile file for your Mac user. This file should exist in your Mac home directory. To create this file follow these steps:</p>
<ul>
<li>Open the Terminal app</li>
<li>Type the following:
<div class="VisualSyntax"><code><span style="color: #000000"><br />
vi&nbsp;~/.bash_profile</span><br />
</code></div>
</li>
<li>This will open a new blank file in the "vi" editor</li>
<li>Press "i" once &#8211; this puts the editor into "insert" mode</li>
<li>Put your alias command into the file (same as above) &#8211; paste using Ctrl+V, or type it</li>
<li>Press the Esc key once</li>
<li>Type ":wq" to finish editing the file and save it to disk</li>
<li>Now close your Terminal app, and reopen it. Your alias should now be working.</li>
</ul>
<p><strong>Note:</strong> If you have <a href="http://macromates.com/">TextMate</a> installed (which I highly recommend) then at the command line just type "mate ~/.bash_profile" (instead of using "vi"). This will open a blank file in TextMate. Then type in the alias command as above and save the file. Then close and reopen the Terminal app.</p>
<p>This was just a quick overview for those who can work out the details from the clues above. Even if you do not use aliases to shortcut logging in to servers they are handy to know about.</p>
<p>Happy aliasing!</p>
]]></content:encoded>
			<wfw:commentRss>http://matthew.delmarters.com/weblog/missing-putty-on-your-mac-use-the-alias-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website Log Analysis Tools &#8211; Which do you prefer?</title>
		<link>http://matthew.delmarters.com/weblog/website-log-analysis-which-do-you-prefer/</link>
		<comments>http://matthew.delmarters.com/weblog/website-log-analysis-which-do-you-prefer/#comments</comments>
		<pubDate>Wed, 04 Jan 2006 15:41:21 +0000</pubDate>
		<dc:creator>Matthew Delmarter</dc:creator>
				<category><![CDATA[Web Servers]]></category>

		<guid isPermaLink="false">http://matthew.delmarters.com/weblog/website-log-analysis-which-do-you-prefer/</guid>
		<description><![CDATA[Here is a nice review of some of the current log analysis tools out there. Most of the Linux hosting companies I have worked with offer Webalizer by default. However after having a fresh look at AWStats I would have to agree that it offers superior reports and interface. This feature comparison says it all. [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a nice <a target="_blank" href="http://www.serverwatch.com/tutorials/article.php/3518061">review</a> of some of the current log analysis tools out there. Most of the Linux hosting companies I have worked with offer <a target="_blank" href="http://www.mrunix.net/webalizer/">Webalizer</a> by default. However after having a fresh look at <a target="_blank" href="http://awstats.sourceforge.net/">AWStats</a> I would have to agree that it offers superior reports and interface. This <a target="_blank" href="http://awstats.sourceforge.net/docs/awstats_compare.html">feature comparison</a> says it all. From a reporting perspective I personally would like to see AWStats offered by web hosting companies out of the box (over Webalizer). What do you think?</p>
<p>The main reason Webalizer is preferred by hosting companies is because it is extremely fast and thus minimises load when generating reports for multiple websites on a shared server. Any comments on this? How does AWStats compare here?<!--74a0ad76fe60e347741fc82ba04ea84c--><!--4e1a3d6bc9696a07b37621d80f5d6af2--></p>
]]></content:encoded>
			<wfw:commentRss>http://matthew.delmarters.com/weblog/website-log-analysis-which-do-you-prefer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

