<?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>Behind Aisle8 &#187; Plesk</title>
	<atom:link href="http://www.aisle8.net/blog/category/plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aisle8.net/blog</link>
	<description>where the shoemaker's children live</description>
	<lastBuildDate>Fri, 11 Sep 2009 19:37:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubercart Credit Card Settings on Plesk Hosted Site &#8211; Setting up /keys</title>
		<link>http://www.aisle8.net/blog/ubercart-credit-card-settings-on-plesk-hosted-site-setting-up-keys-72/</link>
		<comments>http://www.aisle8.net/blog/ubercart-credit-card-settings-on-plesk-hosted-site-setting-up-keys-72/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 19:17:28 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[ubercart]]></category>

		<guid isPermaLink="false">http://www.aisle8.net/blog/?p=72</guid>
		<description><![CDATA[Ubercart is a a popular shopping cart plug-in for the popular Drupal Content Management system. Parallel&#8217;s Plesk is a popular hosting control panel.
When configuring a Drupal-Ubercart install on a Plesk based host Ubercart requires the creation of a /keys directory that is outside of your document root (aka /httpdocs in Plesk )  To create a [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Ubercart - One cart to rule them all!" href="http://ubercart.org" target="_blank">Ubercart</a> is a a popular shopping cart plug-in for the popular <a title="Drupal.org" href="http://drupal.org" target="_blank">Drupal</a> Content Management system. <a title="Parallels Plesk" href="http://www.parallels.com/spp/parallelsplesk/" target="_blank">Parallel&#8217;s Plesk</a> is a popular hosting control panel.</p>
<p>When configuring a Drupal-Ubercart install on a Plesk based host <a title="Ubercart Credit Card Setup Documentation Page" href="http://www.ubercart.org/docs/user/2731/credit_card_settings" target="_blank">Ubercart requires</a> the creation of a /keys directory that is outside of your document root (aka /httpdocs in Plesk )  To create a keys directory that does not generate open_basedir errors you&#8217;ll need to do the following</p>
<p>Log in as root and create or edit conf/vhost.conf and conf/vhost_ssl.conf as shown.</p>
<p><strong>conf/vhost.conf:</strong></p>
<p><code>&lt;Directory /var/www/vhosts/YOUR-DOMAIN.COM/httpdocs/&gt;<br />
php_admin_value open_basedir "/var/www/vhosts/YOUR-DOMAIN.COM/httpdocs:/tmp:/var/www/vhosts/YOUR-DOMAIN.COM/keys"<br />
&lt;/Directory&gt;<br />
</code></p>
<p><strong>conf/vhost_ssl.conf:</strong></p>
<p><code>&lt;Directory /var/www/vhosts/YOUR-DOMAIN.COM/httpdocs/&gt;<br />
php_admin_value open_basedir "/var/www/vhosts/YOUR-DOMAIN.COM/httpdocs:/tmp:/var/www/vhosts/YOUR-DOMAIN-HERE.COM/keys"<br />
&lt;/Directory&gt;<br />
</code><br />
Note that Php_admin_value and all that follows should be on one line.</p>
<p>Then run (on CentOS &#8211; Ubuntu/Debian may be slightly different):</p>
<p><code>/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=&lt;domainname&gt;</code></p>
<p><code>/etc/init.d/apache2 restart</code></p>
<p>After the restart Plesk will include the contents of your file in the apache config file. You can verify that it&#8217;s being included by checking httpd.include you should see a line similiar to:</p>
<p><code> Include /var/www/vhosts/mydomain.com/conf/vhost.conf</code></p>
<p>Feeling adventurous and want to add other apache directives in the .conf file ?   Great, but HEED MY WARNING.  If you mess up the syntax in either of the files apache may fail to restart &#8212; That would be why you needed to log in as root.   Delete-Remove-Rename the .conf files, rerun websrvmng and start apache.  No big deal if you&#8217;re on a development box, but, as always you would be wise to follow the 2-Beer rule when logging into production boxes as root.</p>
<p><strong>Resources:</strong></p>
<p>Ubercart Keys Documentation Page:<br />
<a href="http://www.ubercart.org/docs/user/2731/credit_card_settings">http://www.ubercart.org/docs/user/2731/credit_card_settings</a></p>
<p>Plesk forum and Knowledgebase posts:<br />
<a href="http://forum.parallels.com/showthread.php?t=84211&amp;highlight=vhost.conf+websrvmng">http://forum.parallels.com/showthread.php?t=84211&amp;highlight=vhost.conf+websrvmng</a><br />
<a href="http://kb.parallels.com/en/5464">http://kb.parallels.com/en/5464</a><br />
<a href="http://kb.parallels.com/en/432">http://kb.parallels.com/en/432</a></p>
<p>You may want to check out Power Toys for Plesk from grafxsoftware.com <a href="http://www.grafxsoftware.com/product.php?id=172">http://www.grafxsoftware.com/product.php?id=172</a> which includes a vhost conf editing tool.</p>
<p>Of course you can avoid all this by having Aisle8, Inc. host your Drupal, Ubercart or <a title="Open Atrium" href="http://openatrium.com" target="_blank">OpenAtrium</a> site.  We can host it on a Plesk based server, or one of our trusty <a href="http://groups.drupal.org/aegir-hosting-system" target="_blank">Aegir</a> based boxes.  Aegir eases the hosting and upgrading Drupal sites &#8212;   Ain&#8217;t nothing else like it around.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aisle8.net/blog/ubercart-credit-card-settings-on-plesk-hosted-site-setting-up-keys-72/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing Domains Managed on a Plesk Server</title>
		<link>http://www.aisle8.net/blog/listing-domains-managed-on-a-plesk-server-68/</link>
		<comments>http://www.aisle8.net/blog/listing-domains-managed-on-a-plesk-server-68/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 01:49:26 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.aisle8.net/blog/?p=68</guid>
		<description><![CDATA[I&#8217;ve learned the hard way that while directly altering Plesk&#8217;s database is almost never a good idea, the Plesk database &#8216;PSA&#8217; holds a ton of useful information that&#8217;s not always readily exportable from the interface.  Here are a couple of useful queries.  The first simply exports a list of &#8220;standard hosted&#8221; domains.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve learned the hard way that while directly altering Plesk&#8217;s database is almost never a good idea, the Plesk database &#8216;PSA&#8217; holds a ton of useful information that&#8217;s not always readily exportable from the interface.  Here are a couple of useful queries.  The first simply exports a list of &#8220;standard hosted&#8221; domains.  The second includes client information.</p>
<p>You&#8217;ll need to be logged in as root.  </p>
<p>First, Get into MySQL and use the Plesk database, &#8220;psa&#8221;:<br />
<code><br />
mysql -u admin -p`cat /etc/psa/.psa.shadow`;<br />
use psa;<br />
</code></p>
<p><strong>Query 1:  List all the standard hosted domains, send the results to a csv file:</strong><br />
<code><br />
select name from domains where htype='vrt_hst' INTO OUTFILE '/tmp/domains.csv';<br />
</code></p>
<p><strong>Query 2:  Building on that, lets add client information and sort it to make it pretty:</strong><br />
<code><br />
select cname,name from domains, clients where cl_id = clients.id and htype='vrt_hst' order by cname,name INTO OUTFILE '/tmp/domains-client.csv';<br />
</code></p>
<p>Nothing earth shattering here, but it might save you 5 minutes. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.aisle8.net/blog/listing-domains-managed-on-a-plesk-server-68/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
