<?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>Kevin "Skwerl" Cogill &#187; DreamHost</title>
	<atom:link href="http://iamskwerl.com/tag/dreamhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamskwerl.com</link>
	<description>"Skwerls are the people who make the internet useful." -Joel Stein, TIME Magazine (9/7/08)</description>
	<lastBuildDate>Thu, 01 Jul 2010 19:22:00 +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>DreamHost Sucks</title>
		<link>http://iamskwerl.com/tech/2008/12/dreamhost-review/</link>
		<comments>http://iamskwerl.com/tech/2008/12/dreamhost-review/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 21:53:32 +0000</pubDate>
		<dc:creator>Skwerl</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[DreamHost]]></category>

		<guid isPermaLink="false">http://iamskwerl.com/?p=126</guid>
		<description><![CDATA[<strong>From: </strong> support@dreamhost.com
<strong>Subject: Re: [kevcog1 22542094] site down AGAIN</strong>
<strong>Date: </strong>December 18, 2008 1:44:47 PM PST
<strong>To: </strong> skwerl@antiquiet.com
<blockquote>antiquiet.com is completely down once again. whenever our sites go down, we never see any alert or explanation on dreamhoststatus.com mentioning any of our servers. i can only imagine how often our sites are coming down without us noticing. we rarely get an explanation as to WHY the sites go down- it's usually 'well it was down, and now it's not.' at first, we loved your service... but this is way too much downtime to be worth our money. we had our sites hosted out of a buddy's closet for free before here, and they never went down once. we're seeing an overall drop in traffic (and revenue) from the increased downtime and increased page load time since moving to dreamhost. what is the problem? are the shared servers overcrowded? would a private server or virtual private server guarantee me no downtime and better performance???</blockquote>
<blockquote>Hello,

Please allow me to apologize for the inconvenience you've experienced and for the delay in getting back to you.

It looks like our admins were working on your server earlier which required a reboot.

Everything appears to be stabilized now.

Please let me know if you notice any further problems.

Thanks!
Brett G</blockquote>]]></description>
			<content:encoded><![CDATA[<p><strong>From: </strong> support@dreamhost.com<br />
<strong>Subject: Re: [kevcog1 22542094] site down AGAIN</strong><br />
<strong>Date: </strong>December 18, 2008 1:44:47 PM PST<br />
<strong>To: </strong> skwerl@antiquiet.com</p>
<blockquote><p>antiquiet.com is completely down once again. whenever our sites go down, we never see any alert or explanation on dreamhoststatus.com mentioning any of our servers. i can only imagine how often our sites are coming down without us noticing. we rarely get an explanation as to WHY the sites go down- it&#8217;s usually &#8216;well it was down, and now it&#8217;s not.&#8217; at first, we loved your service&#8230; but this is way too much downtime to be worth our money. we had our sites hosted out of a buddy&#8217;s closet for free before here, and they never went down once. we&#8217;re seeing an overall drop in traffic (and revenue) from the increased downtime and increased page load time since moving to dreamhost. what is the problem? are the shared servers overcrowded? would a private server or virtual private server guarantee me no downtime and better performance???</p></blockquote>
<blockquote><p>Hello,</p>
<p>Please allow me to apologize for the inconvenience you&#8217;ve experienced and for the delay in getting back to you.</p>
<p>It looks like our admins were working on your server earlier which required a reboot.</p>
<p>Everything appears to be stabilized now.</p>
<p>Please let me know if you notice any further problems.</p>
<p>Thanks!<br />
Brett G</p></blockquote>
<blockquote><p>thanks for answering my questions. you guys rock.</p></blockquote>
<blockquote><p>Not a problem at all!</p>
<p>Again, I apologize for any inconvenience you&#8217;ve experienced.</p>
<p>Let us know if there&#8217;s anything else we can help ya with.</p>
<p>Thanks!<br />
Brett G</p></blockquote>
<blockquote><p>i was being sarcastic. none of my questions were answered.<br />
and now my site is unresponsive again. this is unacceptable. i&#8217;m going to start shopping for a new host. sorry.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://iamskwerl.com/tech/2008/12/dreamhost-review/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Customizing PHP5 On DreamHost</title>
		<link>http://iamskwerl.com/tech/2008/09/customizing-php5-on-dreamhost/</link>
		<comments>http://iamskwerl.com/tech/2008/09/customizing-php5-on-dreamhost/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 17:37:14 +0000</pubDate>
		<dc:creator>Skwerl</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[DreamHost]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech Writing]]></category>

		<guid isPermaLink="false">http://iamskwerl.com/?p=7</guid>
		<description><![CDATA[So far, <a href="http://www.dreamhost.com/r.cgi?450312" target="_blank">DreamHost</a> has been amazing. I can park an unlimited number of domains, with plenty of bandwidth to go around. I can do 95% of everything I need to do, from setting up domains and subdomains, to creating and managing SVN repositories, all with the admin panel. Web hosting seems to have come a long way since 2004.

The only complaint I've had with the server setup was the PHP upload limit. I installed <a href="http://alexrabe.boelinger.com/wordpress-plugins/wordtube/" target="_blank">wordTube</a> (which I plan to overhaul) on <a href="http://www.johnnyfirecloud.com/" target="_blank">Johnny's blog</a>, but DreamHost's global limit of 7MB on shared hosting would make it difficult for Johnny to add videos on a whim, without having to teach him enough about FTP access to be dangerous.

So here's how I worked around it...]]></description>
			<content:encoded><![CDATA[<p>I recently signed up for a <a href="http://www.dreamhost.com/r.cgi?450312" target="_blank">DreamHost</a> account. I&#8217;d been self-hosting for years, and I set up Antiquiet on a friend&#8217;s server. However, I was about to need a lot more technical support than I felt comfortable asking of a friend who was doing me a favor, as I planned to launch this site, as well as <a href="http://www.johnnyfirecloud.com/" target="_blank">Johnny&#8217;s site</a> and <a href="http://www.britneybernstein.com/" target="_blank">Britney&#8217;s</a>.</p>
<p>I used to use <a href="http://www.mediatemple.com/" target="_blank">MediaTemple</a> back in the day. I loved them, but they&#8217;re a bit pricey, and I had a bad experience where they shut my site down (and eventually lost it) while I struggled (and ultimately failed) to pay a large hosting bill.</p>
<p>So far, DreamHost has been amazing. I can park an unlimited number of domains, with plenty of bandwidth to go around. I can do 95% of everything I need to do, from setting up domains and subdomains, to creating and managing SVN repositories, all with the admin panel. Web hosting seems to have come a long way since 2004.</p>
<p>When I do need to open a support ticket, I always get a prompt response from a real person who speaks proper English and seems genuinely happy to help. When setting up a ticket, there&#8217;s a little pulldown menu for the nature of the situation, and I find it refreshingly applicable; choices are:</p>
<ol>
<li>Just a casual question, comment, idea, suggestion&#8230;</li>
<li>I need some help but it&#8217;s not super time-sensitive.</li>
<li>I can&#8217;t get things done until I hear back from you, please reply ASAP.</li>
<li>Things are broken and I&#8217;d like them not to be!</li>
<li>OMG! EXTREME CRITICAL EMERGENCY!! EVERYTHING&#8217;S BROKEN! People are DYING!</li>
</ol>
<p>It also asks for your level of expertise in the area you&#8217;re seeking support with, which cuts down on the &#8220;did you try power cycling?&#8221; responses, or indecipherable jargon when you&#8217;re a nub and you need something in simple terms.</p>
<p>Anyway, the only complaint I had with the server setup was the PHP upload limit. I installed <a href="http://alexrabe.boelinger.com/wordpress-plugins/wordtube/" target="_blank">wordTube</a> (which I plan to overhaul) on Johnny&#8217;s blog, but DreamHost&#8217;s global limit of 7MB on shared hosting would make it difficult for Johnny to add videos on a whim, without having to teach him enough about FTP access to be dangerous.</p>
<p>But while DreamHost support refuses to entertain requests to raise the limit, they pointed me to their extensive <a href="http://wiki.dreamhost.com/Main_Page" target="_blank">Wiki</a>, which explained that since they already run PHP as a CGI process, there&#8217;s really no reason you couldn&#8217;t compile your own PHP installation in your own area of the shared server- configured however you&#8217;d like- and have your sites use that instead of DreamHost&#8217;s.</p>
<p>But I ran into problems, as <a href="http://www.dreamhoststatus.com/2008/09/02/debian-upgrades-and-custom-php/" target="_blank">on September 2nd, DreamHost upgraded their shared hosting servers</a> to Debian Etch, just barely breaking all of the provided install scripts. Of course if it was a dedicated Debian box, you could just use <a href="http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html#s-install" target="_blank">apt</a> to install PHP5, but a shared box means you have to do it the old fashioned way.</p>
<p>After a day or two of hacking around, I managed to piece together <a href="http://wiki.dreamhost.com/Installing_PHP5#Another_Alternative_PHP_5_install_script" target="_blank">a single shell script</a> that would install PHP 5.2.5 with all the standard modules, on DreamHost&#8217;s new Debian Etch system.</p>
<p>So if you want to set up your own PHP installation on DreamHost, to have full control over your php.ini file, here&#8217;s how:</p>
<p><strong>1. Run the install script</strong></p>
<p><a href="http://iamskwerl.com/wp-content/uploads/2008/09/php5-singlescript.sh">Download this PHP5 install script</a> (Updated 01/10/09). You need to edit line 14, and replace <em>&#8216;iamskwerl.com&#8217;</em> with your domain where you want to install your own PHP5. If you want to have all your domains use the same installation, that&#8217;s super easy to do later, but we just need to pick one now to start with. It will actually install PHP to your home folder, but the script needs to know where to put the first php.ini file. So edit line 14 and hit save.</p>
<p>Now copy the script into your home directory (don&#8217;t put it in a subfolder). You can do that part with FTP, but you&#8217;ll need to do the rest from the command line via SSH. Once you&#8217;re in the shell, make sure you have execute permissions on the install script, and run it by typing:</p>
<pre>./sh php5-singlescript.sh</pre>
<p>It will take an hour or so, and will require you to hit <em>y</em> &amp; enter a couple of times near the end. It won&#8217;t timeout on you if you don&#8217;t respond right away, so no need to sit there and stare at it, but don&#8217;t go on vacation and expect to come home to a completed PHP installation.</p>
<p><strong>2. Make sure you&#8217;ve got the right php.cgi</strong></p>
<p>When I installed PHP5 with the script above, my PHP scripts didn&#8217;t work at first. Apparently the script put the wrong php.cgi into my site&#8217;s cgi-bin directory. To fix this problem before you find it the hard way, type this in the shell: </p>
<pre>cp ~/php5/bin/php-cgi ~/iamskwerl.com/cgi-bin/php.cgi</pre>
<p>and hit enter. Be sure to replace <em>&#8216;iamskwerl.com&#8217;</em> with your domain.</p>
<p><strong>3. Activate via .htaccess</strong></p>
<p>At this point, you have a(n assumably) working PHP installation ready and waiting for some action, but your site is still using DreamHost&#8217;s because it hasn&#8217;t been told otherwise yet.</p>
<p>The beauty of this solution is that you can use .htaccess files to have only certain directories use your custom PHP installation, depending on where you put them. Just remember that .htaccess files affect all files and folders in the same directory, as well as all subfolders- but they do <em>not</em> affect anything <em>outside</em> of the directory they&#8217;re in.</p>
<p>So if you want the whole site to use your custom PHP installation, just create an .htaccess file in your domain&#8217;s webroot and call it a day.</p>
<p>But for Johnny&#8217;s site, I decided that I only wanted the WordPress <em>admin</em> to use the custom installation with the raised upload limit, while letting the front end of the site continue to use DreamHost&#8217;s more conservative installation- to be on the safe side. So I added the .htaccess file to the <em>wp-admin</em> directory.</p>
<p>Here&#8217;s what the .htaccess file should look like. If an .htaccess file already exists, just add this to the top and keep the rest as-is:</p>
<pre>Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

&lt;FilesMatch "^php5?.(ini|cgi)$"&gt;
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
&lt;/FilesMatch&gt;</pre>
<p><strong>4. Test your custom PHP installation</strong></p>
<p>Create a phpinfo file in the site you&#8217;ve installed your custom PHP for. Just create a new file called phpinfo.php, with the following contained therein:</p>
<pre>&lt;?php phpinfo(); ?&gt;</pre>
<p>Access phpinfo.php with a web browser, and you should get a pretty blue and grey table full of cool looking variables and version information. If you get an internal server error (500), there&#8217;s probably a problem with your .htaccess file. Clear out what you added to go back to using DreamHost&#8217;s standard PHP installation, make sure you did step 2 right, and then make sure that the php.cgi script in your site&#8217;s cgi-bin directory has execute permissions before trying step 3 again, carefully.</p>
<p>If your phpinfo.php file tells you your php.ini path is <em>/home/you/php5/etc/php5/yoursite.tld</em>, you&#8217;ve successfully set up a custom PHP installation!</p>
<p><strong>5. Do something with it!</strong></p>
<p>You can now edit your php.ini file, which can be found in the path reported by phpinfo (and mentioned above). At the very least, you&#8217;ll probably want to up your maximum file upload size by looking for the following lines:</p>
<pre>post_max_size = 2M</pre>
<p>and</p>
<pre>upload_max_filesize = 2M</pre>
<p>and replacing 2M with 32M or something more reasonable. You can just save your php.ini file for the change to take effect; since PHP is running as CGI, no need to restart Apache.</p>
<p><strong>6. Let other domains use the custom installation (optional)</strong></p>
<p>So as you can see from my script &amp; examples, I set up my custom PHP installation for iamskwerl.com, but I wanted Johnny&#8217;s site to use it too.</p>
<p>It&#8217;s super easy to share the installation across different domains. You need to create an alias of the first site&#8217;s cgi-bin directory in the webroots of whichever sites you want to share it. For each additional site, run the following command from the shell:</p>
<pre>ln -s /home/USERNAME/DOMAIN1.TLD/cgi-bin /home/USERNAME/DOMAIN2.TLD/cgi-bin</pre>
<p>Replace USERNAME with your username, DOMAIN1.TLD with the domain name currently using the custom PHP installation, and DOMAIN2.TLD with a domain that you&#8217;d like to share it.</p>
<p>Then all you need to do is add .htaccess files for the new site, as described in step 3 above.</p>
]]></content:encoded>
			<wfw:commentRss>http://iamskwerl.com/tech/2008/09/customizing-php5-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
	</channel>
</rss>
