<?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>cPanel Admins</title>
	<atom:link href="http://www.cpaneladmins.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpaneladmins.com</link>
	<description>Random Notes for cPanel Admins</description>
	<lastBuildDate>Sun, 31 Jan 2010 13:41:58 +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>BSD::Resource not available</title>
		<link>http://www.cpaneladmins.com/2009/12/07/bsdresource-not-available/</link>
		<comments>http://www.cpaneladmins.com/2009/12/07/bsdresource-not-available/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:16:41 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=144</guid>
		<description><![CDATA[
# /scripts/perlmods -l &#124; grep -ai "BSD::Resource"
not listed?
# /scripts/checkperlmodules --full

]]></description>
			<content:encoded><![CDATA[<p><code></p>
<p># /scripts/perlmods -l | grep -ai "BSD::Resource"</p>
<p>not listed?<br />
# /scripts/checkperlmodules --full<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/12/07/bsdresource-not-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>configure: error: Problem with libXpm.(a&#124;so) or libX11.(a&#124;so)</title>
		<link>http://www.cpaneladmins.com/2009/12/07/configure-error-problem-with-libxpm-aso-or-libx11-aso/</link>
		<comments>http://www.cpaneladmins.com/2009/12/07/configure-error-problem-with-libxpm-aso-or-libx11-aso/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:15:14 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=141</guid>
		<description><![CDATA[Error: configure: error: Problem with libXpm.(a&#124;so) or libX11.(a&#124;so)
This happens most times when compiling with gd enabled for the first time. Reinstall X11 libraries and try again:

cd /usr/ports/x11/libX11/
make deinstall
make install

]]></description>
			<content:encoded><![CDATA[<p>Error: configure: error: Problem with libXpm.(a|so) or libX11.(a|so)</p>
<p>This happens most times when compiling with gd enabled for the first time. Reinstall X11 libraries and try again:<br />
</code><br />
cd /usr/ports/x11/libX11/<br />
make deinstall<br />
make install<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/12/07/configure-error-problem-with-libxpm-aso-or-libx11-aso/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install DomainKeys and SPF Records for All Users</title>
		<link>http://www.cpaneladmins.com/2009/12/07/install-domainkeys-and-spf-records-for-all-users/</link>
		<comments>http://www.cpaneladmins.com/2009/12/07/install-domainkeys-and-spf-records-for-all-users/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:14:02 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DKIM]]></category>
		<category><![CDATA[domainkeys]]></category>
		<category><![CDATA[SPF Records]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=138</guid>
		<description><![CDATA[
cd /var/cpanel/users
for user in * ; do /usr/local/cpanel/bin/domain_keys_installer $user ; done
for user in * ; do /usr/local/cpanel/bin/spf_installer $user ; done

]]></description>
			<content:encoded><![CDATA[<p><code><br />
cd /var/cpanel/users<br />
for user in * ; do /usr/local/cpanel/bin/domain_keys_installer $user ; done<br />
for user in * ; do /usr/local/cpanel/bin/spf_installer $user ; done<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/12/07/install-domainkeys-and-spf-records-for-all-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Could not find functions file, your system may be broken</title>
		<link>http://www.cpaneladmins.com/2009/12/07/could-not-find-functions-file-your-system-may-be-broken/</link>
		<comments>http://www.cpaneladmins.com/2009/12/07/could-not-find-functions-file-your-system-may-be-broken/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:13:09 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=136</guid>
		<description><![CDATA[Error: Could not find functions file, your system may be broken
Fix:

touch /etc/rc.d/init.d/functions
/etc/rc.d/init.d/cpanel restart

]]></description>
			<content:encoded><![CDATA[<p><b>Error: Could not find functions file, your system may be broken</b></p>
<p>Fix:<br />
<code><br />
touch /etc/rc.d/init.d/functions<br />
/etc/rc.d/init.d/cpanel restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/12/07/could-not-find-functions-file-your-system-may-be-broken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EasyApache Fails Due to YUM Failing</title>
		<link>http://www.cpaneladmins.com/2009/11/15/easyapache-fails-due-to-yum-failing/</link>
		<comments>http://www.cpaneladmins.com/2009/11/15/easyapache-fails-due-to-yum-failing/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 14:06:49 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=113</guid>
		<description><![CDATA[EasyApache requires a working package manager to be able to run properly, as it needs to confirm several RPMs are up to date before proceeding with the build.

!! The server's system package manager, 'YUM', failed. !!
!!
This is the command that failed:
	yum --exclude=kernel* -y install aspell aspell-devel automake19 gettext
libstdc++.x86_64 libpng-devel openssl libpng-dev zlib-devel autoconf261
libidn-devel gmake libidn [...]]]></description>
			<content:encoded><![CDATA[<p>EasyApache requires a working package manager to be able to run properly, as it needs to confirm several RPMs are up to date before proceeding with the build.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
!! The server's system package manager, 'YUM', failed. !!
!!
This is the command that failed:
	yum --exclude=kernel* -y install aspell aspell-devel automake19 gettext
libstdc++.x86_64 libpng-devel openssl libpng-dev zlib-devel autoconf261
libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch
libltdl3-devel libltdl libopenssl0.9.7-static-devel libtool-ltdl-devel
libXpm-devel sed libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel
pspell-devel libstdc++-devel.x64_64 xorg-x11-devel libtool-ltdl libssl-dev
pam-devel libopenssl0-devel zlib1-devel expat-devel pspell libopenssl0-dev
expat glibc-devel gcc-c++ zlib bison libjpeg-devel libtool-libltdl-devel
libtool openssl-dev libopenssl0 libz-devel libjpeg-dev pam-dev fileutils
libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel make libstdc++-dev.x86_64
libX11-devel gd cpp xorg-x11-dev gcc ssl-dev autoconf lex
!!
!!
Since EasyApache was unable to resolve it automatically you should:
	1) Manually run the failed YUM command (shown above) via SSH
        2) See if your particular error is addressed at 

http://www.cpanel.net/support/could_not_ensurepkgs.htm

	3) Resolve the YUM problem manually
	4) Re-run EasyApache
!!
!! Please visit 

http://www.cpanel.net/support/could_not_ensurepkgs.htm

 for help with this error. !!

!! Restoring original working apache !!
</pre>
<p>First things first.  Try running &#8216;yum -y update&#8217; and see if it completes.  You may see the following when running yum update.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
error: rpmdbNextIterator: skipping h#      27 region trailer: BAD, tag 1507328 type 1507328 offset -1507328 count 1507328
error: rpmdbNextIterator: skipping h#      65 region trailer: BAD, tag 724250418 type 825833527 offset -740320047 count 842150704
error: rpmdbNextIterator: skipping h#      69 region trailer: BAD, tag 942410249 type 1952543335 offset -1702113073 count 842610488
error: rpmdbNextIterator: skipping h#      99 region trailer: BAD, tag 1814980474 type 4544080 offset -1598245200 count 1212502623
</pre>
<p>and so on and so on&#8230;.</p>
<p>Then it&#8217;ll actually show packages that require updates, and experience a segmentation fault.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
---> Package hotplug.x86_64 3:2004_04_01-7.10 set to be updated
---> Package fetchmail.x86_64 0:6.2.5-6.0.1.el4_8.1 set to be updated
--> Running transaction check
Segmentation fault
[root@vps ~]#
</pre>
<p>This means that your RPM database is corrupt, which is easily fixed with the following:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
[root@vps ~]#rm -f /var/lib/rpm/__db.*
[root@vps ~]#rpm -vv --rebuilddb
</pre>
<p>Once that finishes, run &#8216;yum update&#8217; again, and it should complete successfully.  If so, you&#8217;re all set.  Go ahead and retry your easyapache build.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/11/15/easyapache-fails-due-to-yum-failing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase the number of files shown in PureFTPd</title>
		<link>http://www.cpaneladmins.com/2009/11/10/increase-the-number-of-files-shown-in-ftp/</link>
		<comments>http://www.cpaneladmins.com/2009/11/10/increase-the-number-of-files-shown-in-ftp/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:21:49 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[PureFTPd]]></category>
		<category><![CDATA[files]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=110</guid>
		<description><![CDATA[By default, pure-ftpd limits the amount of files and subdirectory trees to 2,000 files, and 8 levels of directories.
This can be changed in /etc/pure-ftpd.conf:

LimitRecursion 2000 8

Restart the service to enable any changes made:

/scripts/restartsrv_ftpserver

]]></description>
			<content:encoded><![CDATA[<p>By default, pure-ftpd limits the amount of files and subdirectory trees to 2,000 files, and 8 levels of directories.</p>
<p>This can be changed in /etc/pure-ftpd.conf:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
LimitRecursion 2000 8
</pre>
<p>Restart the service to enable any changes made:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
/scripts/restartsrv_ftpserver
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/11/10/increase-the-number-of-files-shown-in-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Disable Stats for a Specific User</title>
		<link>http://www.cpaneladmins.com/2009/11/10/how-to-disable-stats-for-a-specific-user/</link>
		<comments>http://www.cpaneladmins.com/2009/11/10/how-to-disable-stats-for-a-specific-user/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:18:50 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Stats]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=108</guid>
		<description><![CDATA[You can disable the stats service (Analog Stats, Awstats or Webalizer) for a specific user by doing the following:
1) Login to your server via ssh.
2) Edit /var/cpanel/users/username, and add any of the following, as needed:

skipanalog=1
skipawstats=1
skipwebalizer=1

3) Now we&#8217;ll restart the cPanel service:

/etc/init.d/cpanel restart

]]></description>
			<content:encoded><![CDATA[<p>You can disable the stats service (Analog Stats, Awstats or Webalizer) for a specific user by doing the following:</p>
<p>1) Login to your server via ssh.</p>
<p>2) Edit /var/cpanel/users/username, and add any of the following, as needed:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
skipanalog=1
skipawstats=1
skipwebalizer=1
</pre>
<p>3) Now we&#8217;ll restart the cPanel service:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
/etc/init.d/cpanel restart
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/11/10/how-to-disable-stats-for-a-specific-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install rtorrent</title>
		<link>http://www.cpaneladmins.com/2009/11/10/how-to-install-rtorrent/</link>
		<comments>http://www.cpaneladmins.com/2009/11/10/how-to-install-rtorrent/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:15:23 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=106</guid>
		<description><![CDATA[This isn&#8217;t really cPanel related, and probably shouldn&#8217;t be run from your cPanel production server, but I&#8217;m posting nonetheless, as I like to be able to reference this stuff for myself at times  
If you don&#8217;t want to compile rtorrent from source, you can install via RPM by adding Fedora&#8217;s EPEL repository:
http://fedoraproject.org/wiki/EPEL/FAQ#howtouse

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
yum [...]]]></description>
			<content:encoded><![CDATA[<p>This isn&#8217;t really cPanel related, and probably shouldn&#8217;t be run from your cPanel production server, but I&#8217;m posting nonetheless, as I like to be able to reference this stuff for myself at times <img src='http://www.cpaneladmins.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you don&#8217;t want to compile rtorrent from source, you can install via RPM by adding Fedora&#8217;s EPEL repository:</p>
<p>http://fedoraproject.org/wiki/EPEL/FAQ#howtouse</p>
<pre>
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
yum install libtorrent rtorrent libsigc++20-devel
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/11/10/how-to-install-rtorrent/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to install imagick for PHP</title>
		<link>http://www.cpaneladmins.com/2009/11/10/how-to-install-imagick-for-php/</link>
		<comments>http://www.cpaneladmins.com/2009/11/10/how-to-install-imagick-for-php/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:12:02 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=103</guid>
		<description><![CDATA[The imagick.so PHP module can&#8217;t currently be installed via PECL, due to it&#8217;s inability to write to /var/tmp.  To get around that, you can install it manuall:

# yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make
# cd /usr/local/src
# wget http://pecl.php.net/get/imagick-2.2.2.tgz
# tar zxvf ./imagick-2.2.2.tgz
# cd imagick-2.2.2
# phpize
# ./configure
# make
# make test
# make install

This [...]]]></description>
			<content:encoded><![CDATA[<p>The imagick.so PHP module can&#8217;t currently be installed via PECL, due to it&#8217;s inability to write to /var/tmp.  To get around that, you can install it manuall:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
# yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make
# cd /usr/local/src
# wget http://pecl.php.net/get/imagick-2.2.2.tgz
# tar zxvf ./imagick-2.2.2.tgz
# cd imagick-2.2.2
# phpize
# ./configure
# make
# make test
# make install
</pre>
<p>This will compile imagick.so, and move it to your extensions directory specified in php.ini.  Now you&#8217;ll need to add the following to php.ini:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
extension=imagick.so
</pre>
<p>and restart apache:</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
/scripts/restartsrv_httpd
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/11/10/how-to-install-imagick-for-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to strace cPanel software</title>
		<link>http://www.cpaneladmins.com/2009/11/10/how-to-strace-cpanel-software/</link>
		<comments>http://www.cpaneladmins.com/2009/11/10/how-to-strace-cpanel-software/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:08:21 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=99</guid>
		<description><![CDATA[From time to time, strange issues pop up which aren&#8217;t going to be logged to an error log.  For some of the more &#8220;hard to track down&#8221; issues, you can use strace to see just what the process is doing, and where your issue might be.
This article won&#8217;t go into how to read straces, [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time, strange issues pop up which aren&#8217;t going to be logged to an error log.  For some of the more &#8220;hard to track down&#8221; issues, you can use strace to see just what the process is doing, and where your issue might be.</p>
<p>This article won&#8217;t go into how to read straces, as there are many other articles written about this, but I&#8217;ll provide a good base from which to start.</p>
<pre lang=”LANGUAGE” line=”1″ file=”download.txt” colla=”+”>
strace -v -o /root/strace.cpanel -f -s 4096 -p `cat /var/run/cpsrvd.pid`
</pre>
<p>That command uses several flags, outputting the strace to a file called strace.cpanel.</p>
<p>-v enables a more verbose output<br />
-o specifies the file to output the contents to.  If not specified, it will output directly to your terminal.<br />
-f includes all processes forked by the process you&#8217;re stracing<br />
-p will specify the PID.  In this case, we&#8217;re going to cat the pic from cpsrvd.pid</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/2009/11/10/how-to-strace-cpanel-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
