<?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>Mark Evans - Web Consultant</title>
	<atom:link href="http://www.markalanevans.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markalanevans.com</link>
	<description>Resourceful...Efficient...Productive</description>
	<lastBuildDate>Sun, 22 Aug 2010 19:57:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing Git on Westhost &amp; Redhat</title>
		<link>http://www.markalanevans.com/2010/08/22/installing-git-on-westhost-redhat/</link>
		<comments>http://www.markalanevans.com/2010/08/22/installing-git-on-westhost-redhat/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 19:57:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=281</guid>
		<description><![CDATA[Install Python using your web installs download the latest source from git make NO_CURL=1 NO_MSGFMT=YesPlease NO_TCLTK=YesPlease prefix=/usr/local install That should do it.]]></description>
			<content:encoded><![CDATA[<ol>
<li>Install Python using your web installs</li>
<li>download the latest source from git</li>
<li>make NO_CURL=1 NO_MSGFMT=YesPlease NO_TCLTK=YesPlease prefix=/usr/local install</li>
<li>That should do it.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/08/22/installing-git-on-westhost-redhat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Apache &amp; SSL on OSX Leapord</title>
		<link>http://www.markalanevans.com/2010/08/02/setting-up-apache-ssl-on-osx-leapord/</link>
		<comments>http://www.markalanevans.com/2010/08/02/setting-up-apache-ssl-on-osx-leapord/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 20:44:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=272</guid>
		<description><![CDATA[Task: Configure my localhost &#38; apache to allow for ssl. Solution: Go here: http://developer.apple.com/internet/serverside/modssl.html Note: when asked for &#8220;Common Name&#8221; when creating your certificate file, instead of using the 127.0.0.1 use the domain name you are going to use for development. ie: www.mysite.local # # This is the Apache server configuration file providing SSL support. [...]]]></description>
			<content:encoded><![CDATA[<h2>Task:</h2>
<p style="padding-left: 30px;">Configure my localhost &amp; apache to allow for ssl.</p>
<h2>Solution:</h2>
<ul>
<li>Go here: http://developer.apple.com/internet/serverside/modssl.html
<ul>
<li>Note: when asked for &#8220;Common Name&#8221; when creating your certificate file, instead of using the 127.0.0.1 use the domain name you are going to use for development. ie: www.mysite.local</li>
<li>
<blockquote><pre>#
# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to
# serve pages over an https connection. For detailing information about these
# directives see
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#

#
# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the PRNG of the SSL library.
# The seed data should be of good random quality.
# WARNING! On some platforms /dev/random blocks if not enough entropy
# is available. This means you then cannot use the /dev/random device
# because it would lead to very long connection times (as long as
# it requires to make more entropy available). But usually those
# platforms additionally provide a /dev/urandom device which doesn't
# block. So, if available, use this one instead. Read the mod_ssl User
# Manual for more details.
#
#SSLRandomSeed startup file:/dev/random  512
#SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random  512
#SSLRandomSeed connect file:/dev/urandom 512

#
# When we also provide SSL we have to listen to the
# standard HTTP port (see above) and to the HTTPS port
#
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
#       Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
Listen 443
NameVirtualHost *:443

##
##  SSL Global Context
##
##  All SSL configuration in this context applies both to
##  the main server and all SSL-enabled virtual hosts.
##

#
#   Some MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#   Pass Phrase Dialog:
#   Configure the pass phrase gathering process.
#   The filtering dialog program (`builtin' is a internal
#   terminal dialog) has to provide the pass phrase on stdout.
SSLPassPhraseDialog  builtin

#   Inter-Process Session Cache:
#   Configure the SSL Session Cache: First the mechanism
#   to use and second the expiring timeout (in seconds).
#SSLSessionCache         "dbm:/private/var/run/ssl_scache"
SSLSessionCache        "shmcb:/private/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout  300

#   Semaphore:
#   Configure the path to the mutual exclusion semaphore the
#   SSL engine uses internally for inter-process synchronization.
SSLMutex  "file:/private/var/run/ssl_mutex"

##
## SSL Virtual Host Context
##
ServerName www.mysite.local
ServerAlias www.mysite.local
#   General setup for the virtual host
DocumentRoot "/Users/markevans/Sites/www.mysite.com"
ServerAdmin mark@mysite.com

ErrorLog "/Users/markevans/Sites/logs/www.mysite.com/error_log"
CustomLog "/Users/markevans/Sites/logs/www.mysite.com/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /Users/markevans/Sites/sslcerts/www.mysite.com/server.crt
SSLCertificateKeyFile /Users/markevans/Sites/sslcerts/www.mysite.com/server.key</pre>
</blockquote>
</li>
</ul>
</li>
<li>Handy Degbugging Command lines
<ul>
<li>sudo apachectl configtest</li>
<li>http -S</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/08/02/setting-up-apache-ssl-on-osx-leapord/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single .htaccess file in your git repo for both your dev and production server</title>
		<link>http://www.markalanevans.com/2010/07/30/single-htaccess-file-for-both-your-dev-and-production-code/</link>
		<comments>http://www.markalanevans.com/2010/07/30/single-htaccess-file-for-both-your-dev-and-production-code/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 00:23:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=268</guid>
		<description><![CDATA[Problem: You want to have dev.yoursite.com and www.yoursite.com but you don&#8217;t want dev.yoursite.com visible to the public. Solution: If your using apache(which many of us are), .htaccess and .htpasswd to the rescue. In your .htaccess file add: SetEnvIf Host yourstagingserver.com passreq AuthType Basic AuthName &#8220;Staging Server&#8221; AuthUserFile /path/to/.htpasswd Require valid-user Order allow,deny Allow from all [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem:</h2>
<p style="padding-left: 30px;">You want to have dev.yoursite.com and www.yoursite.com but you don&#8217;t want dev.yoursite.com visible to the public.</p>
<h2>Solution:</h2>
<p style="padding-left: 30px;">If your using apache(which many of us are),</p>
<blockquote><p> <strong>.htaccess</strong> and <strong>.htpasswd</strong> to the rescue.</p></blockquote>
<p style="padding-left: 30px;">In your .htaccess file add:</p>
<blockquote><p>
SetEnvIf Host yourstagingserver.com passreq<br />
AuthType Basic<br />
AuthName &#8220;Staging Server&#8221;<br />
AuthUserFile /path/to/.htpasswd<br />
Require valid-user<br />
Order allow,deny<br />
Allow from all<br />
Deny from env=passreq<br />
Satisfy any</p></blockquote>
<h3 style="padding-left: 30px;">Configure your password file on both dev &amp; production</h3>
<p style="padding-left: 30px;">Wherever you specify the /path/to/.htpasswd file navigate to that folder from the console and type &#8220;htpasswd -c .htpasswd mark&#8221;   where mark is the first user you want to create a login for. For each additonal person type &#8220;htpasswd .htpasswd linda&#8221;  where linda is the next username you want to add to the .htpasswd file. Each time  it will  prompt you to type in the password twice.(your password will be stored in the .htpasswd file) encrypted next to the username you created.</p>
<p style="padding-left: 30px;">*<strong>Note</strong>:</p>
<p style="padding-left: 60px;"><strong><code>AuthUserFile</code></strong><code> expects an absolute path, but if you don't start your path with a forward slash, it defaults to the directory you specify in your httpd.conf file as ServerRoot.<br />
</code></p>
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">
<p style="padding-left: 30px;">
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/07/30/single-htaccess-file-for-both-your-dev-and-production-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Country Codes in PHP Array</title>
		<link>http://www.markalanevans.com/2010/07/27/country-codes-in-php-array/</link>
		<comments>http://www.markalanevans.com/2010/07/27/country-codes-in-php-array/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 17:12:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=265</guid>
		<description><![CDATA[$options["AF"] = "Afghanistan"; $options["AX"] = "Åland Islands "; $options["AL"] = "Albania "; $options["DZ"] = "Algeria "; $options["AS"] = "American Samoa "; $options["AD"] = "Andorra"; $options["AO"] = "Angola "; $options["AI"] = "Anguilla "; $options["AQ"] = "Antarctica "; $options["AG"] = "Antigua and Barbuda "; $options["AR"] = "Argentina"; $options["AM"] = "Armenia "; $options["AW"] = "Aruba "; $options["AU"] = [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
$options["AF"] = "Afghanistan";<br />
$options["AX"] = "Åland Islands ";<br />
$options["AL"] = "Albania ";<br />
$options["DZ"] = "Algeria ";<br />
$options["AS"] = "American Samoa ";<br />
$options["AD"] = "Andorra";<br />
$options["AO"] = "Angola ";<br />
$options["AI"] = "Anguilla ";<br />
$options["AQ"] = "Antarctica ";<br />
$options["AG"] = "Antigua and Barbuda ";<br />
$options["AR"] = "Argentina";<br />
$options["AM"] = "Armenia ";<br />
$options["AW"] = "Aruba ";<br />
$options["AU"] = "Australia ";<br />
$options["AT"] = "Austria ";<br />
$options["AZ"] = "Azerbaijan";<br />
$options["BS"] = "Bahamas ";<br />
$options["BH"] = "Bahrain ";<br />
$options["BD"] = "Bangladesh ";<br />
$options["BB"] = "Barbados ";<br />
$options["BY"] = "Belarus";<br />
$options["BE"] = "Belgium ";<br />
$options["BZ"] = "Belize ";<br />
$options["BJ"] = "Benin ";<br />
$options["BM"] = "Bermuda ";<br />
$options["BT"] = "Bhutan";<br />
$options["BO"] = "Bolivia ";<br />
$options["BA"] = "Bosnia and Herzegovina ";<br />
$options["BW"] = "Botswana ";<br />
$options["BV"] = "Bouvet Island ";<br />
$options["BR"] = "Brazil";<br />
$options["IO"] = "British Indian Ocean Territory ";<br />
$options["BN"] = "Brunei Darussalam ";<br />
$options["BG"] = "Bulgaria ";<br />
$options["BF"] = "Burkina Faso ";<br />
$options["BI"] = "Burundi";<br />
$options["KH"] = "Cambodia ";<br />
$options["CM"] = "Cameroon ";<br />
$options["CA"] = "Canada ";<br />
$options["CV"] = "Cape Verde ";<br />
$options["KY"] = "Cayman Islands ";<br />
$options["CF"] = "Central African Republic ";<br />
$options["TD"] = "Chad ";<br />
$options["CL"] = "Chile ";<br />
$options["CN"] = "China ";<br />
$options["CX"] = "Christmas Island";<br />
$options["CC"] = "Cocos (Keeling) Islands ";<br />
$options["CO"] = "Colombia ";<br />
$options["KM"] = "Comoros ";<br />
$options["CG"] = "Congo ";<br />
$options["CD"] = "Congo, the Democratic Republic of the";<br />
$options["CK"] = "Cook Islands ";<br />
$options["CR"] = "Costa Rica ";<br />
$options["CI"] = "Côte D'Ivoire";<br />
$options["HR"] = "Croatia ";<br />
$options["CU"] = "Cuba ";<br />
$options["CY"] = "Cyprus ";<br />
$options["CZ"] = "Czech Republic ";<br />
$options["DK"] = "Denmark";<br />
$options["DJ"] = "Djibouti ";<br />
$options["DM"] = "Dominica ";<br />
$options["DO"] = "Dominican Republic ";<br />
$options["EC"] = "Ecuador ";<br />
$options["EG"] = "Egypt";<br />
$options["SV"] = "El Salvador ";<br />
$options["GQ"] = "Equatorial Guinea ";<br />
$options["ER"] = "Eritrea ";<br />
$options["EE"] = "Estonia ";<br />
$options["ET"] = "Ethiopia ";<br />
$options["FK"] = "Falkland Islands (Malvinas) ";<br />
$options["FO"] = "Faroe Islands ";<br />
$options["FJ"] = "Fiji ";<br />
$options["FI"] = "Finland ";<br />
$options["FR"] = "France";<br />
$options["GF"] = "French Guiana ";<br />
$options["PF"] = "French Polynesia ";<br />
$options["TF"] = "French Southern Territories ";<br />
$options["GA"] = "Gabon ";<br />
$options["GM"] = "Gambia ";<br />
$options["GE"] = "Georgia ";<br />
$options["DE"] = "Germany ";<br />
$options["GH"] = "Ghana ";<br />
$options["GI"] = "Gibraltar ";<br />
$options["GR"] = "Greece";<br />
$options["GL"] = "Greenland ";<br />
$options["GD"] = "Grenada ";<br />
$options["GP"] = "Guadeloupe ";<br />
$options["GU"] = "Guam ";<br />
$options["GT"] = "Guatemala";<br />
$options["GG"] = "Guernsey ";<br />
$options["GN"] = "Guinea ";<br />
$options["GW"] = "Guinea-Bissau ";<br />
$options["GY"] = "Guyana ";<br />
$options["HT"] = "Haiti";<br />
$options["HM"] = "Heard Island and Mcdonald Islands ";<br />
$options["VA"] = "Holy See (Vatican City State) ";<br />
$options["HN"] = "Honduras ";<br />
$options["HK"] = "Hong Kong ";<br />
$options["HU"] = "Hungary";<br />
$options["IS"] = "Iceland ";<br />
$options["IN"] = "India ";<br />
$options["ID"] = "Indonesia ";<br />
$options["IR"] = "Iran, Islamic Republic of ";<br />
$options["IQ"] = "Iraq ";<br />
$options["IE"] = "Ireland ";<br />
$options["IM"] = "Isle of Man ";<br />
$options["IL"] = "Israel ";<br />
$options["IT"] = "Italy ";<br />
$options["JM"] = "Jamaica";<br />
$options["JP"] = "Japan ";<br />
$options["JE"] = "Jersey ";<br />
$options["JO"] = "Jordan ";<br />
$options["KZ"] = "Kazakhstan ";<br />
$options["KE"] = "KENYA";<br />
$options["KI"] = "Kiribati ";<br />
$options["KP"] = "Korea, Democratic People's Republic of ";<br />
$options["KR"] = "Korea, Republic of ";<br />
$options["KW"] = "Kuwait ";<br />
$options["KG"] = "Kyrgyzstan";<br />
$options["LA"] = "Lao People's Democratic Republic ";<br />
$options["LV"] = "Latvia ";<br />
$options["LB"] = "Lebanon ";<br />
$options["LS"] = "Lesotho ";<br />
$options["LR"] = "Liberia";<br />
$options["LY"] = "Libyan Arab Jamahiriya ";<br />
$options["LI"] = "Liechtenstein ";<br />
$options["LT"] = "Lithuania ";<br />
$options["LU"] = "Luxembourg ";<br />
$options["MO"] = "Macao";<br />
$options["MK"] = "Macedonia, the Former Yugoslav Republic of ";<br />
$options["MG"] = "Madagascar ";<br />
$options["MW"] = "Malawi ";<br />
$options["MY"] = "Malaysia ";<br />
$options["MV"] = "Maldives";<br />
$options["ML"] = "Mali ";<br />
$options["MT"] = "Malta ";<br />
$options["MH"] = "Marshall Islands ";<br />
$options["MQ"] = "Martinique ";<br />
$options["MR"] = "Mauritania";<br />
$options["MU"] = "Mauritius ";<br />
$options["YT"] = "Mayotte ";<br />
$options["MX"] = "Mexico ";<br />
$options["FM"] = "Micronesia, Federated States of ";<br />
$options["MD"] = "Moldova, Republic of";<br />
$options["MC"] = "Monaco ";<br />
$options["MN"] = "Mongolia ";<br />
$options["ME"] = "Montenegro ";<br />
$options["MS"] = "Montserrat ";<br />
$options["MA"] = "Morocco";<br />
$options["MZ"] = "Mozambique ";<br />
$options["MM"] = "Myanmar ";<br />
$options["NA"] = "Namibia ";<br />
$options["NR"] = "Nauru ";<br />
$options["NP"] = "Nepal";<br />
$options["NL"] = "Netherlands ";<br />
$options["AN"] = "Netherlands Antilles ";<br />
$options["NC"] = "New Caledonia ";<br />
$options["NZ"] = "New Zealand ";<br />
$options["NI"] = "Nicaragua";<br />
$options["NE"] = "Niger ";<br />
$options["NG"] = "Nigeria ";<br />
$options["NU"] = "Niue ";<br />
$options["NF"] = "Norfolk Island ";<br />
$options["MP"] = "Northern Mariana Islands";<br />
$options["NO"] = "Norway ";<br />
$options["OM"] = "Oman ";<br />
$options["PK"] = "Pakistan ";<br />
$options["PW"] = "Palau ";<br />
$options["PS"] = "Palestinian Territory, Occupied";<br />
$options["PA"] = "Panama ";<br />
$options["PG"] = "Papua New Guinea ";<br />
$options["PY"] = "Paraguay ";<br />
$options["PE"] = "Peru ";<br />
$options["PH"] = "Philippines";<br />
$options["PN"] = "Pitcairn ";<br />
$options["PL"] = "Poland ";<br />
$options["PT"] = "Portugal ";<br />
$options["PR"] = "Puerto Rico ";<br />
$options["QA"] = "Qatar";<br />
$options["RE"] = "Réunion ";<br />
$options["RO"] = "Romania ";<br />
$options["RU"] = "Russian Federation ";<br />
$options["RW"] = "Rwanda ";<br />
$options["SH"] = "Saint Helena";<br />
$options["KN"] = "Saint Kitts and Nevis ";<br />
$options["LC"] = "Saint Lucia ";<br />
$options["PM"] = "Saint Pierre and Miquelon ";<br />
$options["VC"] = "Saint Vincent and the Grenadines ";<br />
$options["WS"] = "Samoa";<br />
$options["SM"] = "San Marino ";<br />
$options["ST"] = "Sao Tome and Principe ";<br />
$options["SA"] = "Saudi Arabia ";<br />
$options["SN"] = "Senegal ";<br />
$options["RS"] = "Serbia";<br />
$options["SC"] = "Seychelles ";<br />
$options["SL"] = "Sierra Leone ";<br />
$options["SG"] = "Singapore ";<br />
$options["SK"] = "Slovakia ";<br />
$options["SI"] = "Slovenia";<br />
$options["SB"] = "Solomon Islands ";<br />
$options["SO"] = "Somalia ";<br />
$options["ZA"] = "South Africa ";<br />
$options["GS"] = "South Georgia and the South Sandwich Islands ";<br />
$options["ES"] = "Spain";<br />
$options["LK"] = "Sri Lanka ";<br />
$options["SD"] = "Sudan ";<br />
$options["SR"] = "Suriname ";<br />
$options["SJ"] = "Svalbard and Jan Mayen ";<br />
$options["SZ"] = "Swaziland";<br />
$options["SE"] = "Sweden ";<br />
$options["CH"] = "Switzerland ";<br />
$options["SY"] = "Syrian Arab Republic ";<br />
$options["TW"] = "Taiwan, Province of China ";<br />
$options["TJ"] = "Tajikistan";<br />
$options["TZ"] = "Tanzania, United Republic of ";<br />
$options["TH"] = "Thailand ";<br />
$options["TL"] = "Timor-Leste ";<br />
$options["TG"] = "Togo ";<br />
$options["TK"] = "Tokelau";<br />
$options["TO"] = "Tonga ";<br />
$options["TT"] = "Trinidad and Tobago ";<br />
$options["TN"] = "Tunisia ";<br />
$options["TR"] = "Turkey ";<br />
$options["TM"] = "Turkmenistan";<br />
$options["TC"] = "Turks and Caicos Islands ";<br />
$options["TV"] = "Tuvalu ";<br />
$options["UG"] = "Uganda ";<br />
$options["UA"] = "Ukraine ";<br />
$options["AE"] = "United Arab Emirates";<br />
$options["GB"] = "United Kingdom ";<br />
$options["US"] = "United States ";<br />
$options["UM"] = "United States Minor Outlying Islands ";<br />
$options["UY"] = "Uruguay ";<br />
$options["UZ"] = "Uzbekistan";<br />
$options["VU"] = "Vanuatu ";<br />
$options["VA"] = "Vatican City State ";<br />
$options["VE"] = "Venezuela ";<br />
$options["VN"] = "Viet Nam ";<br />
$options["VG"] = "Virgin Islands, British ";<br />
$options["VI"] = "Virgin Islands, U.S. ";<br />
$options["WF"] = "Wallis and Futuna";<br />
$options["EH"] = "Western Sahara ";<br />
$options["YE"] = "Yemen ";<br />
$options["CD"] = "Zaire ";<br />
$options["ZM"] = "Zambia ";<br />
$options["ZW"] = "Zimbabwe ";<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/07/27/country-codes-in-php-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Rackspace Tutorials</title>
		<link>http://www.markalanevans.com/2010/07/05/useful-rackspace-tutorials/</link>
		<comments>http://www.markalanevans.com/2010/07/05/useful-rackspace-tutorials/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 23:37:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=235</guid>
		<description><![CDATA[Apache Configuration Virtual Hosts(sites-available &#38; sites-active): http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Virtual_Hosts http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Configuration_Layout Security: (SSH Keys): http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security IPTables : http://cloudservers.rackspacecloud.com/index.php/Sample_iptables_ruleset APT-GET Repositories : For some reason the ubunto distro 9.04 didn&#8217;t have these added to its apt-get sources.list. So I added them. deb http://us.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe Installing Ruby: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Apache Configuration</strong><br />
<strong>Virtual Hosts(sites-available &amp; sites-active):</strong></p>
<blockquote><p>
<a href="# http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Virtual_Hosts">http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Virtual_Hosts</a><br />
<a href="http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Configuration_Layout">http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Configuration_Layout</a>
</p></blockquote>
<p><strong>Security: (SSH Keys):</strong></p>
<blockquote><p><a href="http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security">http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security</a>
</p></blockquote>
<p><strong>IPTables :</strong></p>
<blockquote>
<p>http://cloudservers.rackspacecloud.com/index.php/Sample_iptables_ruleset</p>
</blockquote>
<p><strong>APT-GET Repositories :</strong><br />
For some reason the ubunto distro 9.04 didn&#8217;t have these added to its apt-get sources.list. So I added them.</p>
<blockquote><p>deb http://us.archive.ubuntu.com/ubuntu/ hardy universe<br />
	deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe<br />
	deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe<br />
	deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
</p></blockquote>
<p><strong>Installing Ruby:</strong></p>
<blockquote><p>
sudo apt-get install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev<br />
mkdir ~/src &amp;&amp; cd ~/src<br />
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz<br />
tar -xvf ruby-1.9.1-p0.tar.gz<br />
cd ruby-1.9.1-p0<br />
./configure<br />
make<br />
make test<br />
sudo make install
</p></blockquote>
<p><strong>Install Rails</strong></p>
<blockquote><p>
sudo gem update &#8211;system<br />
sudo gem install rails
</p></blockquote>
<p><strong>Install Ruby Mysql Modul </strong></p>
<blockquote><p>
sudo gem install mysql
</p></blockquote>
<p>Sources:<br />
<a href="http://rudygems.com/post/99075288/ruby-191-install">http://rudygems.com/post/99075288/ruby-191-install</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/07/05/useful-rackspace-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux command that are handy when configuring a new server</title>
		<link>http://www.markalanevans.com/2010/07/05/linux-command-that-are-handy-when-configuring-a-new-server/</link>
		<comments>http://www.markalanevans.com/2010/07/05/linux-command-that-are-handy-when-configuring-a-new-server/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 23:05:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=225</guid>
		<description><![CDATA[To view a user’s groups: “id [user]” Add a user to a group : useradd -G {group-name} username Add a user to multiple groups: usermod -a -G group1,group2 username Change a users primary group: usermod -g group user Add a group to a user usermod -a -G group user Get a list of the groups: [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>To view a user’s groups:<br />
<blockquote><p>“id [user]”</p></blockquote>
</li>
<li>Add a user to a group :<br />
<blockquote><p>useradd -G {<span style="color: #996633;">group-name</span>}  <span style="color: #663333;">username</span></p></blockquote>
</li>
<li>Add a user to multiple groups:<br />
<blockquote><p>usermod -a -G group1,group2 username
</p></blockquote>
</li>
<li><span style="color: #663333;"><span style="color: #000000;"><br />
</span></span></li>
<li> Change  a users primary group:<br />
<blockquote><p>usermod -g group user</p></blockquote>
</li>
<li>Add a group to a user<br />
<blockquote><p>usermod -a -G group user</p></blockquote>
</li>
<li>Get a list of the groups:<br />
<blockquote><p>less /etc/group</p></blockquote>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/07/05/linux-command-that-are-handy-when-configuring-a-new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbox &amp; Git&#8230; Don&#8217;t drop a git repo in GIT</title>
		<link>http://www.markalanevans.com/2010/07/05/dropbox-git-dont-drop-a-git-repo-in-git/</link>
		<comments>http://www.markalanevans.com/2010/07/05/dropbox-git-dont-drop-a-git-repo-in-git/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 23:00:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Don't Do This]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=223</guid>
		<description><![CDATA[Today i accidentally dropped a folder that had a git repo inside it into a dropbox folder. Massive Memory Hog trying to index it both on update and delete&#8230;.]]></description>
			<content:encoded><![CDATA[<p>Today i accidentally dropped a folder that had a git repo inside it into a dropbox folder.</p>
<p>Massive Memory Hog trying to index it both on update and delete&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/07/05/dropbox-git-dont-drop-a-git-repo-in-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX and Apache .htaccess allow mode rewrite</title>
		<link>http://www.markalanevans.com/2010/01/28/osx-and-apache-htaccess-allow-mode-rewrite/</link>
		<comments>http://www.markalanevans.com/2010/01/28/osx-and-apache-htaccess-allow-mode-rewrite/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 05:36:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=157</guid>
		<description><![CDATA[So today i had to get Apache, PHP and Mysql running again on my macbook after installing a new hardrive. PHP is installed already so thats fine. Mysql a simple download and install. I stick to the 32 bit for now as it not everything plays nicely w/ the 64 bit. Especially not with Python. [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>So today i had to get Apache, PHP and Mysql running again on my macbook after installing a new hardrive.</p>
<p>PHP is installed already so thats fine. Mysql a simple download and install.  I stick to the 32 bit for now as it not everything plays nicely w/ the 64 bit. Especially not with Python.</p>
<p>Apache is naturally installed. Just need to turn on/off the internet sharing within the System Preferences Pane.</p>
<p>Then comes the tricky part.</p>
<p>In the http.conf file:   ensure that the line including the ModRewrite module is uncommented.</p>
<p>The line will look like this:</p>
<p><code>LoadModule rewrite_module libexec/apache2/mod_rewrite.so </code></p>
<p>Then go down to your system directive:</p>
<p>And make it look like this:<br />
<code><br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
# Order deny,allow<br />
# Deny from all<br />
&lt;/Directory&gt;</code></p>
<p>Also ensure that in the /etc/apache2/users/username.conf file that it looks like:<br />
<code><br />
&lt;Directory "/Users/username/Sites/"&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride all<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</code></p>
<p>Additionally when defining your Extra Virtual hosts: Make sure to enable all the error logs etc:</p>
<p>ex:<br />
<code><br />
&lt;VirtualHost *:80&gt;<br />
ServerAdmin username@gmail.com<br />
DocumentRoot /Users/username/Sites/my.site.com<br />
ServerName local.site.com<br />
ServerAlias local.site.com<br />
RewriteLog "/Users/username/Sites/logs/my.site.com/rewrite_log"<br />
ErrorLog "/Users/username/Sites/logs/my.site.com/error_log"<br />
CustomLog "/Users/username/Sites/logs/my.site.com/access_log" common<br />
&lt;/VirtualHost&gt;</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2010/01/28/osx-and-apache-htaccess-allow-mode-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP &#8211; Override .htacces to ignore directory</title>
		<link>http://www.markalanevans.com/2009/11/04/cakephp-override-htacces-to-ignore-directory/</link>
		<comments>http://www.markalanevans.com/2009/11/04/cakephp-override-htacces-to-ignore-directory/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:23:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=135</guid>
		<description><![CDATA[&#60;IfModule mod_rewrite.c&#62; RewriteEngine on RewriteRule    ^manager    -    [L] RewriteRule    ^pma    -    [L] RewriteRule    ^fm    -    [L] RewriteRule    ^$ app/webroot/    [L] RewriteRule    (.*) app/webroot/$1 [L] &#60;/IfModule&#62;]]></description>
			<content:encoded><![CDATA[<p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine on<br />
RewriteRule    ^manager    -    [L]<br />
RewriteRule    ^pma    -    [L]<br />
RewriteRule    ^fm    -    [L]<br />
RewriteRule    ^$ app/webroot/    [L]<br />
RewriteRule    (.*) app/webroot/$1 [L]<br />
&lt;/IfModule&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/11/04/cakephp-override-htacces-to-ignore-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can-Do.org  &#8211; Virtual Volunteer &#8211; Crow Creek Indian Reservation</title>
		<link>http://www.markalanevans.com/2009/10/15/can-doorg-virtual-volunteer-crow-creek-indian-reservation/</link>
		<comments>http://www.markalanevans.com/2009/10/15/can-doorg-virtual-volunteer-crow-creek-indian-reservation/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 05:57:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Changing the world]]></category>

		<guid isPermaLink="false">http://www.markalanevans.com/?p=131</guid>
		<description><![CDATA[Project Crow Creek &#38; Can-DO.org Bringing accountability and transparency to the Donation industry, we offer the tools to track your generosity from your hands, directly through to the end recipient, with nothing cut out for miscellaneous fees. Together, we can avoid the Donation Black Hole problem perpetuated by many charities. You will not need to [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Can-Do &amp; Virtual Volunteer Making a difference at Crow Creek" href="http://www.can-do.org/virtualvolunteer/projectcrowcreek/" target="_blank">Project Crow Creek &amp; Can-DO.org</a></p>
<p>Bringing accountability and transparency to the Donation industry, we offer the tools to track your generosity from your hands, directly through to the end recipient, with nothing cut out for miscellaneous fees. Together, we can avoid the Donation Black Hole problem perpetuated by many charities. You will not need to wonder about where your money goes, we will show you every step of the way through a trackable, database. And more importantly, you can interact directly with those whose lives you have impacted, and follow their progress.</p>
<div class="wp-caption alignnone" style="width: 754px"><a href="http://www.can-do.org/virtualvolunteer/projectcrowcreek"><img title="Virtual Volunteer &amp; Crow Creek Project" src="http://www.can-do.org/virtualvolunteer/projectcrowcreek/img/flag_default_image.png" alt="US Flag worn and weathered." width="744" height="410" /></a><p class="wp-caption-text">US Flag worn and weathered.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.markalanevans.com/2009/10/15/can-doorg-virtual-volunteer-crow-creek-indian-reservation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
