acloudtree

Clint Michigan rocking Grey’s Anatomy

My wife and I picked up the Clint Michigan album (and by “picked up” we all know I mean downloaded from iTunes) back in June. Clint Michigan is actually a folk duo and the male half the the team just so happens to be my wife’s Cousin.

There is a song on the album that really resonates with me called “Hawthorne To Hennepin”. Like me, Clint also lost his brother, and there is a wonderful lyric in the song that sings “What my brother could have been, thats what I’ve been wonderin’…” and it spoke pretty deeply to me. Because that is a common thought of mine that I will most likely continue to have for the rest of my life.

Yesterday, Jaimi (my wife) was watching a recording of a popular show that she enjoys called “Grey’s Anatomy”, when a song started playing in the background. She recognized it but because of the fact that the song was on a show that averages 20 million viewers, she had a hard time thinking of the band’s name. Suddenly it struck her, “Thats Clint’s Band!!!” and she called me at work all excited. You could hear in her voice that she was just tickled.

Anyway, I don’t plug music I don’t like. But I really enjoy Clint Michigan. And Jaimi and I couldn’t be more excited for their big success. So here are some links below. And if you happen to like what you hear, please throw them a couple bucks by downloading a song or two from Amazon or iTunes.

MySpace

Amazon

iTunes

Shadows lurking

I read Tim Duy’s post “It’s Not About Interest Rates Yet” and Tim left me in a deep think state. As Tim points out, the government program to buy Mortgage Backed Securities is set to end. But it now sounds like they may (surprise, surprise) extend the program. And reading this, it was yet further confirmation to one of my key beliefs about Real Estate. You see, many people do not seem to realize the scale of  government intervention with the National Real Estate market. Others that are in the know, probably see the government as simply distorting demand. But in actuality the government IS the demand being both mouth and stomach. They are the loan holder, the real estate buyer, and everything in between. And with the government at the center of housing, the inflated prices are just another form of shadow tax. One that no person is able to articulate or describe to their friends. Because we as tax payers are conditioned to believe that taxation happens mainly on our pay check or in the annual ritual of filing our 1040. So to those looking to buy, how can you, I, or anyone possibly hope to compete against this? In my opinion we can’t. We can only wait until the demand is gone.

Speaking of shadows, I think the word “shadow” epitomizes the MSM (Main stream media) and even the local boys (IE, Bulletin, KTVZ, etc). It is why I thoroughly inspect every nugget of supposed news that is reported. For there exists something at every major news corporation that lurks in the shadows. Just like shadow statistics, shadow inventory, shadow tax, this one is known as shadow opinion. The thought came to me a while back when reading an OP-ED piece from the Bulletin. Some where along the line, the newspaper came up with the idea that if they put the word “Opinion” in the title, it would let the reader know that the article was the opinion of the writer. Also implying to us, the readers, that the rest of the written document is news. In actuality and truth, we should know that the news is all opinion. The paper, magazine, news channel or what have you has an opinion about all things. And should you listen closely on when, if, or how things are published, you can hear the true “Voice” of any given media outlet.

But I think Duncan over at BMW is right in his ongoing subtle analysis of the MSM. The bloggers seem to have an edge on them. At least they have a much tighter voice. Usually being written by one person, or at most, a handful of people. And about a specific topic no less. Plus the scope and draw of the content is on the ground and global. As these folks can be or are, literally, all over the world. Instead of watching or reading the MSM as it regurgitates the same garbage over and over again, my opinion (heh) is that listening to the voices of many bloggers of all creeds is a much better representation of actual News.

Finally, it was funny this morning, because as I was sitting at breakfast today clicking through my RSS reader. I pulled back from the individual articles, and took a long look at all the blogs that I love to read. Suddenly an image of my father sitting at my childhood breakfast table thumbing through his paper filled my thoughts. This struck me, because I know that this will be an image that my daughter will never have.

(Nerd) How to: Setup Virtual Hosts on Ubuntu 9.10 using Apache2 + MySQL5.X + PHP5

I have been working on a couple projects that are hosted on gitHub. As the scale and scope of the projects grow, I ended up needing to setup multiple virtual hosts on my development machine. It wasn’t hard, but the information online that I found was fairly dated, so I created this tutorial.

