<?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>Tue, 01 Feb 2011 02:22:57 +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>Sample WHM Plugin &#8211; Hello World</title>
		<link>http://www.cpaneladmins.com/sample-whm-plugin-hello-world/</link>
		<comments>http://www.cpaneladmins.com/sample-whm-plugin-hello-world/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 02:22:57 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Acls]]></category>
		<category><![CDATA[Content Type]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Exit]]></category>
		<category><![CDATA[Hello World]]></category>
		<category><![CDATA[Input Parameters]]></category>
		<category><![CDATA[Lib]]></category>
		<category><![CDATA[Logo Gif]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[Perl Modules]]></category>
		<category><![CDATA[Root Permissions]]></category>
		<category><![CDATA[Text Html]]></category>
		<category><![CDATA[Use Case]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=480</guid>
		<description><![CDATA[#!/usr/bin/perl #WHMADDON:helloworld:Hello World &#60;b&#62;Example&#60;/b&#62; ############################################################################### # This is an example hello world WHM plugin feel free to modify it as you see fit ############################################################################### # Load general use case perl modules use lib '/usr/local/cpanel'; use Cpanel::cPanelFunctions (); use Cpanel::Form (); use Cpanel::Config (); use Whostmgr::HTMLInterface (); use Whostmgr::ACLS (); ############################################################################### print "Content-type: text/html\r\n\r\n"; # Check [...]]]></description>
			<content:encoded><![CDATA[<p><code>#!/usr/bin/perl<br />
#WHMADDON:helloworld:Hello World &lt;b&gt;Example&lt;/b&gt;</code></p>
<p><code>###############################################################################<br />
# This is an example hello world WHM plugin feel free to modify it as you see fit<br />
###############################################################################<br />
# Load general use case perl modules<br />
use lib '/usr/local/cpanel';<br />
use Cpanel::cPanelFunctions ();<br />
use Cpanel::Form            ();<br />
use Cpanel::Config          ();<br />
use Whostmgr::HTMLInterface ();</p>
<p>use Whostmgr::ACLS          ();<br />
###############################################################################<br />
print "Content-type: text/html\r\n\r\n";<br />
# Check user has root permissions<br />
Whostmgr::ACLS::init_acls();<br />
if ( !Whostmgr::ACLS::hasroot() ) {<br />
# User is not root, tell them where to go<br />
print "You need to be root to see the hello world example.\n";</p>
<p>exit();<br />
}</p>
<p># Parse input parameters from GET and POST into $FORM{} for later use<br />
my %FORM     = Cpanel::Form::parseform();</p>
<p># Print a WHM Header<br />
Whostmgr::HTMLInterface::defheader( "Hello World Example Plugin",'/path/to/logo.gif', '/cgi/addon_helloworld.cgi' );</p>
<p># Print General Output<br />
print "&lt;p&gt;Hello world indeed...&lt;/p&gt;";</p>
<p># End Example</p>
<p></code></p>
<p><code>1;</code></p>
<p><a href="http://www.nickpack.com/article/hello-world-example-whm-plugin">Source</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fsample-whm-plugin-hello-world%2F&amp;title=Sample%20WHM%20Plugin%20%26%238211%3B%20Hello%20World" id="wpa2a_2"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/sample-whm-plugin-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suggest Topics for cPanelAdmins Articles</title>
		<link>http://www.cpaneladmins.com/suggest-topics-for-cpaneladmins-articles/</link>
		<comments>http://www.cpaneladmins.com/suggest-topics-for-cpaneladmins-articles/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 10:23:27 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=474</guid>
		<description><![CDATA[It&#8217;s been a while since our last update, and we&#8217;re curious what topics people would like to see detailed on cPanelAdmins.com. Leave a quick comment, and we&#8217;ll consider your topic.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since our last update, and we&#8217;re curious what topics people would like to see detailed on cPanelAdmins.com.  Leave a quick comment, and we&#8217;ll consider your topic.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fsuggest-topics-for-cpaneladmins-articles%2F&amp;title=Suggest%20Topics%20for%20cPanelAdmins%20Articles" id="wpa2a_4"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/suggest-topics-for-cpaneladmins-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WatchMySQL Plugin for WHM</title>
		<link>http://www.cpaneladmins.com/watchmysql-plugin-for-whm/</link>
		<comments>http://www.cpaneladmins.com/watchmysql-plugin-for-whm/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 09:49:12 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Third Party Software]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[Concurrent Connections]]></category>
		<category><![CDATA[Download Php]]></category>
		<category><![CDATA[Installation Cd]]></category>
		<category><![CDATA[Interval]]></category>
		<category><![CDATA[Root Root]]></category>
		<category><![CDATA[Scripts Php]]></category>
		<category><![CDATA[System Boots]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=467</guid>
		<description><![CDATA[http://www.ndchost.com/cpanel-whm/scripts/watchmysql/ Installation cd /sbin rm -f watchmysql wget http://www.ndchost.com/cpanel-whm/scripts/watchmysql/download.php chown root.root watchmysql chmod 0750 watchmysql Configuration Before you run the script you must first configure it. Use edit to open the watchmysql script and set the options. #Sets the maximum concurrent connections per MySQL user. my $max_concurrent_connections = '15'; #Who to tell about this user... [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ndchost.com/cpanel-whm/scripts/watchmysql/  ">http://www.ndchost.com/cpanel-whm/scripts/watchmysql/</a></p>
<h2>Installation</h2>
<p><code>cd /sbin<br />
rm -f watchmysql<br />
wget http://www.ndchost.com/cpanel-whm/scripts/watchmysql/download.php<br />
chown root.root watchmysql<br />
chmod 0750 watchmysql<br />
</code></p>
<h4>Configuration</h4>
<p>Before you run the script you must first configure it. Use edit to open the watchmysql script and set the options.<br />
<code><br />
#Sets the maximum concurrent connections per MySQL user.<br />
my $max_concurrent_connections		= '15';</code></p>
<p><code>#Who to tell about this user... (email)<br />
my $warning_email			= 'your@email.address';</code></p>
<p><code>#Kill Abuser's MySQL Connections (0 = no, 1 = yes)<br />
my $kill_user				= '0';</p>
<p></code></p>
<p><code>#MySQL polling in seconds (600 = 10 minutes)<br />
my $check_interval			= '600';</code></p>
<h2>Running</h2>
<p>To start this script simply run the following command<br />
<code>/sbin/watchmysql &amp;</code><br />
If you want the script to start when the system boots you need to add the above line to /etc/rc.local</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fwatchmysql-plugin-for-whm%2F&amp;title=WatchMySQL%20Plugin%20for%20WHM" id="wpa2a_6"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/watchmysql-plugin-for-whm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually Rotate Logs with logrotate</title>
		<link>http://www.cpaneladmins.com/manually-rotate-logs-with-logrotate/</link>
		<comments>http://www.cpaneladmins.com/manually-rotate-logs-with-logrotate/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 09:21:17 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[log rotation]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[manual]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=406</guid>
		<description><![CDATA[The individual configuration files for logrotate are located in /etc/logrotate.d: # cd /etc/logrotate.d/ Then, to manually rotate the logs for exim, simply run the following. # logrotate exim Note: you won&#8217;t see any output, but you will notice that the exim logs in /var/log are now rotated out.]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">The individual configuration files for logrotate are located in /etc/logrotate.d:<br />
<a href="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate.png"><img class="size-medium wp-image-407 aligncenter" title="logrotate" src="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate-300x168.png" alt="" width="300" height="168" /></a></p>
<pre class="brush:bash"># cd /etc/logrotate.d/</pre>
<p style="text-align: center;"><a href="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate2.png"><img class="size-medium wp-image-408 aligncenter" title="logrotate2" src="http://www.cpaneladmins.com/wp-content/uploads/2010/09/logrotate2-222x300.png" alt="" width="222" height="300" /></a></p>
<p>Then, to manually rotate the logs for exim, simply run the following.</p>
<pre class="brush:bash"># logrotate exim</pre>
<p><strong>Note</strong>: you won&#8217;t see any output, but you will notice that the exim logs in /var/log are now rotated out.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fmanually-rotate-logs-with-logrotate%2F&amp;title=Manually%20Rotate%20Logs%20with%20logrotate" id="wpa2a_8"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/manually-rotate-logs-with-logrotate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Uninstall Servlets from a cPanel Account</title>
		<link>http://www.cpaneladmins.com/how-to-uninstall-servlets-from-a-cpanel-account/</link>
		<comments>http://www.cpaneladmins.com/how-to-uninstall-servlets-from-a-cpanel-account/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 02:51:56 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[servlets]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=399</guid>
		<description><![CDATA[You can remove Tomcat support for sites via /scripts/remservlets, which uses the following syntax: /scripts/remservlets --domain=domain-you-want-to-remove-jsp-and-servlets.com]]></description>
			<content:encoded><![CDATA[<p>You can remove Tomcat support for sites via /scripts/remservlets, which uses the following syntax:</p>
<pre class="brush:bash">/scripts/remservlets --domain=domain-you-want-to-remove-jsp-and-servlets.com</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fhow-to-uninstall-servlets-from-a-cpanel-account%2F&amp;title=How%20to%20Uninstall%20Servlets%20from%20a%20cPanel%20Account" id="wpa2a_10"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/how-to-uninstall-servlets-from-a-cpanel-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install ffmpeg</title>
		<link>http://www.cpaneladmins.com/how-to-install-ffmpeg/</link>
		<comments>http://www.cpaneladmins.com/how-to-install-ffmpeg/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 22:03:10 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[ffmpeg-php]]></category>
		<category><![CDATA[flv2tool]]></category>
		<category><![CDATA[flvtool]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=395</guid>
		<description><![CDATA[This post will provide you with the instructions to download and install ffmpeg, ffmpeg-php, flvtool, lame, mplayer, libogg, libvorbis, mencoder, and other codecs used with ffmpeg. # cd /usr/local/src wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz wget http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2 wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2 wget http://downloads.xiph.org/releases/ogg/libogg-1.2.0.tar.gz wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.1.tar.gz wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2 wget http://ffmpeg.org/releases/ffmpeg-0.6.tar.gz tar xvzf flvtool2-1.0.6.tgz tar xvzf lame-3.98.4.tar.gz tar jxvf ffmpeg-php-0.6.0.tbz2 tar [...]]]></description>
			<content:encoded><![CDATA[<p>This post will provide you with the instructions to download and install ffmpeg, ffmpeg-php, flvtool, lame, mplayer, libogg, libvorbis, mencoder, and other codecs used with ffmpeg.</p>
<pre class="brush:bash"># cd /usr/local/src</pre>
<pre class="brush:bash">wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
wget http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.2.0.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.1.tar.gz
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
wget http://ffmpeg.org/releases/ffmpeg-0.6.tar.gz</pre>
<pre class="brush:bash">tar xvzf flvtool2-1.0.6.tgz
tar xvzf lame-3.98.4.tar.gz
tar jxvf ffmpeg-php-0.6.0.tbz2
tar xvzf libogg-1.2.0.tar.gz
tar xvzf libvorbis-1.3.1.tar.gz
tar jxvf essential-20071007.tar.bz2
tar jxvf mplayer-export-snapshot.tar.bz2
tar xvzf ffmpeg-0.6.tar.gz </pre>
<p>Make a directory to store all the codecs:</p>
<pre class="brush:bash"># mkdir /usr/local/lib/codecs/</pre>
<p>Install any necessary packages:</p>
<pre class="brush:bash">yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++  ncurses-devel</pre>
<p>Copy codecs for mplayer:</p>
<pre class="brush:bash">
mv /usr/local/src/essential-20071007/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/</pre>
<p>Installing Lame:</p>
<pre class="brush:bash">cd /usr/local/src/lame-3.98.4
./configure
make &#038;&#038; make install</pre>
<p>Installing Libogg:</p>
<pre class="brush:bash">
cd /usr/local/src/libogg*
./configure &#038;&#038; make &#038;&#038; make install
Installing libvorbis:</pre>
<pre class="brush:bash">cd /usr/local/src/libvorbis*
./configure &#038;&#038; make &#038;&#038; make install</pre>
<p>Installing flvtool2:</p>
<pre class="brush:bash">cd /usr/local/src/flvtool*
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install</pre>
<pre class="brush:bash"># cd /usr/local/src/mplayer*
./configure &#038;&#038; make &#038;&#038; make install</pre>
<p>Installing ffmpeg PHP module</p>
<pre class="brush:bash">cd /usr/local/src/ffmpeg-*
./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared</pre>
<p>(If you need to customize your install, run &#8220;./configure &#8211;help&#8221; to see a complete list of the available flags)</p>
<pre class="brush:bash">make &#038;&#038; make install</pre>
<pre class="brush:bash">ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51</pre>
<p>Installing ffmpeg-php:</p>
<pre class="brush:bash"># cd /usr/local/src/ffmpeg-php*
phpize
./configure</pre>
<p>There&#8217;s a small issue in this version of ffmpeg-php which, when &#8220;make&#8221; is run, will cause the following error:</p>
<pre class="brush:bash"> gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -I/usr/include/php -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c  -fPIC -DPIC -o .libs/ffmpeg_frame.o
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'zim_ffmpeg_frame_toGDImage':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'zim_ffmpeg_frame_ffmpeg_frame':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1</pre>
<p>To correct this issue, we&#8217;ll update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32</p>
<pre class="brush:bash">vi ffmpeg_frame.c</pre>
<pre class="brush:bash">:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

:w :q!</pre>
<p>Now we can proceed with compiling:</p>
<pre class="brush:bash">make
make install</pre>
<p>Now that we&#8217;ve compiled, let&#8217;s make sure that ffmpeg.so is in the proper extensions directory:</p>
<pre class="brush:bash">php -i | grep extensions
/usr/local/lib/php/extensions/no-debug-non-zts-20060613</pre>
<p>Now we&#8217;ll tell PHP that it needs to load our module:</p>
<pre class="brush:bash"> echo 'extension=ffmpeg.so' >> /usr/local/lib/php.ini</pre>
<p>Restart apache:</p>
<pre class="brush:bash">service httpd restart</pre>
<p>Now we&#8217;ll do a quick list of the modules to ensure that ffmpeg-php is loaded:</p>
<pre class="brush:bash">php -m | grep ffmpeg
ffmpeg</pre>
<p>All done!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fhow-to-install-ffmpeg%2F&amp;title=How%20to%20Install%20ffmpeg" id="wpa2a_12"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/how-to-install-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to extract a .war file</title>
		<link>http://www.cpaneladmins.com/how-to-extract-a-war-file/</link>
		<comments>http://www.cpaneladmins.com/how-to-extract-a-war-file/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 02:13:07 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[war]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=385</guid>
		<description><![CDATA[How to extract a .war file If your hosting provider supports Tomcat, but not .war files, you can extract your .war file in your public_html folder to run your Tomcat application from there. # jar xvf filename.war]]></description>
			<content:encoded><![CDATA[<p><strong>How to extract a .war file</strong></p>
<p>If your hosting provider supports Tomcat, but not .war files, you can extract your .war file in your public_html folder to run your Tomcat application from there.</p>
<p><code># jar xvf filename.war</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fhow-to-extract-a-war-file%2F&amp;title=How%20to%20extract%20a%20.war%20file" id="wpa2a_14"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/how-to-extract-a-war-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing SSH</title>
		<link>http://www.cpaneladmins.com/securing-ssh/</link>
		<comments>http://www.cpaneladmins.com/securing-ssh/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 05:49:51 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[AllowUsers]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=375</guid>
		<description><![CDATA[Best Security Practice The ideal ssh daemon would only allow login via SSH keys. This setup can easily be configured within WHM >> Manage SSH Keys, where you&#8217;ll create a SSH key for you to login with. Once you&#8217;ve created your key, and verified that you can login with it, you&#8217;ll want to go to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Best Security Practice</strong><br />
The ideal ssh daemon would only allow login via SSH keys.  This setup can easily be configured within WHM >> Manage SSH Keys, where you&#8217;ll create a SSH key for you to login with.  Once you&#8217;ve created your key, and verified that you can login with it, you&#8217;ll want to go to WHM >> SSH Password Authorization Tweak, which will disable PasswordAuthentication in /etc/ssh/sshd_config.</p>
<p><strong>Medium-security Configuration</strong><br />
If you have clients on your server that require PasswordAuthentication, you can still lock down SSH pretty well.</p>
<ul>
<strong>Open /etc/ssh/sshd_config in your favorite editor</strong>
</ul>
<pre class="brush:bash"> # vi /etc/ssh/sshd_config</pre>
<ul>
<strong>Disable direct root login</strong>
</ul>
<p>First, be sure that you have an alternate user configured in your environment that you can use to login via SSH.  This user must also have privileges to &#8220;su&#8221; to root.</p>
<p>Then, set the &#8220;PermitRootLogin&#8221; directive to &#8220;no&#8221;. </p>
<pre class="brush:bash">PermitRootLogin no</pre>
<ul>
<strong>Change the port that sshd listens on</strong>
</ul>
<pre class="brush:bash">Port 221</pre>
<p>Be sure to use a port equal to or less than 1024, as these are privileged ports that only root or a super-user can set daemons to listen on.  If you were to configure sshd to listen on port 11223, and a user was able to take down sshd, they could then start their own sshd daemon in place of yours.</p>
<ul>
<strong>State which users may login via SSH</strong>
</ul>
<p>If you want to only allow certain users to login via SSH, implement the &#8220;AllowUsers&#8221; directive:</p>
<pre class="brush:bash">AllowUsers bob frank</pre>
<p>This will only allow &#8216;bob&#8217; and &#8216;frank&#8217; to login via SSH.</p>
<ul>
<strong>Save and Restart SSH</strong>
</ul>
<p>Now save the file and restart the sshd service:</p>
<pre class="brush:bash">service sshd restart</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fsecuring-ssh%2F&amp;title=Securing%20SSH" id="wpa2a_16"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/securing-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locate command not found</title>
		<link>http://www.cpaneladmins.com/locate-command-not-found/</link>
		<comments>http://www.cpaneladmins.com/locate-command-not-found/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:48:26 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[locate]]></category>
		<category><![CDATA[slocate]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=373</guid>
		<description><![CDATA[Error: # locate filename -bash: locate: command not found This indicates that the &#8220;slocate&#8221; package is not installed. Install it with: yum -y install slocate Then update the database with: # updatedb]]></description>
			<content:encoded><![CDATA[<p><strong>Error:</strong></p>
<pre class="brush:bash"># locate filename
-bash: locate: command not found</pre>
<p>This indicates that the &#8220;slocate&#8221; package is not installed.  Install it with:</p>
<pre class="brush:bash">yum -y install slocate</pre>
<p>Then update the database with:</p>
<pre class="brush:bash"># updatedb</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Flocate-command-not-found%2F&amp;title=Locate%20command%20not%20found" id="wpa2a_18"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/locate-command-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel Log Locations</title>
		<link>http://www.cpaneladmins.com/cpanel-log-locations/</link>
		<comments>http://www.cpaneladmins.com/cpanel-log-locations/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:42:23 +0000</pubDate>
		<dc:creator>tech</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[apache logs]]></category>
		<category><![CDATA[cpanel logs]]></category>
		<category><![CDATA[http logs]]></category>
		<category><![CDATA[httpd logs]]></category>
		<category><![CDATA[modsecurity]]></category>
		<category><![CDATA[named logs]]></category>

		<guid isPermaLink="false">http://www.cpaneladmins.com/?p=370</guid>
		<description><![CDATA[cPanel Log File Locations This is a shortlist of various log files for various applications on your Cpanel VPS. cPanel Installation Logs: /var/log/cpanel-install-thread0.log Apache: /usr/local/apache/logs/access_log /usr/local/apache/logs/error_log Apache domlogs: /usr/local/apache/domlogs/example.com Apache SUEXEC Logs: /usr/local/apache/logs/suexec_log MySQL /var/lib/mysql/hostname.err BIND (named) Log: /var/log/messages Exim /var/log/exim_mainlog /var/log/exim_paniclog /var/log/exim_rejectlog Courier or Dovecot IMAP /var/log/maillog Tomcat Logs: /usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out cPanel Access Log: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>cPanel Log File Locations</strong></p>
<p>This is a shortlist of various log files for various applications on your Cpanel VPS.</p>
<p><strong>cPanel Installation Logs:</strong><br />
/var/log/cpanel-install-thread0.log</p>
<p><strong>Apache:</strong><br />
/usr/local/apache/logs/access_log<br />
/usr/local/apache/logs/error_log</p>
<p><strong>Apache domlogs:</strong><br />
/usr/local/apache/domlogs/example.com</p>
<p><strong>Apache SUEXEC Logs:</strong><br />
/usr/local/apache/logs/suexec_log</p>
<p><strong>MySQL</strong><br />
/var/lib/mysql/hostname.err</p>
<p><strong>BIND (named) Log:</strong><br />
/var/log/messages</p>
<p><strong>Exim</strong><br />
/var/log/exim_mainlog<br />
/var/log/exim_paniclog<br />
/var/log/exim_rejectlog</p>
<p><strong>Courier or Dovecot IMAP</strong><br />
/var/log/maillog</p>
<p><strong>Tomcat Logs:</strong><br />
/usr/local/jakarta/tomcat/logs/catalina.err<br />
/usr/local/jakarta/tomcat/logs/catalina.out</p>
<p><strong>cPanel Access Log:</strong><br />
/usr/local/cpanel/logs/access_log</p>
<p><strong>cPanel Error Log:</strong><br />
/usr/local/cpanel/logs/error_log</p>
<p><strong>cPanel License Log:</strong><br />
/usr/local/cpanel/logs/license_log</p>
<p><strong>Stats Execution Logs:</strong><br />
/usr/local/cpanel/logs/stats_log</p>
<p><strong>ChkServd (cPanel Monitoring Daemon) Logs:</strong><br />
/var/log/chkservd.log</p>
<p><strong>cPHulkd</strong><br />
/usr/local/cpanel/logs/cphulkd.log</p>
<p><strong>cPanel Backup Logs:</strong><br />
/usr/local/cpanel/logs/cpbackup/*.log</p>
<p><strong>Pure-FTP</strong><br />
/var/log/messages<br />
/var/log/xferlog (symlinked to /usr/local/apache/domlogs/ftpxferlog)</p>
<p><strong>Cron Logs:</strong><br />
/var/log/cron</p>
<p><strong>SSH Logs</strong>:<br />
/var/log/secure</p>
<p><strong>ModSecurity:</strong><br />
/usr/local/apache/logs/modsec_audit.log<br />
/usr/local/apache/logs/modsec_debug_log</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.cpaneladmins.com%2Fcpanel-log-locations%2F&amp;title=cPanel%20Log%20Locations" id="wpa2a_20"><img src="http://www.cpaneladmins.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.cpaneladmins.com/cpanel-log-locations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

