<?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>DreamhostPStools &#187; Tools</title>
	<atom:link href="http://dreamhostpstools.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://dreamhostpstools.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 27 Oct 2009 22:39:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>vpsset</title>
		<link>http://dreamhostpstools.com/2009/04/14/vpsset/</link>
		<comments>http://dreamhostpstools.com/2009/04/14/vpsset/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 22:20:12 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dreamhostpstools.com/?p=38</guid>
		<description><![CDATA[vpsset it's a command line tool which allows you to resize your Dreamhost PS server. You may use it at your crontab to reduce your memory and CPU settings when you have low traffic, and rise it when you usually expect higher one. Also you may use vpsset as a pre-script and post-script tool for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>vpsset</strong> it's a <a href="http://en.wikipedia.org/wiki/Command_line_interface">command line</a> tool which allows you to resize your <a href="http://www.dreamhostps.com">Dreamhost PS server</a>.</p>
<p>You may use it at your <a href="http://wiki.dreamhost.com/Crontab">crontab</a> to reduce your memory and CPU settings when you have low traffic, and rise it when you usually expect higher one. Also you may use <strong>vpsset</strong> as a pre-script and post-script tool for some resource intensive scripts, like backups or whatever you need.</p>
<p>Usage it's pretty simple, just type at your command line: &lt;<em>vpsset value</em>&gt;, where value it's the new size of your PS. Previously you need to setup an API key at DreamHost's <a href="https://panel.dreamhost.com/index.cgi?tree=home.api" target="_blank">Web Panel API</a>, and update vpsset.cfg file with your custom data.</p>
<p>Feedback it's welcomed <img src='http://dreamhostpstools.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Download:</p>
<ul>
<li><a href="http://dreamhostpstools.com/wp-content/plugins/download-monitor/download.php?id=1">vpsset</a> (x86_64!)</li>
<li><a href="http://dreamhostpstools.com/wp-content/plugins/download-monitor/download.php?id=2">vpsset32</a> (x86) 32bits version.</li>
</ul>
<p><strong><span style="color: #ff0000;">Update 18/04/2009</span></strong>:</p>
<p>Current vpsset version it's for the new Dreamhost PS, the 64bits based. Old PS server run 32bits versions and vpsset won't. My apologies for those who tried in an old PS server and had problems.</p>
<p><span style="text-decoration: line-through;">I'm trying to find another machine to compile a 32bit version.</span> Added 32bit download vpsset version.</p>
<p><strong>How to know your PS type?</strong></p>
<p>Just type: &lt;uname -a&gt; at your shell. You may get these results:</p>
<ul>
<li>Ending with <span style="color: #0000ff;">x86_64 GNU/Linux</span>: 64bit version, the new PS servers.</li>
<li>Ending with <span style="color: #0000ff;">i686 GNU/Linux</span>: 32bit version, the previous PS servers.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dreamhostpstools.com/2009/04/14/vpsset/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>vpsadjust is back!</title>
		<link>http://dreamhostpstools.com/2009/03/18/vpsadjust-is-back/</link>
		<comments>http://dreamhostpstools.com/2009/03/18/vpsadjust-is-back/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 23:41:12 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[vpsadjust]]></category>

		<guid isPermaLink="false">http://dreamhostpstools.com/?p=26</guid>
		<description><![CDATA[Yes! After one year of freezing, vpsadjust will be back again. And thanks to the new API that Dreamhost has published. API which I already mentioned at Febrery 2008 here. It took some time - one year -, but better latter than never, don't you think? Right now, I'm testing it's new behaviour but as you [...]]]></description>
			<content:encoded><![CDATA[<p>Yes! After one year of freezing, <strong><a href="http://dreamhostpstools.com/2007/11/19/saving-cash-at-your-dreamhost-ps/">vpsadjust</a></strong> will be back again. And thanks to the new API that Dreamhost has published. API which I already mentioned at Febrery 2008 <a href="http://dreamhostpstools.com/2008/02/14/bye-bye-vpsadjust">here</a>. It took some time - one year -, but better latter than never, don't you think?</p>
<p>Right now, I'm testing it's new behaviour but as you may see in the following graph, it's working as it should be:</p>
<p><img class="aligncenter size-full wp-image-27" title="mem1h" src="http://dreamhostpstools.com/wp-content/uploads/2009/03/mem1h.png" alt="mem1h" width="481" height="221" /></p>
<p>Isn't awesome? <img src='http://dreamhostpstools.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I hope to bring you fresh news pretty soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamhostpstools.com/2009/03/18/vpsadjust-is-back/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Next steps on getting more performance with LiteSpeed webserver</title>
		<link>http://dreamhostpstools.com/2008/02/28/next-steps-on-getting-more-performance-with-litespeed-webserver/</link>
		<comments>http://dreamhostpstools.com/2008/02/28/next-steps-on-getting-more-performance-with-litespeed-webserver/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 22:24:38 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://dreamhostpstools.com/2008/02/28/next-steps-on-getting-more-performance-with-litespeed-webserver/</guid>
		<description><![CDATA[As we said on a previous article, we were waiting for the last chapters on tunning our LiteSpeed webserver. Finnaly, yui-life.com's webmaster has published in two articles the steps to get a custom PHP5 with eAccelerator and some tips on tunning the webserver. I have tested his solution and I can say I’m quite happy [...]]]></description>
			<content:encoded><![CDATA[<p>As we said on a <a href="http://dreamhostpstools.com/2008/02/14/optimizing-dreamhost-ps-cpu-and-memory-usage-by-installing-litespeed-web-server/">previous article</a>, we were waiting for the last chapters on tunning our <a href="http://litespeedtech.com/">LiteSpeed</a> webserver. Finnaly, <a href="http://www.yui-life.com">yui-life.com'</a>s webmaster has published in two articles the steps to get a custom PHP5 with eAccelerator and some tips on tunning the webserver.</p>
<p>I have tested his solution and I can say I’m quite happy with it, indeed I was also sharing a <a href="http://wiki.dreamhost.com/PHP_FastCGI" target="_blank">FastCGI</a> + <a href="http://wiki.dreamhost.com/Pecl_APC" target="_blank">APC</a> accelerator for two other domains and at the end I have migrated all of them (five) to the LiteSpeed solution.</p>
<p>You can read the articles at the following links:</p>
<p><a href="http://www.yui-life.com/2008/compiling-php5-and-eaccelerator-for-litespeed-on-dreamhost-ps/">Litespeed on Dreamhost PS: Final Optimizations for Stability and Lowest Cost</a><br />
<a href="http://www.yui-life.com/2008/litespeed-on-dreamhost-ps-final-optimizations-for-stability-and-lowest-cost/">Compiling PHP5 and eAccelerator for Litespeed on Dreamhost PS</a></p>
<p>I have only one problem using LiteSpeed Standard proxied behind Apache, and it’s related to some web applications (like WordPress 3.3.4) use the header $_SERVER['REMOTE_ADDR'] to get the visitors IP instead of <a href="http://en.wikipedia.org/wiki/X-Forwarded-For" target="_blank">$_SERVER['HTTP_X_FORWARDED_FOR']</a>, so the recorded IP it’s your own VPS IP, as it’s the one who sent you the request. Remember, Apache’s mod_proxy has been previously configured to send you the traffic to a running port of your LiteSpeed server.</p>
<p><span id="more-25"></span><br />
<a href="http://www.litespeedtech.com/products/webserver/overview/" target="_blank">LiteSpeed Enterprise</a> offers a feature to mask automatically that problem but for other web applications not so “<em>good coded</em>” you’ll have to patch them if you are able (some could be encoded).</p>
<p>In the case of <a href="http://wordpress.org" target="_blank">WordPress</a>, there is a <a href="http://trac.wordpress.org/ticket/4602">ticket </a>submitted at their <a href="http://trac.wordpress.org/">tracking website</a> to ask for this feature on future releases, but it has been a few months since the last update and no planned date for that.</p>
<p>In the same ticket, some developer called <em>hovenko</em> added the <a href="http://trac.wordpress.org/attachment/ticket/4602/get_ip_address.patch">patch file</a> to add that functionality. I tested it and right now I’m running with the modified version in the two blogs which run with LiteSpeed and it’s getting now the correct visitor IP.</p>
<p>Thanks Hovenko!</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamhostpstools.com/2008/02/28/next-steps-on-getting-more-performance-with-litespeed-webserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two new tools in the forge</title>
		<link>http://dreamhostpstools.com/2008/02/14/two-new-tools-in-the-forge/</link>
		<comments>http://dreamhostpstools.com/2008/02/14/two-new-tools-in-the-forge/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 22:10:25 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dreamhostpstools.com/2008/02/14/two-new-tools-in-the-forge/</guid>
		<description><![CDATA[As I had to stop vpsadjust development due this unforeseen event, I started to prepare two new tools which I think could be useful for any Dreamhost PS owner. Right now I only have the ideas and expected features, with the time we'll see the final result. The tools are the following: vpsguardian. This tool [...]]]></description>
			<content:encoded><![CDATA[<p>As I had to stop vpsadjust development due this <span onclick="dr4sdgryt2(event)" style="cursor: pointer"><em><a href="http://dreamhostpstools.com/2008/02/14/bye-bye-vpsadjust/">unforeseen event</a></em>, I started to prepare two new tools which I think could be useful for any Dreamhost PS owner. Right now I only have the ideas and <u>expected</u> features, with the time we'll see the final result. The tools are the following:</span></p>
<ul>
<li><font color="#ff6600"><strong>vpsguardian</strong>.</font> This tool will replace in some way the job done by vpsadjust, as right now it's not possible to have automatic resources configuration, this tool will provide information and trigger actions to help you maintain stable your CPU and memory settings. The different behaviours will be configurable. Main features:
<ul>
<li> When memory is running out will disable crawlers access in all the domains by replacing or updating robots.txt to all denied. As soon the resources are spare again previous robots.txt file will be restored.</li>
<li>When memory is running out and CPU is too high, some of the previously configured domains will be set to a redirected custom webpage. This action it's to lower load average and memory usage to let high priority domains have spare resources (i.e. e-commerce websites).  The custom webpage could have a standard message saying something like "We are having a heavy usage spike. Please come back later". As soon the resources are spare again, redirection would be disabled.<span id="more-24"></span></li>
<li>Owner's PS will get warning emails of any special action applied.</li>
<li>Optionally vpsguardian will supervise users processes usage. Thresholds could be configured.</li>
<li>Optionally vpsguardian will disable custom user services when load and/or memory is too high and enable them after resources are spare.</li>
<li>Optionally vpsguardian will kill or <a href="http://en.wikipedia.org/wiki/Renice" target="_blank">renice</a> user's owned processes (from a previously configured list) when load and/or memory is too high.</li>
<li>Preconfiguration based on automatic settings taken from panel.dreamhost.com.</li>
<li>Store CPU/Memory trends to offer settings recommendations based on historical data.</li>
</ul>
</li>
</ul>
<ul>
<li><font color="#ff6600"><strong>vpsbackup</strong></font>. This one it's trivial, it's goal it's to backup all the domains configured in a PS. Optionally include in the backup set MySQL databases. Main features:
<ul>
<li>Preconfiguration based on automatic settings taken from panel.dreamhost.com.</li>
<li>Owner's PS optionally will receive reports of all the jobs by email.</li>
<li>Historical reports of backup jobs executions (web reports).</li>
<li>Possibility to launch pre-backup actions and post-backup actions. I.e. trigger cleaning scripts.</li>
<li>Historical backups, to keep several backups at the same time from different days.</li>
<li>Optionally upload backup to remote server (using FTP).</li>
<li>Optionally encrypt backups.</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dreamhostpstools.com/2008/02/14/two-new-tools-in-the-forge/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bye bye vpsadjust</title>
		<link>http://dreamhostpstools.com/2008/02/14/bye-bye-vpsadjust/</link>
		<comments>http://dreamhostpstools.com/2008/02/14/bye-bye-vpsadjust/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 23:54:07 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dreamhostpstools.com/2008/02/14/bye-bye-vpsadjust/</guid>
		<description><![CDATA[Today, Dreamhost decided to add a captcha system at the server usage web page, so no more automated adjustment of CPU/Memory settings is possible. It's quite obvious that Dreamhost noticed there were some tools around there using smart decisions on server usage, and that wasn't helping their incomes, and adding this human-detection system was the [...]]]></description>
			<content:encoded><![CDATA[<p>Today, <a href="http://www.dreamhost.com">Dreamhost</a> decided to add a <a href="http://en.wikipedia.org/wiki/Captcha" target="_blank">captcha system</a> at the <a href="https://panel.dreamhost.com/index.cgi?tree=vserver.usage&amp;" target="_blank">server usage web page</a>, so no more automated adjustment of CPU/Memory settings is possible.</p>
<p align="center"><img src="http://dreamhostpstools.com/wp-content/uploads/2008/02/v1cgi.png" alt="v1cgi.png" /></p>
<p> It's quite obvious that Dreamhost noticed there were some tools around there using smart decisions on server usage, and that wasn't helping their incomes, and adding this human-detection system was the easiest way to stop those tools. In my opinion, there are other solutions, like avoiding changing settings with certain frecuency, or even offering an API to use Vserver calls funcionality.</p>
<p><span id="more-21"></span>That captcha it's not that hard to defeat with some programming, as the text always appear in the same location, same number of chars, no rotation,... but it's not a matter of defeating the captcha to run again the scripts, it's a matter of wasting the time to do it, as changing the captcha format or design it's just a matter of a few lines of code and minutes. So Dreamhost in any case would readapt their captcha to avoid any circumvention of it.<a href="http://en.wikipedia.org/wiki/Captcha#Circumvention"><span class="toctext"></span></a></p>
<p>Dreamhost must consider his customers are not happy with wasting resources (and serious money) and nor are happy with offering nasty "500 Internal Server Error" to their visitors.</p>
<p>But as always, we'll have to take what Dreamhost allows us and let us do.</p>
<p>The good news it's vpsreboot still works, no captcha (yet).</p>
<p>Time to create other tools...</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamhostpstools.com/2008/02/14/bye-bye-vpsadjust/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>vpsinfo: your PS status in a browser</title>
		<link>http://dreamhostpstools.com/2008/01/27/tool-vpsinfo-your-ps-status-in-a-browser/</link>
		<comments>http://dreamhostpstools.com/2008/01/27/tool-vpsinfo-your-ps-status-in-a-browser/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 23:28:47 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://dreamhostpstools.com/2008/01/27/tool-vpsinfo-your-ps-status-in-a-browser/</guid>
		<description><![CDATA[From the original site: vpsinfo is a Linux server monitoring script, written in PHP, that provides web access to system status information. It gathers the output from several common Linux commands into one web page, providing a quick overview of the system's current state. This script coded by Doubles T. Robbins was coded for VPS [...]]]></description>
			<content:encoded><![CDATA[<p>From the <a href="http://www.labradordata.ca/home/13" target="_blank">original site</a>:</p>
<blockquote><p> vpsinfo is a Linux server monitoring script, written in PHP, that provides web access to system status information. It gathers the output from several common Linux commands into one web page, providing a quick overview of the system's current state.</p></blockquote>
<p>This script coded by Doubles T. Robbins was coded for VPS (Virtual Private Servers) based on <a href="http://www.swsoft.com/virtuozzo" target="_blank">Virtuozzo</a> and <a href="http://openvz.org/" target="_blank">OpenVZ</a> systems, and for that reason does not work properly on <a href="http://linux-vserver.org/" target="_blank">VServer</a> systems, used by Dreamhost PS.I have made a few patches on the original script (version 2.3.2) to enable all those features that were not working on our PS and I'm sharing this patched version.Clicking in the following picture you may see an example of the look and feel of vpsinfo under a Dreamhost PS:</p>
<p style="text-align: center"><a href="http://dreamhostpstools.com/wp-content/uploads/2008/01/imagen-6.png"><img src="http://dreamhostpstools.com/wp-content/uploads/2008/01/imagen-6.thumbnail.png" title="vpsinfo" alt="vpsinfo" /></a></p>
<p> To enable mysql reports, you need to configure these variables at the vpsinfo.php file:<span id="more-20"></span></p>
<pre class="php"><span style="color: #808080; font-style: italic;">// MyTop/mysqlreport needs MySQL access to read the processlist.</span></pre>
<pre class="php"><span style="color: #808080; font-style: italic;">// You may use any MySQL database.</span></pre>
<pre class="php"><span style="color: #808080; font-style: italic;">// If you don't use MyTop or mysqlreport just ignore this.</span></pre>
<pre class="php"><span style="color: #0000ff;">$my_db</span>	 = <span style="color: #ff0000;">&quot;&quot;</span>;</pre>
<pre class="php"><span style="color: #0000ff;">$my_user</span> = <span style="color: #ff0000;">&quot;&quot;</span>;</pre>
<pre class="php"><span style="color: #0000ff;">$my_pass</span> = <span style="color: #ff0000;">&quot;&quot;</span>;</pre>
<pre class="php"><span style="color: #0000ff;">$my_host</span> = <span style="color: #ff0000;">&quot;&quot;</span>;</pre>
<p>And also copy in the same location (as the vpsinfo.php) the <a href="http://hackmysql.com/mysqlreport">mysqlreport</a> tool. You can download both here: [Download id not defined] [Download id not defined]It should run smooth on any PS, but if you find any problem don't hesitate to post a comment or a message in the <a href="http://dreamhostpstools.com/forums">forum</a>.</p>
<p><font color="#ff0000"><strong>Update</strong>:</font> I seriously recommend uploading <em>vpsinfo.php</em> to a private location secured by a <em>.htaccess</em>. VPSInfo provides internal system information about your PS, and also meanwhile the page is loaded will consume some of your resources as it needs to execute several tools to generate the reports.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamhostpstools.com/2008/01/27/tool-vpsinfo-your-ps-status-in-a-browser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
