<?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>Ian Dunn &#187; OpenVZ / Virtuozzo / Plesk</title>
	<atom:link href="http://iandunn.name/category/virtuozzo-plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://iandunn.name</link>
	<description>Seattle-based web developer blogging about tips and solutions</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:22:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Tweaking Apache Settings for VPSs</title>
		<link>http://iandunn.name/tweaking-apache-settings-for-vpss/</link>
		<comments>http://iandunn.name/tweaking-apache-settings-for-vpss/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 00:05:30 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://iandunn.name/?p=919</guid>
		<description><![CDATA[Apache&#8217;s default settings assume it&#8217;s running under a dedicated box with at least 2GB of RAM, so they don&#8217;t perform very well in a VPS that may only have 500MB. I recently made some tweaks to several VPS&#8217;s that reduced memory usage by 300-400MB without degrading performance. <a href="http://www.devside.net/articles/apache-performance-tuning">Apache Performance Tuning</a> is a good article that explains a lot... [<a href="http://iandunn.name/tweaking-apache-settings-for-vpss/">more</a>]]]></description>
			<content:encoded><![CDATA[<p>Apache&#8217;s default settings assume it&#8217;s running under a dedicated box with at least 2GB of RAM, so they don&#8217;t perform very well in a VPS that may only have 500MB. I recently made some tweaks to several VPS&#8217;s that reduced memory usage by 300-400MB without degrading performance. <a href="http://www.devside.net/articles/apache-performance-tuning">Apache Performance Tuning</a> is a good article that explains a lot of the settings and gives an example for a VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/tweaking-apache-settings-for-vpss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an OpenVZ Template From an Existing VPS</title>
		<link>http://iandunn.name/creating-an-openvz-template-from-an-existing-vps/</link>
		<comments>http://iandunn.name/creating-an-openvz-template-from-an-existing-vps/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 23:40:43 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[VPS Templates]]></category>

		<guid isPermaLink="false">http://iandunn.name/?p=896</guid>
		<description><![CDATA[I recently setup a VPS on a new OpenVZ node and wanted to use it as a template for future VPS&#8217;s created on that node.   <a title="Creating a CentOS 5.0 Template in OpenVZ" href="http://wiki.openvz.org/Creating_a_CentOS_5.0_Template">The instructions in the wiki</a> are actually overkill for this situation; here&#8217;s all I had to do: vzctl stop [vps id] Create /tmp/vz-template-exclude.txt and add these lines to it: .bash_history lost+found /dev/* /mnt/* /tmp/*... [<a href="http://iandunn.name/creating-an-openvz-template-from-an-existing-vps/">more</a>]]]></description>
			<content:encoded><![CDATA[<p>I recently setup a VPS on a new OpenVZ node and wanted to use it as a template for future VPS&#8217;s created on that node.  <a title="Creating a CentOS 5.0 Template in OpenVZ" href="http://wiki.openvz.org/Creating_a_CentOS_5.0_Template">The instructions in the wiki</a> are actually overkill for this situation; here&#8217;s all I had to do:</p>
<ol>
<li>vzctl stop [vps id]</li>
<li>Create /tmp/vz-template-exclude.txt and add these lines to it:
<ul>
<li>.bash_history</li>
<li>lost+found</li>
<li>/dev/*</li>
<li>/mnt/*</li>
<li>/tmp/*</li>
<li>/proc/*</li>
<li>/sys/*</li>
<li>/usr/src/*</li>
</ul>
</li>
<li>tar &#8211;numeric-owner -czvf /vz/template/cache/template-name.tar.gz -X /tmp/vz-template-exclude.txt /vz/private/[vps id]</li>
<li>cp /etc/vz/dists/centos.conf /etc/vz/dists/template-name.conf</li>
<li>vzctl start [vps id]</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/creating-an-openvz-template-from-an-existing-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating Packages in an OpenVZ VPS</title>
		<link>http://iandunn.name/updating-packages-in-a-openvz-vps/</link>
		<comments>http://iandunn.name/updating-packages-in-a-openvz-vps/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 01:10:37 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://iandunn.name/?p=883</guid>
		<description><![CDATA[Sam Mingolelli has posted some <a title="Keeping CentOS 5 OpenVZ images up to Date with Yum" href="http://www.lamolabs.org/blog/1114/keeping-centos-5-openvz-images-up-to-date-with-yum/">useful solutions</a> to common problems when running yum update inside an OpenVZ VE.]]></description>
			<content:encoded><![CDATA[<p>Sam Mingolelli has posted some <a title="Keeping CentOS 5 OpenVZ images up to Date with Yum" href="http://www.lamolabs.org/blog/1114/keeping-centos-5-openvz-images-up-to-date-with-yum/">useful solutions</a> to common problems when running <em>yum update</em> inside an OpenVZ VE.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/updating-packages-in-a-openvz-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Directory Permissions for WordPress under Plesk/Linux</title>
		<link>http://iandunn.name/directory-permissions-for-wordpress-under-plesk-linux/</link>
		<comments>http://iandunn.name/directory-permissions-for-wordpress-under-plesk-linux/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 19:36:41 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Directory]]></category>
		<category><![CDATA[Safe Mode]]></category>

		<guid isPermaLink="false">http://iandunn.name/?p=669</guid>
		<description><![CDATA[Jason Diehl describes the right way to <a href="http://www.wordpress-master.com/upload-permissions-wordpress-plesk.html">setup directory permissions on a Linux box running Plesk so that WordPress can automatically create the directories</a> it uses to store uploads. Basically, you need to make sure that PHP&#8217;s safe mode is turned off and that wp-content is owned by apache, in the apache group, and chmod&#8217;d to 777.]]></description>
			<content:encoded><![CDATA[<p>Jason Diehl describes the right way to <a href="http://www.wordpress-master.com/upload-permissions-wordpress-plesk.html">setup directory permissions on a Linux box running Plesk so that WordPress can automatically create the directories</a> it uses to store uploads. Basically, you need to make sure that PHP&#8217;s safe mode is turned off and that wp-content is owned by apache, in the apache group, and chmod&#8217;d to 777.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/directory-permissions-for-wordpress-under-plesk-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Error Logs with Virtuozzo</title>
		<link>http://iandunn.name/php-error-logs-with-virtuozzo/</link>
		<comments>http://iandunn.name/php-error-logs-with-virtuozzo/#comments</comments>
		<pubDate>Mon, 10 May 2010 19:26:03 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Logging]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=278</guid>
		<description><![CDATA[Virtuozzo sets domains up to have PHP&#8217;s display_errors flag turned off by default, so that you&#8217;ll only see a blank page when there are critical errors. This is a good thing in production environments because it avoids potential security issues, but it can also be annoying when you&#8217;re trying to debug something. Instead of displaying... [<a href="http://iandunn.name/php-error-logs-with-virtuozzo/">more</a>]]]></description>
			<content:encoded><![CDATA[<p>Virtuozzo sets domains up to have PHP&#8217;s display_errors flag turned off by default, so that you&#8217;ll only see a blank page when there are critical errors. This is a good thing in production environments because it avoids potential security issues, but it can also be annoying when you&#8217;re trying to debug something.</p>
<p>Instead of displaying the errors, you can configure PHP to log them and then use the logs for debugging. For a Linux environment, you&#8217;ll need to create a file named vhost.conf inside the domain&#8217;s conf directory, <em>/var/www/vhosts/domain.name/conf</em>.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;Directory /var/www/vhosts/domain.name&gt;
  php_value error_log /var/www/vhosts/domain.name/statistics/logs/php-errors.log
  php_flag display_errors off
  php_value error_reporting 6143
  php_flag log_errors on
&lt;/Directory&gt;
</pre>
<p>Then create the file and assign it the right permissions</p>
<pre class="brush: bash; title: ; notranslate">
  cd /var/www/vhosts/domain.name/statistics/logs/
  touch php-errors.log
  chown apache php-errors.log
</pre>
<p>And the last thing is to tell Apache to reread the updated conf file</p>
<pre class="brush: bash; title: ; notranslate">
  /usr/local/psa/admin/sbin/websrvmng -a
</pre>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/php-error-logs-with-virtuozzo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewalling an OpenVZ node and containers</title>
		<link>http://iandunn.name/firewalling-an-openvz-node-and-containers/</link>
		<comments>http://iandunn.name/firewalling-an-openvz-node-and-containers/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 17:13:31 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=266</guid>
		<description><![CDATA[The OpenVZ wiki has a nice script for <a href="http://wiki.openvz.org/Setting_up_an_iptables_firewall">firewalling an OpenVZ node and it&#8217;s containers</a> . It creates a service and configures iptables to block all traffic to the node (except the ports you specify), but allow all traffic through to the containers, so that they can manage their own firewall. It also allows the container&#8217;s firewalls to be managed on the... [<a href="http://iandunn.name/firewalling-an-openvz-node-and-containers/">more</a>]]]></description>
			<content:encoded><![CDATA[<p>The OpenVZ wiki has a nice script for <a href="http://wiki.openvz.org/Setting_up_an_iptables_firewall">firewalling an OpenVZ node and it&#8217;s containers</a>. It creates a service and configures iptables to block all traffic to the node (except the ports you specify), but allow all traffic through to the containers, so that they can manage their own firewall. It also allows the container&#8217;s firewalls to be managed on the node through a simple config file.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/firewalling-an-openvz-node-and-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Qmail&#8217;s Queue</title>
		<link>http://iandunn.name/252/</link>
		<comments>http://iandunn.name/252/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:21:00 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Qmail]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=252</guid>
		<description><![CDATA[<a href="http://freshmeat.net/projects/qmqtool/">qmqtool</a> is a great tool for viewing and changing messages in qmail&#8217;s queue. It&#8217;ll help you search for and delete spam, for instance. The <a title="qmqtool FAQ" href="http://jeremy.kister.net/code/qmqtool/current/FAQ">FAQ</a> has a some examples to get started with.]]></description>
			<content:encoded><![CDATA[<p><a href="http://freshmeat.net/projects/qmqtool/">qmqtool</a> is a great tool for viewing and changing messages in qmail&#8217;s queue. It&#8217;ll help you search for and delete spam, for instance. The <a title="qmqtool FAQ" href="http://jeremy.kister.net/code/qmqtool/current/FAQ">FAQ</a> has a some examples to get started with.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/252/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relaying Qmail Through a Spam Filter</title>
		<link>http://iandunn.name/relaying-qmail-through-a-spam-filter/</link>
		<comments>http://iandunn.name/relaying-qmail-through-a-spam-filter/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 01:19:47 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Qmail]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=250</guid>
		<description><![CDATA[If you&#8217;re running a mail service on a web server so it can send out e-mail from contact forms, etc then you&#8217;ll want to make sure it&#8217;s <a href="http://blog.pivotalweb.com/?p=19">relaying outbound mail through a spam filter</a> , or it could be used to send spam if the forms get hijacked. For qmail, you just need to create /var/qmail/control/smtproutes and enter &#8220;:yourmailserver.com&#8221;, then restart. Make... [<a href="http://iandunn.name/relaying-qmail-through-a-spam-filter/">more</a>]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running a mail service on a web server so it can send out e-mail from contact forms, etc then you&#8217;ll want to make sure it&#8217;s <a href="http://blog.pivotalweb.com/?p=19">relaying outbound mail through a spam filter</a>, or it could be used to send spam if the forms get hijacked. For qmail, you just need to create /var/qmail/control/smtproutes and enter &#8220;:yourmailserver.com&#8221;, then restart. Make sure the spam filter is configured to allow the mail server to relay through it.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/relaying-qmail-through-a-spam-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Additional FTP accounts on Plesk for Linux</title>
		<link>http://iandunn.name/additional-ftp-accounts-on-plesk-for-linux/</link>
		<comments>http://iandunn.name/additional-ftp-accounts-on-plesk-for-linux/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 15:34:12 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Linux / Unix]]></category>
		<category><![CDATA[OpenVZ / Virtuozzo / Plesk]]></category>
		<category><![CDATA[FTP]]></category>

		<guid isPermaLink="false">http://iandunn.name/workblog/?p=72</guid>
		<description><![CDATA[Before version 9 of Plesk you couldn&#8217;t add additional FTP accounts for a domain through the control panel. This KB explains how to manually <a href="http://kb.parallels.com/en/415">add extra FTP accounts that are restricted to their home directory</a> .]]></description>
			<content:encoded><![CDATA[<p>Before version 9 of Plesk you couldn&#8217;t add additional FTP accounts for a domain through the control panel. This KB explains how to manually <a href="http://kb.parallels.com/en/415">add extra FTP accounts that are restricted to their home directory</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://iandunn.name/additional-ftp-accounts-on-plesk-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

