<?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>The cPanel Admin &#187; howto</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using DKIM with Exim and cPanel</title>
		<link>http://www.thecpaneladmin.com/using-dkim-with-exim-and-cpanel/</link>
		<comments>http://www.thecpaneladmin.com/using-dkim-with-exim-and-cpanel/#comments</comments>
		<pubDate>Tue, 10 May 2011 20:54:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=818</guid>
		<description><![CDATA[Similar to the intentions of SPF records and DomainKeys, DKIM is intended to authenticate a sender by using a public/private key pair to digitally sign email, therefore increasing deliverability. At this point in time, while SPF records and DomainKeys are supported in cPanel, outgoing authentication with DKIM is not. That being said, please keep the [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/' rel='bookmark' title='Copy Outgoing Email on a cPanel Server with Exim'>Copy Outgoing Email on a cPanel Server with Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-domainkeys-spf-records/' rel='bookmark' title='Installing DomainKeys and SPF Records'>Installing DomainKeys and SPF Records</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Similar to the intentions of SPF records and DomainKeys, DKIM is intended to authenticate a sender by using a public/private key pair to digitally sign email, therefore increasing deliverability. At this point in time, while SPF records and DomainKeys are supported in cPanel, outgoing authentication with DKIM is not. That being said, please keep the following points in mind while following this tutorial:</p>
<ol>
<li>The cPanel developers indicated that DKIM auth will be a feature in 11.32, therefore, when 11.32 is released it&#8217;s possible that a few steps in this guide will become obsolete</li>
<li>cPanel does not recommend or provide support for some of the changes this tutorial will ask you to make.  As usual, make these changes at your own risk or use our <a href="http://thecpaneladmin.com/consultation">server consultation</a> services for help</li>
</ol>
<h2>Upgrade Exim</h2>
<p>DKIM is supported in Exim 4.70 and higher &#8211; the version current at the time this article was written is 4.69. Therefore, you will need to upgrade.  Hop over to the below URL, locate the latest version of Exim 4.7x, and navigate to the folder that corresponds with your operating system to find the RPM:</p>
<p><a href="http://httpupdate.cpanel.net/exim/" target="_blank">http://httpupdate.cpanel.net/exim/</a></p>
<p>In this case, we downloaded the RPM from:</p>
<p><a href="http://httpupdate.cpanel.net/exim/4.70-4/centos/5.6/exim-4.70-4_cpanel_maildir.i386.rpm" target="_blank">http://httpupdate.cpanel.net/exim/4.70-4/centos/5.6/exim-4.70-4_cpanel_maildir.i386.rpm</a></p>
<p>On your server, run the following command (replace the URL with the one corresponding to the RPM you found)</p>
<p><code>rpm -Uvh http://httpupdate.cpanel.net/exim/4.70-4/centos/5.6/exim-4.70-4_cpanel_maildir.i386.rpm --nodeps</code></p>
<p>Now, verify the version:</p>
<blockquote><p>root@server [~]# rpm -qa |grep -i exim<br />
exim-4.70-4_cpanel_maildir</p></blockquote>
<p>You&#8217;ll also want to keep cPanel from running an Exim update and reverting the version back to 4.69:</p>
<blockquote><p>touch /etc/eximupdisable</p>
<p>&nbsp;</p></blockquote>
<p>If you have existing domains on this server, make sure to move local and remote domains files back:</p>
<blockquote><p>mv -f /etc/localdomains.rpmsave /etc/localdomains<br />
mv -f /etc/remotedomains.rpmsave /etc/remotedomains</p></blockquote>
<p>*If you have trouble installing the RPM due to fetchmail or a conflict with the previously-install Exim package, do</p>
<blockquote><p>yum remove fetchmail</p>
<p>rpm -e exim-4.69-29_cpanel_maildir (replace with the actual name of the old Exim package)</p></blockquote>
<h2>Install DomainKeys</h2>
<p>The topic of how to install DomainKeys was previously covered in <a href="http://www.thecpaneladmin.com/installing-domainkeys-spf-records/">this article</a>. Install the keys for each user, or run a loop as shown in the article to install them for all users.  The keys will be in: <strong>/var/cpanel/domain_keys/[public|private]/$domain</strong> .</p>
<p>&nbsp;</p>
<h2>Configure Exim</h2>
<p>Open <strong>/etc/exim.conf </strong>and near the top, add the following lines:</p>
<blockquote><p>DKIM_DOMAIN = ${lc:${domain:$h_from:}}<br />
DKIM_FILE = /var/cpanel/domain_keys/private/${lc:${domain:$h_from:}}<br />
DKIM_PRIVATE_KEY = ${if exists{DKIM_FILE}{DKIM_FILE}{0}}</p></blockquote>
<p>Then scroll down until you see these lines:</p>
<blockquote><p>remote_smtp:<br />
driver = smtp</p></blockquote>
<p>Replace this with:</p>
<blockquote><p>remote_smtp:<br />
driver = smtp<br />
dkim_domain = DKIM_DOMAIN<br />
dkim_selector = default<br />
dkim_private_key = DKIM_PRIVATE_KEY<br />
dkim_canon = relaxed<br />
dkim_strict = 0</p></blockquote>
<p>Now, restart Exim:</p>
<blockquote><p>service exim restart</p></blockquote>
<p>The additions to exim.conf will use a domain&#8217;s key, if the domain has one, to sign each message with DKIM.</p>
<p>Now, keep in mind that cPanel will overwrite these changes during cPanel updates. You have the following options:</p>
<ul>
<li>Run chattr +ia /etc/exim.conf, OR:</li>
<li>Copy /etc/exim.conf to /root/exim.conf and create a file called <strong>/scripts/posteximup</strong> (and chmod to 700) containing the following code:</li>
</ul>
<blockquote><p>scp -p /root/exim.conf /etc/exim.conf<br />
service exim restart</p></blockquote>
<h2>Verify</h2>
<p>The easiest way to verify the functionality of your new DKIM setup is to send an email from your server to check-auth@verifier.port25.com . You&#8217;ll get an autoresponse back letting you now that everything is working (note that with DKIM, DomainKeys are obsolete so a status of &#8220;neutral&#8221; is normal)</p>
<p><code>﻿SPF check:          pass<br />
DomainKeys check:   neutral<br />
DKIM check:         pass<br />
Sender-ID check:    pass<br />
SpamAssassin check: ham</code></p>
<p><map name='google_ad_map_818_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/818?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_818_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=818&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fusing-dkim-with-exim-and-cpanel%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=818&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/' rel='bookmark' title='Copy Outgoing Email on a cPanel Server with Exim'>Copy Outgoing Email on a cPanel Server with Exim</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-domainkeys-spf-records/' rel='bookmark' title='Installing DomainKeys and SPF Records'>Installing DomainKeys and SPF Records</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/using-dkim-with-exim-and-cpanel/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Removing WHM Disk Space Errors</title>
		<link>http://www.thecpaneladmin.com/removing-whm-disk-space-errors/</link>
		<comments>http://www.thecpaneladmin.com/removing-whm-disk-space-errors/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 17:45:01 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=801</guid>
		<description><![CDATA[If your server is approaching 99% disk space, your users may be aware of this before you are.  At the 1% free margin, the following error will pop up when accessing certain features in cPanel and WHM: Sorry for the inconvience! The filesystem mounted at / on this server is running out of disk space. [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/resolving-domain-park-wrapper-errors/' rel='bookmark' title='Resolving Domain Park Wrapper Errors'>Resolving Domain Park Wrapper Errors</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If your server is approaching 99% disk space, your users may be aware of this before you are.  At the 1% free margin, the following error will pop up when accessing certain features in cPanel and WHM:</p>
<blockquote><p>Sorry for the inconvience!<br />
The filesystem mounted at / on this server is running out of disk space.  cPanel operation has been temporarily suspended to prevent something  bad from happening. Please ask your system admin to remove any files not  in use on that partition</p></blockquote>
<p>While 99% may seem like a dangerous limit, servers nowadays are getting rather large. If you have a server with over 3T of disk space, that 1% free could be well over 100G of space &#8211; space that would seemingly become waste.</p>
<p>Until this limit is removed in a future release, you can actually trick cPanel into thinking that the server has more space available. The key is the cache files located in <strong>/root/.cpanel/datastore</strong>, specifically the file <strong>_bin_df_-P_-k_-l.</strong></p>
<p>If you edit that file and change the occurrence of 99% to a lower value, you&#8217;ll see the restricted cPanel and WHM features return to normal.  Keep in mind that the cache regenerates, so in some cases it may be appropriate to create a cron job to periodically change the file.</p>
<p>Of course, if 99% disk usage on your server leaves you with a minuscule amount of space, you&#8217;ll want to remove some files or add additional storage. The following articles may be useful:</p>
<ul>
<li><a href="http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/" target="_blank">http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/</a></li>
<li><a href="http://www.thecpaneladmin.com/huge-cpan-folder-home/" target="_blank">http://www.thecpaneladmin.com/huge-cpan-folder-home/</a></li>
<li><a href="http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/" target="_blank">http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/</a></li>
<li><a href="http://www.thecpaneladmin.com/manually-rearranging-accounts/" target="_blank">http://www.thecpaneladmin.com/manually-rearranging-accounts/</a></li>
</ul>
<p>&nbsp;</p>
<p>Thanks to my colleague <a href="http://happygastropod.com/" target="_blank">Lee</a> for sharing this tidbit of info</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_801_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/801?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_801_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=801&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fremoving-whm-disk-space-errors%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=801&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/resolving-domain-park-wrapper-errors/' rel='bookmark' title='Resolving Domain Park Wrapper Errors'>Resolving Domain Park Wrapper Errors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/removing-whm-disk-space-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrading OpenSSH on CentOS 5</title>
		<link>http://www.thecpaneladmin.com/upgrading-openssh-on-centos-5/</link>
		<comments>http://www.thecpaneladmin.com/upgrading-openssh-on-centos-5/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 00:57:14 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=795</guid>
		<description><![CDATA[If you&#8217;ve taken a peek at your PCI scan results lately, you may have noticed that your scan provider is now requiring OpenSSH 4.5 or higher &#8211; a version that is not currently available in the CentOS 5 repositories.  A Yum update isn&#8217;t going to help you much there. You can, however, easily compile your [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/cpanel-updates-redhat-9-break-stuff/' rel='bookmark' title='cPanel Updates on Redhat 9 Can Break Stuff'>cPanel Updates on Redhat 9 Can Break Stuff</a></li>
<li><a href='http://www.thecpaneladmin.com/manually-upgrading-mysql/' rel='bookmark' title='Manually Upgrading MySQL'>Manually Upgrading MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/upgrading-downgrading-mysql/' rel='bookmark' title='Upgrading or Downgrading MySQL'>Upgrading or Downgrading MySQL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve taken a peek at your PCI scan results lately, you may have noticed that your scan provider is now requiring OpenSSH 4.5 or higher &#8211; a version that is not currently available in the CentOS 5 repositories.  A Yum update isn&#8217;t going to help you much there.</p>
<p>You can, however, easily compile your own RPM and manually upgrade OpenSSH.  The commands below are the ones I used to install version 5.8 (the latest stable at the time of this post), but can essentially be used for any compatible version.</p>
<p>First, download the OpenSSH source tarball from the vendor and unpack it. You can find the tarballs at <a href="http://www.openssh.com/portable.html" target="_blank">http://www.openssh.com/portable.html</a></p>
<blockquote><p>wget http://mirror.mcs.anl.gov/openssh/portable/openssh-5.8p1.tar.gz</p>
<p>tar -xvzf openssh-5.8p1.tar.gz</p></blockquote>
<p>Copy the spec file and tarball:</p>
<blockquote><p>cp ./openssh-5.8p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/</p>
<p>cp openssh-5.8p1.tar.gz /usr/src/redhat/SOURCES/</p></blockquote>
<p>Do a little magic:</p>
<blockquote><p>cd /usr/src/redhat/SPECS</p>
<p>perl -i.bak -pe &#8216;s/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/&#8217; openssh.spec</p></blockquote>
<p>&#8230;and build your RPM:</p>
<blockquote><p>rpmbuild -bb openssh.spec</p></blockquote>
<p>Now if you go back into /usr/src/redhat/RPMS/&lt;arch&gt; , you should see three RPMs. Go ahead and install them:</p>
<blockquote><p>rpm -Uvh *.rpm</p></blockquote>
<p>To verify the installed version, just type &#8216;ssh -v localhost&#8217; and you should see the banner come up, indicating the new version.</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_795_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/795?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_795_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=795&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fupgrading-openssh-on-centos-5%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=795&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/cpanel-updates-redhat-9-break-stuff/' rel='bookmark' title='cPanel Updates on Redhat 9 Can Break Stuff'>cPanel Updates on Redhat 9 Can Break Stuff</a></li>
<li><a href='http://www.thecpaneladmin.com/manually-upgrading-mysql/' rel='bookmark' title='Manually Upgrading MySQL'>Manually Upgrading MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/upgrading-downgrading-mysql/' rel='bookmark' title='Upgrading or Downgrading MySQL'>Upgrading or Downgrading MySQL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/upgrading-openssh-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Copy Outgoing Email on a cPanel Server with Exim</title>
		<link>http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/</link>
		<comments>http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 17:21:37 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=755</guid>
		<description><![CDATA[A common request we get is how a user can automatically BCC outgoing email to another address. This is most often requested by law firms that need to be able to retain copies of communication. Forwarding incoming email is easy &#8211; there&#8217;s already a section in cPanel for it. However, if you want to forward [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/custom-rbls-exim-cpanel/' rel='bookmark' title='Using Custom RBL&#8217;s with Exim and cPanel'>Using Custom RBL&#8217;s with Exim and cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
<li><a href='http://www.thecpaneladmin.com/improving-email-delivery/' rel='bookmark' title='10 Tips for Improving Email Delivery'>10 Tips for Improving Email Delivery</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A common request we get is how a user can automatically BCC outgoing email to another address. This is most often requested by law firms that need to be able to retain copies of communication. Forwarding incoming email is easy &#8211; there&#8217;s already a section in cPanel for it. However, if you want to forward outgoing email there&#8217;s a small twist.</p>
<p>First, go to <strong>WHM</strong> &gt; <strong>Exim Configuration Editor</strong>, then click &#8220;<strong>Advanced Editor</strong>&#8221; at the bottom. Don&#8217;t make any changes, just click &#8220;save&#8221;. This should create a file on the server called <em>/etc/exim.conf.local</em>.  From command line as root, you&#8217;ll need to edit <em>/etc/exim.conf.local</em> and add some options to the @CONFIG@ and @TRANSPORTSTART@ sections. The end result would look like this (plus any edits you may have already made):</p>
<p><code><br />
@AUTH@</code></p>
<p><code>@BEGINACL@</code></p>
<p><code>@CONFIG@<br />
system_filter_directory_transport = local_copy_outgoing<br />
</code><br />
<code>@DIRECTOREND@</code></p>
<p><code>@DIRECTORMIDDLE@</code></p>
<p><code>@DIRECTORSTART@</code></p>
<p><code>@ENDACL@</code></p>
<p><code>@RETRYEND@</code></p>
<p><code>@RETRYSTART@</code></p>
<p><code>@REWRITE@</code></p>
<p><code>@ROUTEREND@</code></p>
<p><code>@ROUTERSTART@</code></p>
<p><code>@TRANSPORTEND@</code></p>
<p><code>@TRANSPORTMIDDLE@</code></p>
<p><code>@TRANSPORTSTART@<br />
local_copy_outgoing:<br />
driver = appendfile<br />
delivery_date_add<br />
envelope_to_add<br />
return_path_add<br />
group = cpaneleximfilter<br />
user = cpaneleximfilter<br />
mode = 0660<br />
maildir_format = true<br />
create_directory = true</code></p>
<p>Now, make a copy of the existing system filter file to a custom location, so cPanel updates don&#8217;t mess with it:</p>
<blockquote><p>cp  /etc/cpanel_exim_system_filter /etc/cpanel_exim_system_filter_custom</p></blockquote>
<p>Edit /etc/exim.conf.localops and change the &#8220;systemfilter&#8221; option to match our new file:</p>
<p><code>systemfilter=/etc/cpanel_exim_system_filter_custom</code></p>
<p>Now, open <em>/etc/cpanel_exim_system_filter_custom</em> and add the following block of code to the end of the file:</p>
<p><code>if $header_from: contains "<span style="color: #3366ff;">@senderdomain.com</span>"<br />
then<br />
unseen deliver "<span style="color: #3366ff;">other@emailaddress</span>"<br />
endif</code></p>
<p>Replace the blue text with the sender domain (or email address)  and the email address that outgoing mail should be copied to.</p>
<p>Apply these new settings to the exim.conf and restart:</p>
<blockquote><p>/scripts/buildeximconf<br />
service exim restart</p></blockquote>
<p>Now when you send email from the email address or domain specified in the filter file, it will be copied to the other email address.</p>
<p><map name='google_ad_map_755_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/755?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_755_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=755&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fcopy-outgoing-email-on-a-cpanel-server-with-exim%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=755&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/custom-rbls-exim-cpanel/' rel='bookmark' title='Using Custom RBL&#8217;s with Exim and cPanel'>Using Custom RBL&#8217;s with Exim and cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/changing-exims-sending-ip/' rel='bookmark' title='Changing Exim&#8217;s Sending IP'>Changing Exim&#8217;s Sending IP</a></li>
<li><a href='http://www.thecpaneladmin.com/improving-email-delivery/' rel='bookmark' title='10 Tips for Improving Email Delivery'>10 Tips for Improving Email Delivery</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/copy-outgoing-email-on-a-cpanel-server-with-exim/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Fixing Quotas on a cPanel Server</title>
		<link>http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/</link>
		<comments>http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 01:25:12 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=718</guid>
		<description><![CDATA[If you go into WHM &#62; List Accounts and all your accounts are showing an unlimited quota and 0 disk space usage, you probably have a quota problem. First thing, try running /scripts/fixquotas This&#8217;ll take a while depending on your current disk usage, but will usually fix the problem. If it doesn&#8217;t, make sure that [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/performance-tip-disable-optimizefs/' rel='bookmark' title='Performance Tip: Disable Optimizefs'>Performance Tip: Disable Optimizefs</a></li>
<li><a href='http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/' rel='bookmark' title='Managing Multiple Hard Drives with cPanel'>Managing Multiple Hard Drives with cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you go into <em>WHM</em> &gt; <em>List Accounts</em> and all your accounts are showing an unlimited quota and 0 disk space usage, you probably have a quota problem.</p>
<p>First thing, try running</p>
<blockquote><p>/scripts/fixquotas</p></blockquote>
<p>This&#8217;ll take a while depending on your current disk usage, but will usually fix the problem. If it doesn&#8217;t, make sure that quotas are on for your filesystem.  Look at /etc/fstab, and in the fourth column (the options column), make sure that &#8216;usrquota&#8217; is specified for the file system that contains your user home folders.  For example, this is how ours looks:</p>
<p><code>LABEL=/     /           ext3    defaults,noatime,usrquota 0  0<br />
LABEL=/home    /home          ext3    defaults,noatime,usrquota 0  0</code></p>
<p>If /home is part of the / partition, then the quotas need to be applied to / .</p>
<p>Now, remount the partitions with new options.  For the root ( / ) partition for example, you&#8217;d run the following command:</p>
<blockquote><p>mount -o remount /</p></blockquote>
<p>Then run the following command to update quotas:</p>
<blockquote><p>/scripts/initquotas</p></blockquote>
<p>If the problem indicates a problem writing to /aquota.user or similar, make sure the file isn&#8217;t set to immutable:</p>
<blockquote><p>chattr -ia /aquota.user</p></blockquote>
<p>After following these steps, if you&#8217;re still having a problem feel free to submit a support ticket and we&#8217;ll help you out!</p>
<p><map name='google_ad_map_718_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/718?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_718_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=718&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Ffixing-quotas-on-a-cpanel-server%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=718&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/performance-tip-disable-optimizefs/' rel='bookmark' title='Performance Tip: Disable Optimizefs'>Performance Tip: Disable Optimizefs</a></li>
<li><a href='http://www.thecpaneladmin.com/managing-multiple-hard-drives-cpanel/' rel='bookmark' title='Managing Multiple Hard Drives with cPanel'>Managing Multiple Hard Drives with cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Everything You Wanted to Know About Cron</title>
		<link>http://www.thecpaneladmin.com/everything-you-wanted-to-know-about-cron/</link>
		<comments>http://www.thecpaneladmin.com/everything-you-wanted-to-know-about-cron/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 04:24:11 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=707</guid>
		<description><![CDATA[The following is a guest post from Gwen Davis of hostingobserver.com. History The first cron was written in the early 1970s for Version 7 UNIX as a system service (also known in UNIX as a daemon). The algorithm, invoked from the /etc/inittab location whenever the OS entered a multi-user mode, was simple &#8212; every minute, [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/performance-tip-disable-optimizefs/' rel='bookmark' title='Performance Tip: Disable Optimizefs'>Performance Tip: Disable Optimizefs</a></li>
<li><a href='http://www.thecpaneladmin.com/understanding-courier-imap-and-maildir/' rel='bookmark' title='Understanding Courier IMAP and Maildir'>Understanding Courier IMAP and Maildir</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-backup-system/' rel='bookmark' title='The cPanel Backup System'>The cPanel Backup System</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><!-- p { margin-bottom: 0.08in; }a:link {  } -->The following is a guest post from Gwen Davis of hostingobserver.com.</p>
<h2>History</h2>
<p>The first cron was written in the early 1970s for Version 7 UNIX as a system service (also known in UNIX as a daemon). The algorithm, invoked from the /etc/inittab location whenever the OS entered a multi-user mode, was simple &#8212; every minute, it checked a directory for any files set to be run at the current date/time, and ran any it found under superuser root. The next version of cron, created for the release of UNIX System V, extended capabilities beyond the superuser root to all users.</p>
<p>Cron, ported to BSD, remained unchanged for the life of UNIX System V and its derivatives: Solaris, IRIX, HP-UX, and IBM AIX. Vixie cron (now called ISC Cron) were developed for Linux in 1987, and Redhat Linux has cronie and anacron, all of which have contributed to the growth in Linux server administration.</p>
<h2><span style="color: #00000a;">Cron Hosting Basics</span></h2>
<p>There are three basic characteristics for the <a href="http://www.hostingobserver.com/best-web-host.php" target="_blank">best web hosts</a> for Cron, these are Linux hosting, cPanel hosting and unlimited hosting. However, this does not mean that you will never have the ability to run cron jobs if your hosting plan has one or two elements missing. From here on we will discuss the workarounds available for each criteria.</p>
<p><span id="more-707"></span></p>
<h2>Windows and Cron</h2>
<p>The scheduling service within MS Windows began as the AT command in MS-DOS, became the WinAT command in the NT versions of Windows, and eventually evolved into the Task Scheduler service built into the Windows operating systems from Win98 on.</p>
<p>Thus, if your host is not Nix-like and you need Cron, check out: <a href="http://webmasterformat.com/blog/cron-job-on-windows-server" target="_blank">Simple Ways to Set Up a Cron Job on a Windows Server</a></p>
<h2>cPanel and Cron Commands</h2>
<p>For those of you without Cpanel to easily configure your Cron, you will need shell access to go inside the crontab directly to configure it. Here are some basic commands and syntax for manually handling Cron:<br />
<code><br />
- "crond start" (Starts the cron daemon)<br />
- "crond stop" (stops the cron daemon)<br />
- "ps aux | grep crond" (check to see if cron daemon is running)<br />
- "crontab -l" (list all cronjobs set by root user)<br />
- "crontab -u -l" (lists all cronjobs set by username)<br />
- "crontab -e" (edit a cronjob for root user)<br />
- "crontab -u -e" (edit a cronjob for username)<br />
- "crontab -r" (remove all cronjobs of root user)<br />
- "crontab -u -r" (remove all cronjobs of username)<br />
- "crontab " (imports cronjobs from file for root user)<br />
- "crontab -u " (import cronjobs from file for username)</code></p>
<p>The default editor software for editing cronjobs is vi.</p>
<p>A crontab file contains lines for definition of the environment and the runs.</p>
<p>The first four lines of a typical crontab file are:<br />
<strong>SHELL=/bin/bash<br />
PATH=/sbin:/bin:/usr/sbin:/usr/bin<br />
MAILTO=root<br />
HOME=/</strong></p>
<p>SHELL is the variable that specifies which shell environment should be used.<br />
PATH is the variable defining the path for execution of specific commands.<br />
MAILTO is the variable specifying the username which will receive any output via email. If empty (MAILTO=&#8221;"), then no email will be sent.<br />
HOME is the variable that sets the home directory for cronjob execution.</p>
<p>All the lines that follow look like this:</p>
<blockquote><p>42 4 1 * * root run-user /etc/cron.monthly &gt;&gt; /dev/null 2&gt;&amp;1</p></blockquote>
<p>The format is:<br />
<strong> Minute Hour Day Month Dayofweek User Command Location Output</strong><br />
where</p>
<ul>
<li> Minute: any integer from 0-59</li>
<li> Hour: any integer from 0-23</li>
<li> Day: any integer from 1-31 (max must be valid for any specified month)</li>
<li> Month: any integer from 1-12 (or jan, feb, etc.)</li>
<li> Dayofweek: any integer from 0-6 (or sun, mon, etc.)</li>
<li> User: &#8220;root&#8221; or username</li>
<li> Command: name of job to be run</li>
<li> Location: directory where command is located</li>
<li> Output: all output goes to trash can</li>
</ul>
<h2><span style="color: #00000a;">More on Output:</span><span style="font-family: Times New Roman,serif;"><br />
</span></h2>
<p>&#8220;&gt;&gt; /dev/null 2&gt;&amp;1&#8243; means the cronjob sends both standard output and error output to the trash can. If you want to save both the standard and error output, you can use &#8220;&gt;&gt; /home/user/some.log 2&gt;&amp;1&#8243; instead.</p>
<p>An asterisk (*) can be used as a wildcard to denote all possible values &#8212; an asterisk in the Month position means every month of the year.</p>
<p>So, in the example given above, the job run-user, located in the /etc/cron.monthly directory, will be run at 4:42 AM on the 1st of every month.</p>
<p>A comma (,) can be used to create a list of values &#8212; for example, &#8220;4,5,6&#8243; means 4, 5 and 6.</p>
<p>A hyphen (-) between two integers can be used to denote a range of values &#8212; for example, 2-5 means 2, 3, 4, and 5.</p>
<p>A forward slash (/) followed by an integer denotes step values &#8212; for example, 3/5 in the Hour field means the job is run first at 3 AM, again at 8 AM, again at 1 PM, and so on.</p>
<p>Every minute, the /etc/crontab directory is checked and read, then the /etc/cron.d directory and then the /var/spool/cron directory. Any entries found that match the current date/time will cause the specified file to be loaded into memory and executed.</p>
<p>Several other subdirectories are also checked periodically:<br />
- /etc/cron.hourly<br />
- /etc/cron.daily<br />
- /etc/cron.weekly<br />
- /etc/cron.monthly</p>
<p>Exit values returned by crontab are either zero (success), or a number greater than zero (error).</p>
<h2><span style="color: #00000a;">Cron and Email Management<br />
</span></h2>
<p>As discussed, the output from Cron is automatically mailed to the process owner or the person specified in the MAILTO variable, as such cron jobs can be used to take care of standard <a href="http://www.hostingobserver.com/email-hosting.php" target="_blank">email hosting</a> and system maintenance functions, such as server backup, automatic email loads, and scanning incoming mail for malware and viruses. For email management, cron jobs can communicate with multiple websites, delete spam from mailboxes or distribute overnight content to subscribers &#8212; you can even use cron jobs to do monthly expired-member purges of your subscriber database, or summarize the demographics of your current mailing list. Any email management task that you can set up as a batch job, you can set up as a cron job.</p>
<h2><span style="color: #00000a;">Unlimited Resource and Cronjobs as a Service </span></h2>
<p>If your host cannot handle the load of hosting unlimited resources, Cron has become an additional remote service offered by other online companies. For a fee, the service provider will allow you to schedule your own cron jobs over the Internet. With the extra service more attention must be paid, of course, to file locations when setting up the cron job, but the added flexibility this gives to webmasters more than makes up for the added complexity. Note that the key features to look-out for in choosing a good 3rd party cron job service are refresh rate, run time, quantity&#8211; how many jobs can be scheduled, and flexibility in the type of scripts to be run.</p>
<p><map name='google_ad_map_707_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/707?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_707_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=707&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Feverything-you-wanted-to-know-about-cron%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=707&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/performance-tip-disable-optimizefs/' rel='bookmark' title='Performance Tip: Disable Optimizefs'>Performance Tip: Disable Optimizefs</a></li>
<li><a href='http://www.thecpaneladmin.com/understanding-courier-imap-and-maildir/' rel='bookmark' title='Understanding Courier IMAP and Maildir'>Understanding Courier IMAP and Maildir</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-backup-system/' rel='bookmark' title='The cPanel Backup System'>The cPanel Backup System</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/everything-you-wanted-to-know-about-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a Red5 Flash Media Server</title>
		<link>http://www.thecpaneladmin.com/setting-up-red5-flash-media-server/</link>
		<comments>http://www.thecpaneladmin.com/setting-up-red5-flash-media-server/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 14:24:51 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[red5]]></category>
		<category><![CDATA[third party]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=658</guid>
		<description><![CDATA[This post will explain a simple process for installing a Red5 Flash Media server in a VPS or Dedicated environment. Install Subversion and Java yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel yum -y install subversion Install Ant cd /opt wget http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.1-bin.tar.bz2 tar jxvf apache-ant-1.8.1-bin.tar.bz2 mv apache-ant-1.8.1 ant ln -s /opt/ant/bin/ant /usr/bin/ant Result: /opt/ant Export some variables and [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/setting-up-wildcard-dns-with-cpanel/' rel='bookmark' title='Setting Up Wildcard DNS with cPanel'>Setting Up Wildcard DNS with cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-installing-mod_python-apache-2/' rel='bookmark' title='cPanel: Installing Mod_Python on Apache 2'>cPanel: Installing Mod_Python on Apache 2</a></li>
<li><a href='http://www.thecpaneladmin.com/change-ftp-port/' rel='bookmark' title='How to Change Your FTP Port'>How to Change Your FTP Port</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This post will explain a simple process for installing a Red5 Flash Media server in a VPS or Dedicated environment.</p>
<h2>Install Subversion and Java</h2>
<p><code>yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel<br />
yum -y install subversion</code></p>
<h2>Install Ant</h2>
<p><code>cd /opt<br />
wget <a title="http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.1-bin.tar.bz2" rel="nofollow" href="http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.1-bin.tar.bz2">http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.1-bin.tar.bz2</a><br />
tar jxvf apache-ant-1.8.1-bin.tar.bz2<br />
mv apache-ant-1.8.1 ant<br />
ln -s /opt/ant/bin/ant /usr/bin/ant</code></p>
<p>Result: /opt/ant</p>
<h2>Export some variables and add to bashrc:</h2>
<p><code>export ANT_HOME=/opt/ant<br />
export JAVA_HOME=/usr/lib/jvm/java<br />
export PATH=$PATH:/opt/ant/bin<br />
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip</code></p>
<p><code>echo 'export ANT_HOME=/opt/ant' &gt;&gt; /etc/bashrc<br />
echo 'export JAVA_HOME=/usr/lib/jvm/java' &gt;&gt; /etc/bashrc<br />
echo 'export PATH=$PATH:/opt/ant/bin' &gt;&gt; /etc/bashrc<br />
echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' &gt;&gt; /etc/bashrc<br />
</code></p>
<h2>Install Red5:</h2>
<p><code>cd /opt<br />
svn co <a title="http://red5.googlecode.com/svn/java/server/trunk" rel="nofollow" href="http://red5.googlecode.com/svn/java/server/trunk">http://red5.googlecode.com/svn/java/server/trunk</a> red5<br />
cd red5<br />
ant prepare<br />
ant dist<br />
</code></p>
<h2>Create an init script</h2>
<p>By default you have to use red5&#8242;s inherent scripts to start/stop, which can be a bit annoying. Create a file called /etc/init.d/red5 and past int he following:</p>
<p><code>#!/bin/sh<br />
# For RedHat servers<br />
# description: Red5 flash media server<br />
# processname: red5<br />
PROG=red5<br />
RED5_HOME=/opt/red5<br />
DAEMON=$RED5_HOME/$PROG.sh<br />
PIDFILE=/var/run/$PROG.pid<br />
# Source function library<br />
. /etc/rc.d/init.d/functions<br />
[ -r /etc/sysconfig/red5 ] &amp;&amp; . /etc/sysconfig/red5<br />
RETVAL=0<br />
case "$1" in<br />
start)<br />
echo -n $"Starting $PROG: "<br />
cd $RED5_HOME<br />
$DAEMON &gt;/dev/null 2&gt;/dev/null &amp;<br />
RETVAL=$?<br />
if [ $RETVAL -eq 0 ]; then<br />
echo $! &gt; $PIDFILE<br />
touch /var/lock/subsys/$PROG<br />
fi<br />
[ $RETVAL -eq 0 ] &amp;&amp; success $"$PROG startup" || failure $"$PROG startup"<br />
echo<br />
;;<br />
stop)<br />
echo -n $"Shutting down $PROG: "<br />
killproc -p $PIDFILE<br />
RETVAL=$?<br />
echo<br />
[ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/$PROG<br />
;;<br />
restart)<br />
$0 stop<br />
$0 start<br />
;;<br />
status)<br />
status $PROG -p $PIDFILE<br />
RETVAL=$?<br />
;;<br />
*)<br />
echo $"Usage: $0 {start|stop|restart|status}"<br />
RETVAL=1<br />
esac<br />
exit $RETVAL</code></p>
<p>*Note that WordPress has a strange way of outputting double quotes, so make sure you address those in the script!<br />
Now,<strong> chmod 755 /etc/init.d/red5</strong> and run:</p>
<blockquote><p>chkconfig red5 on</p></blockquote>
<p>This will run Red5 on startup.  With the init script, you can now start, stop, and restart red5 as needed, ex:</p>
<blockquote><p>service red5 restart</p></blockquote>
<p>red5 should now run port 5080 and rtmp service on port 1935. You may need to open these ports in your server&#8217;s firewall.</p>
<h2>Test:</h2>
<pre><a title="http://hostname:5080/demos/port_tester.swf" rel="nofollow" href="http://hostname:5080/demos/port_tester.swf">http://hostname:5080/demos/port_tester.swf</a>
</pre>
<p>Source: Adapted from <a href="http://www.sohailriaz.com/how-to-install-red5-server-on-centos-53/" target="_blank">http://www.sohailriaz.com/how-to-install-red5-server-on-centos-53/</a></p>
<pre></pre>
<p><map name='google_ad_map_658_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/658?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_658_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=658&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fsetting-up-red5-flash-media-server%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=658&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/setting-up-wildcard-dns-with-cpanel/' rel='bookmark' title='Setting Up Wildcard DNS with cPanel'>Setting Up Wildcard DNS with cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-installing-mod_python-apache-2/' rel='bookmark' title='cPanel: Installing Mod_Python on Apache 2'>cPanel: Installing Mod_Python on Apache 2</a></li>
<li><a href='http://www.thecpaneladmin.com/change-ftp-port/' rel='bookmark' title='How to Change Your FTP Port'>How to Change Your FTP Port</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/setting-up-red5-flash-media-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Adding New Feature Groups for a cPanel Theme</title>
		<link>http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/</link>
		<comments>http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 14:13:23 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[branding]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=628</guid>
		<description><![CDATA[You&#8217;ll probably often see hosts that have a ton of extra icons in their cPanel for various items. When you&#8217;re customizing cPanel, it&#8217;s useful to be able to be able to add icon groups for features that either need to be grouped together, or that don&#8217;t fit into other categories.  cPanel 11 makes it very [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/new-cpanel-database-mapping-feature/' rel='bookmark' title='New cPanel Database Mapping Feature: Is it for You?'>New cPanel Database Mapping Feature: Is it for You?</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/' rel='bookmark' title='Adding Services to Chksrvd for Monitoring'>Adding Services to Chksrvd for Monitoring</a></li>
<li><a href='http://www.thecpaneladmin.com/configuring-pureftp/' rel='bookmark' title='Command Line PureFTP Configuration on cPanel'>Command Line PureFTP Configuration on cPanel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ll probably often see hosts that have a ton of extra icons in their cPanel for various items. When you&#8217;re customizing cPanel, it&#8217;s useful to be able to be able to add icon groups for features that either need to be grouped together, or that don&#8217;t fit into other categories.  cPanel 11 makes it very easy to customize how icons are presented.</p>
<h2>Create the Group</h2>
<p>First, you&#8217;ll want to create your icon group.  The group will contain features/plugins that you create and assign to the group. Here&#8217;s a very basic example of a Twitter plugin that was created as part of a separate group called &#8220;Extras&#8221;:</p>
<p><a href="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/cpanel_branding_group.png"><img class="aligncenter size-medium wp-image-629" title="cpanel_branding_group" src="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/cpanel_branding_group-300x117.png" alt="" width="300" height="117" /></a></p>
<p>First, we&#8217;re going to create the &#8220;Extras&#8221; group:</p>
<p>If you&#8217;re using the x3 theme, go into <strong>/usr/local/cpanel/base/frontend/x3/dynamicui</strong> . Create a file based on your new menu, prefaced with <em>dynamicui</em>, and ending in .<em>conf</em>. For example, I&#8217;m creating a group of icons that I want to be under a group called &#8220;extras&#8221;, so the file I create will be called <strong>dynamicui_extras.conf .</strong></p>
<p>In the dynamicui_extras.conf file, all on one line, I&#8217;ll add the properties for my group, making sure everything is on one line:</p>
<p><code>groupdesc=&gt;Extras,description=&gt;extra icons,grouporder=&gt;-100,group=&gt;<strong>extras_menu</strong>,<br />
<code>imgtype=&gt;icon,subtype=&gt;img,type=&gt;image,file=&gt;extras,height=&gt;32,width=&gt;32</code></p>
<p>*Above info may be wrapped for display purposes, but in the file it should all be on one line</p>
<p>The settings here should be fairly self-explanatory, but here are the main elements:</p>
<ul>
<li><strong>groupdesc</strong>: The label that will show up in cPanel for the group heading</li>
<li><strong>description</strong>: Describes the group (not shown in cPanel)</li>
<li><strong>grouporder</strong>: Where the group will show up in the cPanel interface (accepts negative values, lowest number is highest up)</li>
<li><strong>group</strong>: The name of the group, used when generating cPanel plugins</li>
</ul>
<p>The rest of the values should be inputted as above, and just put the file value as the name of the group.  Now, save the file and reload cPanel. If you have active feature in this group, you should see the group and its icons appear when loading cPanel. If you don't see it, it means that either you don't have any features as part of the group, or your features are not configured correctly. So let's do that now!</p>
<h2>Create Plugins (Features)</h2>
<p>Cpanel plugins are basically items in cPanel that add functionality, and are enabled/disabled in WHM's Feature Manager. To create a plugin, simply use the <a href="http://www.cpanel.net/developer/overview.html" target="_blank">cPanel Plugin Generator</a>.  Notice that in the form, there's an option for Display Group - you can choose any of those for now, since you're just going to change it later.</p>
<p>Once you've generated and downloaded the plugin, open the plugin file and edit the group line.  This should reflect the value you put as <strong>group</strong> for the group you created earlier, so in my example, the line should read:</p>
<p><code>group:extras_menu</code></p>
<p>To install the plugin, copy the file to /usr/local/cpanel/bin and run:</p>
<blockquote><p>/usr/local/cpanel/bin/register_cpanelplugin /usr/local/cpanel/bin/&lt;pluginfilename&gt;</p></blockquote>
<p>You should now see the icon and group in cPanel. If you don't, you can try rebuilding the sprites:</p>
<blockquote><p>/usr/local/cpanel/bin/rebuild_sprites</p></blockquote>
<p>Resources:</p>
<p><a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/InstallingPlugins" target="_blank">cPanel Documentation: Installing Plugins</a></p>
<p><a href="http://docs.cpanel.net/twiki/bin/view/DeveloperResources/AddingIconsAndGroup" target="_blank">cPanel Documentation: Adding Icons and Groups</a></p>
<p><map name='google_ad_map_628_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/628?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_628_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=628&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fadding-new-feature-groups-cpanel-theme%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=628&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/new-cpanel-database-mapping-feature/' rel='bookmark' title='New cPanel Database Mapping Feature: Is it for You?'>New cPanel Database Mapping Feature: Is it for You?</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-services-to-chksrvd-for-monitoring/' rel='bookmark' title='Adding Services to Chksrvd for Monitoring'>Adding Services to Chksrvd for Monitoring</a></li>
<li><a href='http://www.thecpaneladmin.com/configuring-pureftp/' rel='bookmark' title='Command Line PureFTP Configuration on cPanel'>Command Line PureFTP Configuration on cPanel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing ClamAV on a cPanel Server</title>
		<link>http://www.thecpaneladmin.com/installing-clamav-on-a-cpanel-server/</link>
		<comments>http://www.thecpaneladmin.com/installing-clamav-on-a-cpanel-server/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 19:54:19 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=616</guid>
		<description><![CDATA[ClamAV is an popular open source anti-virus toolkit for *nix, and while many people don&#8217;t find much value in using antivirus software on Unix, it is very useful for email scanning.  cPanel&#8217;s implementation allows end users to run scans on their home folders, public FTP folders, mail, and public_html. It&#8217;s really hard to install ClamAV [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/securing-ftp-access-on-cpanel-server/' rel='bookmark' title='Securing FTP Access on a cPanel Server'>Securing FTP Access on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/' rel='bookmark' title='Fixing Quotas on a cPanel Server'>Fixing Quotas on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>ClamAV is an popular open source anti-virus toolkit for *nix, and while many people don&#8217;t find much value in using antivirus software on Unix, it is very useful for email scanning.  cPanel&#8217;s implementation allows end users to run scans on their home folders, public FTP folders, mail, and public_html.</p>
<p>It&#8217;s really hard to install ClamAV on cPanel &#8211; if you&#8217;re too lazy to click a couple buttons.  Simply go to <strong>WHM</strong> &gt; <strong>Manage Plugins</strong> and enable the ClamAV Connector, and you&#8217;re good to go.</p>
<p><a href="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/1.png"><img class="aligncenter size-medium wp-image-618" title="clamAV" src="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/1-300x86.png" alt="" width="300" height="86" /></a></p>
<p>After this is done, you can go to <strong>WHM</strong> &gt; <strong>Configure ClamAV Scanner</strong> and set scanning options for the entire server or specific users:</p>
<p><a href="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/2.png"><img class="aligncenter size-medium wp-image-619" title="ClamAV" src="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/2-300x218.png" alt="" width="300" height="218" /></a></p>
<p>You should now see a Virus Scanner option in cPanel. If you don&#8217;t, you may need to enable it in Feature Manager.</p>
<p><a href="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/31.png"><img class="aligncenter size-full wp-image-622" title="ClamAV" src="http://www.thecpaneladmin.com/wp-content/uploads/2010/08/31.png" alt="" width="180" height="144" /></a></p>
<p>From here, cPanel users can run scans on any permitted items.</p>
<p>For administrators, here are a few quick commands that may be useful:</p>
<p>Update antivirus database:</p>
<blockquote><p>freshclam</p></blockquote>
<p>Scan a directory and print out infected files:</p>
<blockquote><p>clamav -ri /home</p></blockquote>
<p>Scan a directly and remove infected files and emails:</p>
<blockquote><p>clamav -ri &#8211;remove /home</p></blockquote>
<p><map name='google_ad_map_616_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/616?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_616_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=616&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Finstalling-clamav-on-a-cpanel-server%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=616&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/securing-ftp-access-on-cpanel-server/' rel='bookmark' title='Securing FTP Access on a cPanel Server'>Securing FTP Access on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/fixing-quotas-on-a-cpanel-server/' rel='bookmark' title='Fixing Quotas on a cPanel Server'>Fixing Quotas on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/installing-clamav-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Skipping the WHM Setup Wizard on New Servers</title>
		<link>http://www.thecpaneladmin.com/skipping-whm-setup-wizard/</link>
		<comments>http://www.thecpaneladmin.com/skipping-whm-setup-wizard/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 14:26:43 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=600</guid>
		<description><![CDATA[If you have a fully automated cPanel/WHM setup method used to deploy a large number of servers, you&#8217;ve probably found it to be annoying that upon loading WHM for the first time, you&#8217;re greeted with a setup wizard that you have to click through.  To skip this wizard, all you need to do is touch [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/assign-ip-multiple-cpanel-accounts/' rel='bookmark' title='How to Assign an IP To Multiple cPanel Accounts'>How to Assign an IP To Multiple cPanel Accounts</a></li>
<li><a href='http://www.thecpaneladmin.com/rebuild-cpanel-bandwidth-graphs/' rel='bookmark' title='How to Rebuild cPanel Bandwidth Graphs'>How to Rebuild cPanel Bandwidth Graphs</a></li>
<li><a href='http://www.thecpaneladmin.com/quota-errors-in-exims-panic-log/' rel='bookmark' title='Quota Errors in Exim&#8217;s Panic Log'>Quota Errors in Exim&#8217;s Panic Log</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you have a fully automated cPanel/WHM setup method used to deploy a large number of servers, you&#8217;ve probably found it to be annoying that upon loading WHM for the first time, you&#8217;re greeted with a setup wizard that you have to click through.  To skip this wizard, all you need to do is touch a file:</p>
<blockquote><p>touch /etc/.whostmgrft</p></blockquote>
<p>This will tell WHM to skip the setup wizard altogether. However, if you haven&#8217;t already, you&#8217;ll want to add the following pieces to your automation which are usually configured in the setup wizard:</p>
<ul>
<li>IMAP &#8211; /scripts/setupmailserver (courier | dovecot  | disabled)</li>
<li>DNS &#8211; /scripts/setupnameserver (bind | nsd | disabled)</li>
<li>FTP &#8211; /scripts/setupftpserver (pure-ftpd | proftpd | disabled)</li>
</ul>
<p>You should also create the <strong>/etc/wwwacct.conf </strong>file, with the following contents:</p>
<p><code>ADDR 123.456.789.123<br />
CONTACTEMAIL your@emailaddress<br />
CONTACTPAGER<br />
DEFMOD x3<br />
ETHDEV eth0<br />
FTPTYPE pureftp<br />
HOMEDIR /home<br />
HOMEMATCH home<br />
HOST server.domain.com<br />
LOGSTYLE combined<br />
MINUID<br />
NS ns1.yourdomain.com<br />
NS2 ns2.yourdomain.com<br />
NS3<br />
NS4<br />
NSTTL 86400<br />
SCRIPTALIAS y<br />
TTL 14400</code></p>
<p>Derived from : <a href="http://www.cpanel.net/blog/integration/2010/05/skipping-the-whm-getting-started-wizard.html" target="_blank">http://www.cpanel.net/blog/integration/2010/05/skipping-the-whm-getting-started-wizard.html</a></p>
<p><map name='google_ad_map_600_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/600?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_600_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=600&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fskipping-whm-setup-wizard%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=600&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/assign-ip-multiple-cpanel-accounts/' rel='bookmark' title='How to Assign an IP To Multiple cPanel Accounts'>How to Assign an IP To Multiple cPanel Accounts</a></li>
<li><a href='http://www.thecpaneladmin.com/rebuild-cpanel-bandwidth-graphs/' rel='bookmark' title='How to Rebuild cPanel Bandwidth Graphs'>How to Rebuild cPanel Bandwidth Graphs</a></li>
<li><a href='http://www.thecpaneladmin.com/quota-errors-in-exims-panic-log/' rel='bookmark' title='Quota Errors in Exim&#8217;s Panic Log'>Quota Errors in Exim&#8217;s Panic Log</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/skipping-whm-setup-wizard/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