This entire tutorial is done after entering the ‘sudo -i’ command which allows us to act as the SUPER-USER for the entirety of our terminal session. You’ve been warned.

sudo -i

NOTICE!!! I am aware that we could use the ‘a2ensite’ and related commands. But for the sake of understanding the entire process, I will not be using it.

1) Install the required modules from the command line

apt-get install apache2 mysql-server mysql-client php5 php5-cli php5-mysql

2) Change the directory to /etc/apache2/sites-available

cd /etc/apache2/sites-available

3) If you run the ‘ls’ command while in the sites-available directory you should see the following

ls

Output

default  default-ssl

4) Copy the ‘default’ config to a site specific config. For this tutorial I am using dev.acloudtree.com.

cp default dev.acloudtree.com.conf

5) Make the application directory

mkdir /var/dev.acloudtree.com

6) Open the file with an editor of your choosing. I prefer VIM.

vi dev.acloudtree.com.conf

The output below is the entire file but I will discuss certain parts that we will need to edit.

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
 
        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
 
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        ErrorLog /var/log/apache2/error.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/access.log combined
 
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
 
</VirtualHost>

7) Add the name of the server. This will be the name that you type in the URL field of your web browser (IE: Firefox)

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
	ServerName dev.acloudtree.com
...

8 ) Point the Virtual host to the correct directory

...
        DocumentRoot /var/dev.acloudtree.com
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
...

9) Also make the change here.

...
        <Directory /var/dev.acloudtree.com/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
...

10) So this is what your dev.acloudtree.com.conf file should look like when you are done. Write/Quite the file and we will move on.

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
	ServerName dev.acloudtree.com
 
        DocumentRoot /var/dev.acloudtree.com
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/dev.acloudtree.com/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
 
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        ErrorLog /var/log/apache2/error.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/access.log combined
 
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
 
</VirtualHost>

10a) IMPORTANT! Make a symbolic link in the sites-enabled directory

ln -s /etc/apache2/sites-available/dev.acloudtree.com.conf /etc/apache2/sites-enabled/000-dev.acloudtree.com.conf

11) We need to edit our /etc/hosts file

vi /etc/hosts

Output

127.0.0.1       localhost 
127.0.1.1       servername
 
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

12) Right beneath the ‘localhost’ definition, add the following

127.0.0.1      dev.acloudtree.com

13) The complete file looks like this.

127.0.0.1       localhost
127.0.0.1       dev.acloudtree.com
127.0.1.1       servername
 
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

14) Create an index.php file in /var/dev.acloudtree.com for testing purposes.

vi /var/dev.acloudtree.com/index.php

Contents of .php file.

<?php
 
        echo 'Jared Folkins\' tutorial on acloudtree.com really works!';
        phpinfo();
 
?>

15) Reboot the apache2 process.

/etc/init.d/apache2 restart

16) Now open up your web browser and enter dev.acloudtree.com into the URL bar and it should work!

UPDATE: I forgot to mention that in this environment, I like to configure log files for each virtual host. This is our current dev.acloudtree.com file.

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
	ServerName dev.acloudtree.com
 
        DocumentRoot /var/dev.acloudtree.com
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/dev.acloudtree.com/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
 
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
 
        ErrorLog /var/log/apache2/error.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/access.log combined
 
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
 
</VirtualHost>

Just change the ErrorLog and CustomLog names to match the virtual host.

...
        ErrorLog /var/log/apache2/dev.acloudtree.com_error.log
 
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
 
        CustomLog /var/log/apache2/dev.acloudtree.com_access.log combined
...
</VirtualHost>

Internet services for a nerd in Central Oregon?

Currently this blog along with some of my other projects are on a shared hosting platform. As some of my ideas get crazier and crazier, I realize that I need to compile several of the dependencies myself and this has been extremely problematic with my shared host. So what solutions do local geeks use?

Do you self host with a reserved static IP?
Do you collocate at a facility?
Do you rent a dedicated server?

Comments or emails are welcome and thanks in advance!

jared.folkins[at]gmail[dot]com

Copyright © Jared Folkins
Programming, Computers, Writing, Economics, and Life

Powered by WordPress