<?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>EZ Linux Admin &#187; Cpanel and WHM</title>
	<atom:link href="http://www.ezlinuxadmin.com/category/cpanel-and-whm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezlinuxadmin.com</link>
	<description>Making Linux Easier</description>
	<lastBuildDate>Fri, 03 Feb 2012 18:43:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>add a 404 page to each website on a cpanel server</title>
		<link>http://www.ezlinuxadmin.com/2011/12/404-page-website-cpanel-server/</link>
		<comments>http://www.ezlinuxadmin.com/2011/12/404-page-website-cpanel-server/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 07:58:59 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=555</guid>
		<description><![CDATA[#!/usr/bin/perl # cPlicensing.net &#8211; scripts            Copyright(c) 2003 cPlicensing.net. #                                     All rights Reserved. # support@cPlicensing.net              http://cPlicensing.net # Version: 0.02 print &#8220;Starting Scan&#8230;\n&#8221;; while(@USERS=getpwent()){ if (-d &#8220;$USERS[7]/public_html&#8221;) { if (-f &#8220;$USERS[7]/public_html/404.shtml&#8221;) { print &#8220;$USERS[0] 404.shtml exists\n&#8221;; } else { print &#8220;$USERS[0] creating 404.shtml&#8230;&#8221;; open(FILE,&#8221;&#62;$USERS[7]/public_html/404.shtml&#8221;) or die &#8220;Unable to create file: $!&#8221;; close(FILE); chmod(0644, [...]]]></description>
			<content:encoded><![CDATA[<p>#!/usr/bin/perl<br />
# cPlicensing.net &#8211; scripts            Copyright(c) 2003 cPlicensing.net.<br />
#                                     All rights Reserved.<br />
# support@cPlicensing.net              http://cPlicensing.net<br />
# Version: 0.02</p>
<p>print &#8220;Starting Scan&#8230;\n&#8221;;</p>
<p>while(@USERS=getpwent()){<br />
if (-d &#8220;$USERS[7]/public_html&#8221;) {<br />
if (-f &#8220;$USERS[7]/public_html/404.shtml&#8221;) {<br />
print &#8220;$USERS[0] 404.shtml exists\n&#8221;;<br />
} else {<br />
print &#8220;$USERS[0] creating 404.shtml&#8230;&#8221;;<br />
open(FILE,&#8221;&gt;$USERS[7]/public_html/404.shtml&#8221;) or die &#8220;Unable to create file: $!&#8221;;<br />
close(FILE);<br />
chmod(0644, &#8220;$USERS[7]/public_html/404.shtml&#8221;) or die &#8220;Unable to chmod file: $!&#8221;;<br />
chown($USERS[2],$USERS[3],&#8221;$USERS[7]/public_html/404.shtml&#8221;) or die &#8220;Unable to chown file: $!&#8221;;<br />
print &#8220;done\n&#8221;;<br />
}<br />
}<br />
}<br />
if (-f &#8220;/root/cpanel3-skel/public_html/404.shtml&#8221;) {<br />
print &#8220;404.shtml file exists in skel dir\n&#8221;;<br />
} else {<br />
print &#8220;Creating 404.shtml file in skel dir&#8230;&#8221;;<br />
open(FILE,&#8221;&gt;/root/cpanel3-skel/public_html/404.shtml&#8221;) or die &#8220;Unable to create file: $!&#8221;;<br />
print &#8220;done\n&#8221;;<br />
}</p>
<p>print &#8220;Scan Complete!\n&#8221;;</p>
<p>#ChangeLog<br />
#Version :: YYYY.MM.DD :: Type :: Description<br />
#<br />
#0.2 :: 2003.11.06 :: Bug Fix :: 404.shtml was created in the root skel folder, changed to public_html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/12/404-page-website-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup cleaner script for cpanel</title>
		<link>http://www.ezlinuxadmin.com/2011/12/backup-cleaner-script-for-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2011/12/backup-cleaner-script-for-cpanel/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 07:53:50 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cleaner]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=551</guid>
		<description><![CDATA[#!/usr/bin/perl # cPlicensing.net &#8211; scripts             Copyright(c) 2003 cPlicensing.net. #                                       All rights Reserved. # support@cPlicensing.net               http://cPlicensing.net # Unauthorized copying is prohibited #Version: 0.01 use POSIX; $delete_old     = &#8217;1&#8242;; #0 or 1, set to 1 to remove old account backups if($ARGV[0] eq &#8220;-d&#8221;) { $delete_old = &#8217;1&#8242;; } $&#124;++; POSIX::nice(19); print &#8220;Reading Backup Config&#8230;&#8221;; open(CPBACK,&#8221;/etc/cpbackup.conf&#8221;) or [...]]]></description>
			<content:encoded><![CDATA[<p>#!/usr/bin/perl<br />
# cPlicensing.net &#8211; scripts             Copyright(c) 2003 cPlicensing.net.<br />
#                                       All rights Reserved.<br />
# support@cPlicensing.net               http://cPlicensing.net<br />
# Unauthorized copying is prohibited<br />
#Version: 0.01</p>
<p>use POSIX;</p>
<p>$delete_old     = &#8217;1&#8242;; #0 or 1, set to 1 to remove old account backups<br />
if($ARGV[0] eq &#8220;-d&#8221;) { $delete_old = &#8217;1&#8242;; }</p>
<p>$|++;<br />
POSIX::nice(19);</p>
<p>print &#8220;Reading Backup Config&#8230;&#8221;;<br />
open(CPBACK,&#8221;/etc/cpbackup.conf&#8221;) or die(&#8220;Failed, Does it exist and do you have access?\n&#8221;);<br />
while(&lt;CPBACK&gt;) {<br />
s/\n//g;<br />
my($name,$value) = split(/ /, $_);<br />
$CONF{$name} = $value;<br />
}<br />
close(CPBACK);<br />
print &#8220;Complete\n&#8221;;</p>
<p>if ($CONF{&#8216;BACKUPENABLE&#8217;} ne &#8220;yes&#8221;) {<br />
die &#8220;Backup Not Enabled\n&#8221;;<br />
}<br />
if (! -e $CONF{&#8216;BACKUPDIR&#8217;}){<br />
die &#8220;Backup Dir Doesnt Exist\n&#8221;;<br />
}</p>
<p>until (`ps ax` !~ m/cpbackup/) {<br />
print &#8220;Detected cpbackup process&#8230;Sleeping for 60 Seconds\n&#8221;;<br />
sleep(60);<br />
};</p>
<p>if ($CONF{&#8216;BACKUPMOUNT&#8217;} eq &#8220;yes&#8221;) {<br />
if(`mount` !~ m/$CONF{&#8216;BACKUPDIR&#8217;}/){<br />
system(&#8220;mount&#8221;,&#8221;$CONF{&#8216;BACKUPDIR&#8217;}&#8221;);<br />
}<br />
system(&#8220;mount&#8221;,&#8221;-o&#8221;,&#8221;remount,rw&#8221;,&#8221;$CONF{&#8216;BACKUPDIR&#8217;}&#8221;);<br />
}</p>
<p>cleandir(&#8220;$CONF{&#8216;BACKUPDIR&#8217;}/cpbackup/daily&#8221;);<br />
cleandir(&#8220;$CONF{&#8216;BACKUPDIR&#8217;}/cpbackup/weekly&#8221;);<br />
cleandir(&#8220;$CONF{&#8216;BACKUPDIR&#8217;}/cpbackup/monthly&#8221;);</p>
<p>if ($CONF{&#8216;BACKUPMOUNT&#8217;} eq &#8220;yes&#8221;) { system(&#8220;umount&#8221;,&#8221;$CONF{&#8216;BACKUPDIR&#8217;}&#8221;); }</p>
<p>sub cleandir {<br />
my($target) = @_;</p>
<p>opendir(DIRTYDIR,&#8221;$target&#8221;);<br />
@DIRTYDIR = readdir(DIRTYDIR);<br />
closedir(DIRTYDIR);</p>
<p>foreach(@DIRTYDIR) {<br />
next if /^\.\.?$|^files$|^dirs$/;<br />
if(-f &#8220;$target/$_&#8221;){<br />
$user = $_;<br />
$user =~ s/.tar.gz//;<br />
if(! -f &#8220;/var/cpanel/users/$user&#8221;){<br />
if($delete_old == 1){<br />
unlink(&#8220;$target/$_&#8221;);<br />
print &#8220;Deleted Old Backup&#8230; $target/$_\n&#8221;;<br />
} else {<br />
print &#8220;Detected Old Backup&#8230; $target/$_\n&#8221;;<br />
}<br />
}<br />
next;<br />
}<br />
if(-d &#8220;$target/$_&#8221;){<br />
if(! -f &#8220;/var/cpanel/users/$_&#8221;){<br />
if($delete_old == 1){<br />
system(&#8220;rm&#8221;,&#8221;-r&#8221;,&#8221;$target/$_&#8221;);<br />
#print &#8220;Directory Delete Not Supported, If you really want to remove dirs (incremental backups) you can edit this script and uncomment the line that looks like #system(\&#8221;rm\&#8221;,\&#8221;-r\&#8221;,\&#8221;$target/$_\&#8221;)\n&#8221;;<br />
} else {<br />
print &#8220;Detected Old Backup&#8230; $target/$_\n&#8221;;<br />
}<br />
}<br />
next;<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/12/backup-cleaner-script-for-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually changing an IP in Linux</title>
		<link>http://www.ezlinuxadmin.com/2011/12/manually-changing-an-ip-in-linux/</link>
		<comments>http://www.ezlinuxadmin.com/2011/12/manually-changing-an-ip-in-linux/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 00:01:52 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux Drivers]]></category>
		<category><![CDATA[Linux Operating Systems]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[Ports]]></category>
		<category><![CDATA[ifcfg-eth0]]></category>
		<category><![CDATA[linux change ip]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=549</guid>
		<description><![CDATA[It&#8217;s pretty easy actually. Just go to this directory: /etc/sysconfig/network-scripts Then you will see a file for eachnetwork port, for example my server is: ifcfg-eth0 and ifcfg-eth1 I already have the ifcfg-eth0 set up from the install but I want to use the second one for back ups so I just opened the file and [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s pretty easy actually.</p>
<p>Just go to this directory:</p>
<p>/etc/sysconfig/network-scripts</p>
<p>Then you will see a file for eachnetwork port, for example my server is:</p>
<p>ifcfg-eth0</p>
<p>and</p>
<p>ifcfg-eth1</p>
<p>I already have the ifcfg-eth0 set up from the install but I want to use the second one for back ups so I just opened the file and added the IP to it. Then I made sure the rest of the setting smatched the first one other then the:</p>
<p>HWADDR=</p>
<p>That line is specific to the network port.</p>
<p>So that is how you configure a eth0 or eth1 port.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/12/manually-changing-an-ip-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking down the biggest folders</title>
		<link>http://www.ezlinuxadmin.com/2011/08/tracking-down-the-biggest-folders/</link>
		<comments>http://www.ezlinuxadmin.com/2011/08/tracking-down-the-biggest-folders/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 19:17:00 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[finding a folder]]></category>
		<category><![CDATA[folder size]]></category>
		<category><![CDATA[folder size search]]></category>
		<category><![CDATA[list folder size]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=540</guid>
		<description><![CDATA[du -ax --max-depth 1 /var/cpanel &#124; sort -n &#124; tail This is a great command to simply find what folders are the biggest in a directory. You can replace the /var/cpanel with any folder and it will list everything in there and how big they are in order. Once you find the big folder then [...]]]></description>
			<content:encoded><![CDATA[<pre>du -ax --max-depth 1 /var/cpanel | sort -n | tail</pre>
<p>This is a great command to simply find what folders are the biggest in a directory. You can replace the /var/cpanel with any folder and it will list everything in there and how big they are in order.</p>
<p>Once you find the big folder then search inside of that to find the biggest folder in there and so on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/08/tracking-down-the-biggest-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning up /var</title>
		<link>http://www.ezlinuxadmin.com/2011/08/cleaning-up-var/</link>
		<comments>http://www.ezlinuxadmin.com/2011/08/cleaning-up-var/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 18:53:38 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Operating Systems]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[cleaning var partition]]></category>
		<category><![CDATA[moving data]]></category>
		<category><![CDATA[symlink]]></category>
		<category><![CDATA[var full]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=537</guid>
		<description><![CDATA[Cpanel and linux leaves a lot of log files in /var After several years these can add up, especially in the cpanel/bandwidth folder. So a couple quick folder moves and symlinks can clean things up. This is assuming you have a /backup partition and some room in it. Moving the log folder mv /var/log /backup/ [...]]]></description>
			<content:encoded><![CDATA[<p>Cpanel and linux leaves a lot of log files in /var<br />
After several years these can add up, especially in the cpanel/bandwidth folder. So a couple quick folder moves and symlinks can clean things up. This is assuming you have a /backup partition and some room in it.</p>
<p><strong>Moving the log folder</strong></p>
<p>mv /var/log /backup/<br />
ln -s /backup/log /var/log</p>
<p><strong>Moving the cpanel bandwidth folder</strong></p>
<p>mv /var/cpanel/bandwidth /backup/<br />
ln -s /backup/bandwidth /var/cpanel/bandwidth</p>
<p>Also just removing some of the log files in the log folder can help you for a quick fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/08/cleaning-up-var/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing Your DNS Cache</title>
		<link>http://www.ezlinuxadmin.com/2011/07/clearing-your-dns-cache/</link>
		<comments>http://www.ezlinuxadmin.com/2011/07/clearing-your-dns-cache/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 19:16:32 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cheat Sheets]]></category>
		<category><![CDATA[Cpanel and WHM]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=533</guid>
		<description><![CDATA[Clearing Your DNS Cache Your DNS cache stores the locations (IP addresses) of pages you have recently viewed. If the location of the page changes before the entry in your DNS cache is updated, you will be unable to access the page. If you are encountering a high number of HTML 404 error codes, you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ezlinuxadmin.com/wp-content/uploads/2011/07/dns.gif"><img class="alignnone size-full wp-image-534" title="dns" src="http://www.ezlinuxadmin.com/wp-content/uploads/2011/07/dns.gif" alt="" width="328" height="204" /></a></p>
<p>Clearing Your DNS Cache</p>
<p>Your DNS cache stores the locations (IP addresses) of pages you have recently viewed. If the location of the page changes before the entry in your DNS cache is updated, you will be unable to access the page.</p>
<p>If you are encountering a high number of HTML 404 error codes, you may need to flush your DNS cache. Once you clear your DNS cache, your computer will query nameservers for the new DNS information you require.</p>
<p>For more information about the HTML 404 error code, please visit the HTML 404 wikipedia article.</p>
<p>The methods detailed below allow you to remove old and inaccurate DNS information that may result in 404 errors.</p>
<p>Windows® XP, 2000, or Vista®</p>
<p>Open the Start menu.<br />
Go to Run.<br />
If you do not see the Run command in Vista, search for &#8220;run&#8221; in the Search bar.<br />
In the Run text box, type: ipconfig /flushdns<br />
Press Enter or Return, and your cache will be flushed.</p>
<p>MacOS®</p>
<p>Go to Applications.<br />
Go to Utilities.<br />
Open the Terminal application.<br />
Type: dscacheutil -flushcache<br />
Press Enter or Return, and your cache will be flushed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/07/clearing-your-dns-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Fantastico</title>
		<link>http://www.ezlinuxadmin.com/2011/06/remove-fantastico/</link>
		<comments>http://www.ezlinuxadmin.com/2011/06/remove-fantastico/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 18:12:27 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[remove fantastico]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=525</guid>
		<description><![CDATA[This short post is a response to the question I received from one reader that wanted to know how to remove completely from his Cpanel server Fantastico. Why would you want to do that? (assuming you have it already installed, it means you have a license also). Well, maybe the data center installed it by [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ezlinuxadmin.com/wp-content/uploads/2011/06/fantastico-template-express.png"><img class="alignnone size-full wp-image-526" title="fantastico-template-express" src="http://www.ezlinuxadmin.com/wp-content/uploads/2011/06/fantastico-template-express.png" alt="" width="300" height="221" /></a></p>
<p>This short post is a response to the question I received from one reader that wanted to know how to remove completely from his Cpanel server Fantastico.<br />
Why would you want to do that? (assuming you have it already installed, it means you have a license also). Well, maybe the data center installed it by default and you don’t need Fantastico on your server; or maybe you just have a broken install and want to start fresh and remove it first. Regardless why you would want to do this, here are the steps you need to follow to completely remove Fantastico:</p>
<p>Login your server via SSH as root, and run the following commands:<br />
rm -rf /var/netenberg/<br />
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/<br />
rm -rf /usr/local/cpanel/3rdparty/fantastico*<br />
rm -rf /usr/local/cpanel/base/frontend/*/fantastico<br />
rm -f /usr/local/cpanel/base/frontend/x/cells/fantastico.html<br />
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi</p>
<p>Note: if you have installed fantastico in a different location than the default folder: /var/netenberg/, then you should replace the first line accordingly (this might be /opt/netenberg/, or /home/netenberg/, etc.).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/06/remove-fantastico/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change third party icon names in CPanel</title>
		<link>http://www.ezlinuxadmin.com/2011/06/change-third-party-icon-names-in-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2011/06/change-third-party-icon-names-in-cpanel/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 16:22:58 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[change icon name cpanel]]></category>
		<category><![CDATA[cpanel icons]]></category>
		<category><![CDATA[fantastico icon]]></category>
		<category><![CDATA[rv site builder icon]]></category>
		<category><![CDATA[softaculous icon]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=523</guid>
		<description><![CDATA[Third party scripts like rv site builder, fantastico, and softaculous, have names that might confuse users. We found it better to change the names of these icons to what they are not the business names. You do that in this folder: /usr/local/cpanel/base/frontend/x3/dynamicui Then changing the permissions to read only is a good idea in case [...]]]></description>
			<content:encoded><![CDATA[<p>Third party scripts like rv site builder, fantastico, and softaculous, have names that might confuse users. We found it better to change the names of these icons to what they are not the business names.</p>
<p>You do that in this folder:</p>
<p>/usr/local/cpanel/base/frontend/x3/dynamicui</p>
<p>Then changing the permissions to read only is a good idea in case the script tries to change it with a update.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/06/change-third-party-icon-names-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>setroubleshootd and SELinux is not considered compatible with cPanel</title>
		<link>http://www.ezlinuxadmin.com/2011/05/setroubleshootd-and-selinux-is-not-considered-compatible-with-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2011/05/setroubleshootd-and-selinux-is-not-considered-compatible-with-cpanel/#comments</comments>
		<pubDate>Mon, 30 May 2011 20:55:44 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Linux Software / Scripts]]></category>
		<category><![CDATA[/usr/bin/python -E /usr/sbin/]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[setroubleshootd]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=520</guid>
		<description><![CDATA[The &#8220;setroubleshootd&#8221; process is included as part of SELinux. SELinux is not considered compatible with cPanel, and we recommend disabling it per our installation documentation: Disable SELinux security features For a fully successful installation you should disable SELinux. When installing a Red Hat or CentOS distribution, you will be able to use the graphical interface [...]]]></description>
			<content:encoded><![CDATA[<p>The &#8220;setroubleshootd&#8221; process is included as part of SELinux. SELinux is not considered compatible with cPanel, and we recommend disabling it per our installation documentation:</p>
<p><strong>Disable SELinux security features</strong></p>
<p>For a fully successful installation you should disable SELinux. When installing a Red Hat or CentOS distribution, you will be able to use the graphical interface to disable SELinux when configuring the operating system.</p>
<p>This can also be accomplished by editing /etc/selinux/config from the command line, and setting the SELINUX parameter to disabled with a text editor such as nano or vi. The file should resemble the following text:</p>
<p># This file controls the state of SELinux on the system.<br />
# SELINUX= can take one of these three values:<br />
# enforcing &#8211; SELinux security policy is enforced.<br />
# permissive &#8211; SELinux prints warnings instead of enforcing.<br />
# disabled &#8211; No SELinux policy is loaded.<br />
SELINUX=disabled<br />
# SELINUXTYPE= can take one of these two values:<br />
# targeted &#8211; Only targeted network daemons are protected.<br />
# strict &#8211; Full SELinux protection.<br />
SELINUXTYPE=targeted</p>
<p>Once you save the changes to the file above you will need to reboot the server for the changes to take effect.</p>
<p>PICK Important: SELinux must remain disabled in order for WHM and cPanel to run on your web server. Ensure that the pound sign (#) does not precede SELINUX=disabled. If # precedes this configuration option, the line will be ignored.</p>
<p>ALERT! Warning: Do not transfer the SELinux configuration file between computers as it may destroy the file’s integrity.</p>
<p><strong>ALERT! You will need to reboot the server for the changes to take effect.</strong></p>
<p><strong> For a quick fix that is not permanent:</strong></p>
<div>
<p>There is a bug with the new option in Centos 5 called setroubleshoot.</p>
<p>The bug spins the program over and over causing high memory and sometimes CPU use. Unfortunately there is no permanent fix yet, but if you see something like this high in your daily process log:</p>
<blockquote><p>/usr/bin/python -E /usr/sbin/setroubleshootd</p></blockquote>
<p>To fix for now you simply have to restart the process:</p>
<blockquote><p>/etc/init.d/setroubleshoot restart</p></blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/05/setroubleshootd-and-selinux-is-not-considered-compatible-with-cpanel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open DNS fix for CPanel</title>
		<link>http://www.ezlinuxadmin.com/2011/01/open-dns-fix-for-cpanel/</link>
		<comments>http://www.ezlinuxadmin.com/2011/01/open-dns-fix-for-cpanel/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 19:25:00 +0000</pubDate>
		<dc:creator>EZ linux</dc:creator>
				<category><![CDATA[Cpanel and WHM]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[open dns]]></category>
		<category><![CDATA[secure dns]]></category>

		<guid isPermaLink="false">http://www.ezlinuxadmin.com/?p=507</guid>
		<description><![CDATA[Open DNS gives a error and means that anyone can use your DNS resolvers. To lock it down you can add this. 1. Login to your server as root. 2. Wget and run the script as : Code: http://shashank.net/scripts/named.patch sh named.patch 3. It will provide you with an output like : Code: allow-recursion { 127.0.0.1; [...]]]></description>
			<content:encoded><![CDATA[<p>Open DNS gives a error and means that anyone can use your DNS resolvers. To lock it down you can add this.</p>
<p>1. Login to your server as root.</p>
<p>2. Wget and run the script as :</p>
<p>Code:</p>
<p>http://shashank.net/scripts/named.patch</p>
<p>sh named.patch</p>
<p>3. It will provide you with an output like :</p>
<p>Code:</p>
<p>allow-recursion {<br />
127.0.0.1;<br />
xxx.xxx.xxx.xxx;<br />
xxx.xxx.xxx.xxx;<br />
};</p>
<p>4. Copy and paste this code in the Options section of your named.conf. Something like :</p>
<p>Code:</p>
<p>options {<br />
options {<br />
directory &#8220;/var/named&#8221;;<br />
allow-recursion {<br />
127.0.0.1;<br />
xxx.xxx.xxx;<br />
&#8230;. &#8230;.<br />
&#8230;. &#8230;.<br />
};<br />
};</p>
<p>5. Save named.conf and restart the named service. All all zones to load and check dns report now. The open nameservers warning no longer shows up. Hope it works fine for you. Any additions, corrections welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ezlinuxadmin.com/2011/01/open-dns-fix-for-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

