<?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>Unix Surgeon &#187; Cpanel</title>
	<atom:link href="http://www.unixsurgeon.com/kb/category/cpanel/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unixsurgeon.com/kb</link>
	<description>Linux Hosting Solution, Linux Web Hosting Solution, Learn Linux, How to, Server Management , Web Hosting Solution , Linux Solution , KnowledgeBase , Linux Tutorial</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:42:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to sync server time with NTP servers</title>
		<link>http://www.unixsurgeon.com/kb/how-to-sync-server-time-with-ntp-servers.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-sync-server-time-with-ntp-servers.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 07:44:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[sync time]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=301</guid>
		<description><![CDATA[How to synchronize time with NTP servers.
1. Sync time with NTP(Network Time Protocol) server.
# which ntpdate
If its not display anything then type:
# yum install ntp
3. Once ntp is installed sync your system/server clock with any NTP server:
# ntpdate 0.us.pool.ntp.org
3. You are not limited to the above server. There are numerous NTP servers around the world. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to synchronize time with NTP servers.</strong></p>
<p>1. Sync time with NTP(Network Time Protocol) server.</p>
<p># which ntpdate</p>
<p>If its not display anything then type:</p>
<p># yum install ntp</p>
<p>3. Once ntp is installed sync your system/server clock with any NTP server:</p>
<p># ntpdate 0.us.pool.ntp.org</p>
<p>3. You are not limited to the above server. There are numerous NTP servers around the world. You can find a complete list at ntp.org. Also keep in mind that ntp only affects the system time. The hardware clock on your server will not reflect that. So you want to set it as well so that the correct time is maintained after reboot:</p>
<p># hwclock –systohc</p>
<p># ntpd</p>
<p style="text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>4. To keep your server clock automatically synchronized you can run the ntpd daemon which is installed as part of the ntp package. Edit the /etc/ntp.conf file to comment out the following lines:</p>
<p># vi /etc/ntp.conf</p>
<p>——————————————–<br />
#server 127.127.1.0     # local clock<br />
#fudge  127.127.1.0 stratum 10<br />
——————————————–</p>
<p>5. The above two lines can sometimes prevent ntpd from properly synchronizing your clock. They are already commented out by default on CentOS/RHEL 6. But on 5.x you have to comment them out manually. Finally type the following two commands to start the daemon and make it run automatically at boot up:</p>
<p># service ntpd start</p>
<p># chkconfig ntpd on</p>
<p style="text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>If you have WHM/cpanel installed on your server:-</strong></p>
<p>Then login to WHM with the root details and go to <strong>Main &gt;&gt; Server Configuration &gt;&gt; Server Time</strong></p>
<p>ANd click on <strong>sync time with time server</strong>,it will sync the server time with cpanel NTP server.</p>
<p>Also you can set the cron to server clock automatically synchronization with the following :-</p>
<p><strong>0 9 * * * rdate rdate.cpanel.net</strong></p>
<p>The above entry sync the server time at 9 o&#8217;clock every day with cpanel time server.</p>
<p>Enjoy Linux&#8230; <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-sync-server-time-with-ntp-servers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install RVsitebuilder for Cpanel</title>
		<link>http://www.unixsurgeon.com/kb/how-to-install-rvsitebuilder-for-cpanel.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-install-rvsitebuilder-for-cpanel.html#comments</comments>
		<pubDate>Wed, 23 Nov 2011 08:05:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Fantastico]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=298</guid>
		<description><![CDATA[How to install rvsitebuilder in Cpanel :-
1. Once you  got the license confirmation, SSH to your cPanel server as root and run the following  command to aware your php with cpanel changes :-
#   /scripts/makecpphp
2. Download the latest installer using the command below:
#  cd /usr/local/cpanel/whostmgr/docroot/cgi/
#   rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/
#  rm -f rvsitebuilderinstaller.tar
#  wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
#   tar -xvf rvsitebuilderinstaller.tar
#  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to install rvsitebuilder in Cpanel :-</strong></p>
<p><strong>1.</strong> Once you  got the license confirmation, SSH to your cPanel server as root and run the following  command to aware your php with cpanel changes :-<br />
#   /scripts/makecpphp</p>
<p><strong>2.</strong> Download the latest installer using the command below:<br />
#  cd /usr/local/cpanel/whostmgr/docroot/cgi/<br />
#   rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/<br />
#  rm -f rvsitebuilderinstaller.tar<br />
#  wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar<br />
#   tar -xvf rvsitebuilderinstaller.tar<br />
#  chmod 755 addon_rvsitebuilder.cgi<br />
#   rm -f rvsitebuilderinstaller.tar</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>3.</strong> Open root WHM, at the bottom left menu under Plugins section, you will find RVSiteBuilder Installer menu.</p>
<p><strong>4.</strong> Click RVSiteBuilder Installer to begin the installation process.</p>
<p><strong>5. </strong>After complete the installation, you will be sent to RVSiteBuilder Manager automatically.Please configure RV SiteBuilder immediatly.</p>
<p>Done !!!!!!! Now Your cPanel should show the RVSiteBuilder as a feature in all cPanel users.</p>
<p><strong>How to install RVSiteBuilder? If  server compiled with suhosin :-</strong><br />
You will need to increase the variable size in suhosin.Set the following suhosin options in your php.ini :-<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
[suhosin]<br />
; For translation manager to handle more inputs<br />
suhosin.post.max_vars = 2000<br />
suhosin.request.max_vars = 2000</p>
<p>; For URL handling<br />
suhosin.request.max_totalname_length = 300<br />
suhosin.request.max_varname_length = 300<br />
suhosin.get.max_varname_length = 300<br />
suhosin.get.max_name_length = 300<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Increase the value as you need it. And don&#8217;t forget to restart apache.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Enjoy Linux&#8230; !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-install-rvsitebuilder-for-cpanel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awstats Internal Server Error &#124; open3: exec of /usr/local/cpanel/base/awstats.pl</title>
		<link>http://www.unixsurgeon.com/kb/awstats-internal-server-error-open3-exec-of-usrlocalcpanelbaseawstats-pl.html</link>
		<comments>http://www.unixsurgeon.com/kb/awstats-internal-server-error-open3-exec-of-usrlocalcpanelbaseawstats-pl.html#comments</comments>
		<pubDate>Fri, 01 Jul 2011 05:57:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Awstats Internal Server Error]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=287</guid>
		<description><![CDATA[Hi,
Today While accessing Awstats from Cpanel i have seen error below :-
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
Internal Server Error
open3: exec of /usr/local/cpanel/base/awstats.pl failed at cpsrvd-ssl line 6112
at /usr/lib/perl5/5.6.2/Carp.pm line 119
Carp::croak(&#8217;open3: exec of /usr/local/cpanel/base/awstats.pl failed&#8217;) called at /usr/local/cpanel/perl/IPC/Open3.pm line 230
IPC::Open3::_open3(&#8217;open3&#8242;, &#8216;main&#8217;, &#8216;GLOB(0xe20be50)&#8217;, &#8216;IO::Handle=GLOB(0xe338000)&#8217;, &#8216;&#62;&#38;ERRLOG&#8217;, &#8216;/usr/local/cpanel/base/awstats.pl&#8217;) called at /usr/local/cpanel/perl/IPC/Open3.pm line 291
IPC::Open3::open3(&#8217;GLOB(0xe20be50)&#8217;, &#8216;IO::Handle=GLOB(0xe338000)&#8217;, &#8216;&#62;&#38;ERRLOG&#8217;, &#8216;/usr/local/cpanel/base/awstats.pl&#8217;) called at cpsrvd-ssl line 6112
main::cgiHandler() called at cpsrvd-ssl [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today While accessing Awstats from Cpanel i have seen error below :-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Internal Server Error</p>
<p>open3: exec of /usr/local/cpanel/base/awstats.pl failed at cpsrvd-ssl line 6112</p>
<p>at /usr/lib/perl5/5.6.2/Carp.pm line 119</p>
<p>Carp::croak(&#8217;open3: exec of /usr/local/cpanel/base/awstats.pl failed&#8217;) called at /usr/local/cpanel/perl/IPC/Open3.pm line 230</p>
<p>IPC::Open3::_open3(&#8217;open3&#8242;, &#8216;main&#8217;, &#8216;GLOB(0xe20be50)&#8217;, &#8216;IO::Handle=GLOB(0xe338000)&#8217;, &#8216;&gt;&amp;ERRLOG&#8217;, &#8216;/usr/local/cpanel/base/awstats.pl&#8217;) called at /usr/local/cpanel/perl/IPC/Open3.pm line 291</p>
<p>IPC::Open3::open3(&#8217;GLOB(0xe20be50)&#8217;, &#8216;IO::Handle=GLOB(0xe338000)&#8217;, &#8216;&gt;&amp;ERRLOG&#8217;, &#8216;/usr/local/cpanel/base/awstats.pl&#8217;) called at cpsrvd-ssl line 6112</p>
<p>main::cgiHandler() called at cpsrvd-ssl line 1283</p>
<p>main::dodoc_cpaneld() called at cpsrvd-ssl line 1150</p>
<p>main::dodoc(&#8217;HASH(0xe04f60)&#8217;) called at cpsrvd-ssl line 963</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Solution :-</p>
<p>Check the permission of /usr/local/cpanel/3rdparty/bin/awstats.pl file on the server.</p>
<p>It should be set as 755 that is executable by user, group and others.</p>
<p>Enjoy Linux&#8230; !!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/awstats-internal-server-error-open3-exec-of-usrlocalcpanelbaseawstats-pl.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add swap space in linux</title>
		<link>http://www.unixsurgeon.com/kb/how-to-add-swap-space-in-linux.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-add-swap-space-in-linux.html#comments</comments>
		<pubDate>Tue, 05 Apr 2011 13:46:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[swap file]]></category>
		<category><![CDATA[swap memory]]></category>
		<category><![CDATA[swap partion;swap space]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=271</guid>
		<description><![CDATA[Sometimes we need additional swap space or nessasary to add more swap space  to improve system/server performance. How to add a swap file to Linux system after installation?
In Linux….we use a whole partition of a physical hard disk for swapping. However, with the 2.6 Linux kernel, swap files are just as fast as swap partitions, [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we need additional swap space or nessasary to add more swap space  to improve system/server performance. How to add a swap file to Linux system after installation?</p>
<p>In Linux….we use a whole partition of a physical hard disk for swapping. However, with the 2.6 Linux kernel, swap files are just as fast as swap partitions, although Red Hat recommends using a swap partition. Just Assume that you may upgrade the amount of RAM in your system from 1024 MB to 2048 MB, but there is only 2048 MB of swap space. It might be advantageous to increase the amount of swap space to approx 2 times of your physical RAM it means 4096 MB if you perform memory-intense operations or run applications that require a large amount of memory. The administrative flexibility of swap files outweighs that of partitions; since modern high capacity hard drives can remap physical sectors, no partition is guaranteed to be contiguous. You can add swap file as a dedicated partition or use following instructions to create a swap file.</p>
<p>You have three options: create a new swap partition, create a new swap file, or extend swap on an existing LVM2 logical volume. It is recommended that you extend an existing logical volume.</p>
<p><strong>1. Extending Swap on an LVM2 Logical Volume :-</strong></p>
<p>To extend an LVM2 swap logical volume login through root user (assuming /dev/VolGroup00/LogVol01 is the volume you want to extend):</p>
<p>1. Disable swapping for the associated logical volume:</p>
<p># swapoff -v /dev/VolGroup00/LogVol01</p>
<p>2.  Resize the LVM2 logical volume by 2o48 MB:</p>
<p># lvm lvresize /dev/VolGroup00/LogVol01 -L +2048M</p>
<p>3.  Format the new swap space:</p>
<p># mkswap /dev/VolGroup00/LogVol01</p>
<p>4. Enable the extended logical volume:</p>
<p># swapon -va</p>
<p>5. Test that the logical volume has been extended      properly:</p>
<p># cat /proc/swaps # free</p>
<p><strong>2. Creating an LVM2 Logical Volume for Swap :-</strong></p>
<p>To add a swap volume group login through root user (assuming /dev/VolGroup00/LogVol02 is the swap volume you want to add):</p>
<p>1. Create the LVM2 logical volume of size 2048 MB:</p>
<p># lvm lvcreate VolGroup00 -n LogVol02 -L 2048M</p>
<p>2. Format the new swap space:</p>
<p># mkswap /dev/VolGroup00/LogVol02</p>
<p>3. Add the following entry to the /etc/fstab file:</p>
<p>/dev/VolGroup00/LogVol02   swap     swap    defaults     0 0</p>
<p>4. Enable the extended logical volume:</p>
<p># swapon -va</p>
<p>5. Test that the logical volume has been extended      properly:</p>
<p># cat /proc/swaps # free</p>
<p><strong>3. Creating a Swap File :-</strong></p>
<p>To add a swap file:</p>
<p>1. Determine the size of the new swap file in megabytes      and multiply by 1024 to determine the number of blocks. For example, the      block size of a 512 MB swap file is 524288 (1024 * 512MB = 524288 block      size)</p>
<p>2. Through shell prompt as root, type the following      command with count being equal to the desired block size:-</p>
<p># dd if=/dev/zero of=/swapfile bs=1024 count=524288</p>
<p>3. Setup the  linux swap      Area/file with the command:-</p>
<p># mkswap /swapfile</p>
<p>4. To enable the swap file immediately but not      automatically at boot time: -</p>
<p># swapon /swapfile</p>
<p>5. To enable it at boot time, edit /etc/fstab to include the following entry: -</p>
<p>/swapfile          swap            swap    defaults        0 0</p>
<p>The next time the system boots, it enables the new swap file.</p>
<p>6. After adding the new swap file and enabling it, verify      it is enabled by viewing the output of the command :-</p>
<p>#  cat /proc/swaps</p>
<p>Or</p>
<p># free –m</p>
<p># top</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-add-swap-space-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diffrence between EAccelerator &amp; APC (Alternative PHP Cache)</title>
		<link>http://www.unixsurgeon.com/kb/diffrence-between-eaccelerator-apc-alternative-php-cache.html</link>
		<comments>http://www.unixsurgeon.com/kb/diffrence-between-eaccelerator-apc-alternative-php-cache.html#comments</comments>
		<pubDate>Wed, 09 Mar 2011 12:17:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[Diffrence between EAccelerator & APC]]></category>
		<category><![CDATA[EAccelerator]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=248</guid>
		<description><![CDATA[Diffrence between EAccelerator &#38; APC :-
EAccelerator  is faster than APC. EAccelerator is &#8220;just&#8221; an opcode cache. It transparently caches PHP opcodes; all you have to do to use it is download, compile and enable and never worry about it again. APC, on the other hand, does a bit more. While APC also caches opcodes, it [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Diffrence between EAccelerator &amp; APC :-</strong></p>
<p>EAccelerator  is faster than APC. EAccelerator is &#8220;just&#8221; an opcode cache. It transparently caches PHP opcodes; all you have to do to use it is download, compile and enable and never worry about it again. APC, on the other hand, does a bit more. While APC also caches opcodes, it performs worse than EAC or xcache does (there&#8217;s a bit of debate as to which is better, for my particular needs, EAC was marginally faster, but both outperformed APC) for opcode caching. APC, on the other hand, also has some useful features that aren&#8217;t related to opcode caching, but rather apc_store, apc_fetch and apc_define_constants .Using PHP cache system will greatly increase your whole system performance, as you can with Pure PHP ned 209.58ms and using PHP cache system only need around 60ms. So it will boost your server response up to 4 times faster. And between XCache, APC and eAccelerator there are no significant different only 1ms-2ms different between them. So which one you choose is up to you, but if you use Zend Optimizer don’t use APC as they are not working together.</p>
<p><a href="http://www.unixsurgeon.com/kb/how-to-enable-the-apc-extension-in-php-alternative-php-cache.html">To install/Enable the APC please use this post.</a></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/diffrence-between-eaccelerator-apc-alternative-php-cache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>make: *** [apc.lo] Error 1 (APC Installation)</title>
		<link>http://www.unixsurgeon.com/kb/make-apc-lo-error-1-apc-installation.html</link>
		<comments>http://www.unixsurgeon.com/kb/make-apc-lo-error-1-apc-installation.html#comments</comments>
		<pubDate>Wed, 09 Mar 2011 12:09:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Open Source Applications]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[APC via pecl]]></category>
		<category><![CDATA[make: *** [apc.lo] Error 1]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=244</guid>
		<description><![CDATA[Today  when i try to install APC instead of EAccelerator via pecl install APC-3.1.5 or even WHM /Cpanel &#62;&#62; module installers &#62;&#62; php pecl &#62;&#62; manage
I get following error when the package comes to the make command:-
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
running: make
/var/tmp/APC/apc.c:463: error: &#8216;apc_regex&#8217; has no member named &#8216;preg&#8217;
/var/tmp/APC/apc.c:463: error: &#8216;apc_regex&#8217; has no member named &#8216;preg&#8217;
/var/tmp/APC/apc.c:464: error: &#8216;apc_regex&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>Today  when i try to install APC instead of EAccelerator via pecl install APC-3.1.5 or even WHM /Cpanel &gt;&gt; module installers &gt;&gt; php pecl &gt;&gt; manage</p>
<p>I get following error when the package comes to the make command:-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>running: make</p>
<p>/var/tmp/APC/apc.c:463: error: &#8216;apc_regex&#8217; has no member named &#8216;preg&#8217;</p>
<p>/var/tmp/APC/apc.c:463: error: &#8216;apc_regex&#8217; has no member named &#8216;preg&#8217;</p>
<p>/var/tmp/APC/apc.c:464: error: &#8216;apc_regex&#8217; has no member named &#8216;nreg&#8217;</p>
<p>/var/tmp/APC/apc.c:464: error: &#8216;apc_regex&#8217; has no member named &#8216;nreg&#8217;</p>
<p><strong>make: *** [apc.lo] Error 1</strong></p>
<p><strong>ERROR: `make&#8217; failed</strong></p>
<p><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; </strong></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>To resolve this and reinstall the APC(make sure that EAccelerator removed from php),before reinstall the APC install the following packages :-</p>
<p><strong># yum install pcre-devel</strong></p>
<p>before installing APC.</p>
<p>On Debian use</p>
<p><strong># aptitude install libpcre3-dev</strong></p>
<p>Then  you will get the following response when you reinstall the APC  :-</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>unixsurg [~]# cd /usr/lib/php/extensions/no-debug-non-zts-20090626/</p>
<p>unixsurg [/usr/lib/php/extensions/no-debug-non-zts-20090626]# ls</p>
<p>./ ../ apc.so</p>
<p>unixsurg [/usr/lib/php/extensions/no-debug-non-zts-20090626]# cat /usr/lib/php.ini |grep apc</p>
<p>extension=&#8221;apc.so&#8221;</p>
<p>unixsurg [/usr/lib/php/extensions/no-debug-non-zts-20090626]#</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><a href="http://unixsurgeon.com/apc.JPG"><img class="alignnone" title="apc" src="http://unixsurgeon.com/apc.JPG" alt="" width="640" height="643" /></a></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/make-apc-lo-error-1-apc-installation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to kill large synflood TCP connections.</title>
		<link>http://www.unixsurgeon.com/kb/how-to-kill-large-synflood-tcp-connections.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-kill-large-synflood-tcp-connections.html#comments</comments>
		<pubDate>Mon, 03 Jan 2011 17:21:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux tutorials]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[dsniff]]></category>
		<category><![CDATA[synflood;kill tcp connections]]></category>
		<category><![CDATA[tcpkill]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=196</guid>
		<description><![CDATA[Tcpkill :-   Tcpkill can be used to kill Tcp connections to or from a particular host, network, port, or combination of all. These programs take standard Berkeley Packet Filter (BPF) filters. This can be used for both port mirroring and arp spoofing.
Syntax :-
# tcpkill -i eth0 { expression }
Example :-
(a) Kill all outgoing ftp (port [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Tcpkill</strong> :-   Tcpkill can be used to kill Tcp connections to or from a particular host, network, port, or combination of all. These programs take standard Berkeley Packet Filter (BPF) filters. This can be used for both port mirroring and arp spoofing.</p>
<p>Syntax :-</p>
<p># tcpkill -i eth0 { expression }</p>
<p>Example :-</p>
<p>(a) Kill all outgoing ftp (port 21) connection:</p>
<p># tcpkill -i eth0 port 21</p>
<p>(b) to prevent any connections to the host www.unixsurgeon.com or 2.2.4.8 :-</p>
<p># tcpkill host 2.2.4.8</p>
<p>OR</p>
<p># tcpkill host www.unixsurgeon.com</p>
<p>Options :-</p>
<p><strong>-i</strong></p>
<p>the <strong>-i</strong> option specify which interface you want the program to listen on. The default option interface on most computers is eth0, because most computers only have one interface.</p>
<p><strong>-1 to 9</strong></p>
<p>The <strong>-1 to -9</strong> specify the degree of brute force you want the attack to use on the target, with <strong>-1</strong> being the least brute and <strong>-9</strong> being the most brute. Otherwise the command can be run without the <strong>-1 to -9</strong> option or the <strong>-i</strong> option.</p>
<p>Tcpkill can be used to create a DoS attack within a WAN or LAN, and this can be done by using a sniffer like &#8220;dsniff &#8220;or &#8220;tcpdump&#8221; to look at the packets that are being transmitted and to pick a target that you want to deny service. Assume the target has been identified as 2.2.4.8, a simple command like:</p>
<p># tcpkill host -9 2.2.4.8</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-kill-large-synflood-tcp-connections.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>symbol lookup error: suhosin.so: undefined symbol: zend_atol</title>
		<link>http://www.unixsurgeon.com/kb/symbol-lookup-error-suhosin-so-undefined-symbol-zend_atol.html</link>
		<comments>http://www.unixsurgeon.com/kb/symbol-lookup-error-suhosin-so-undefined-symbol-zend_atol.html#comments</comments>
		<pubDate>Mon, 20 Sep 2010 11:30:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[lamp server]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php: symbol lookup error]]></category>
		<category><![CDATA[symbol lookup error: suhosin.so]]></category>
		<category><![CDATA[undefined symbol: zend_atol]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=112</guid>
		<description><![CDATA[HI,
Today after updating my php and apache on the server. I was getting 500 internal error my website and i got below error on my server apache error logs.
“/usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol”
The error message appears when an old application or software is upgraded to latest version. It may not cause issues [...]]]></description>
			<content:encoded><![CDATA[<p>HI,</p>
<p>Today after updating my php and apache on the server. I was getting 500 internal error my website and i got below error on my server apache error logs.</p>
<p>“/usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol”</p>
<p>The error message appears when an old application or software is upgraded to latest version. It may not cause issues with all the applications but definitely does affect some of them.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The only works when you enable suhosin.simulation for the account instead of disabling suhosin on the server.</p>
<p>You can perform this task by following ways :-</p>
<p>1.  By enabling suhosin.simulation in .htaccess file. If  susphp is not enabled on the server.</p>
<p>php_flag suhosin.simulation On</p>
<p>2.  By creating php.ini file under public_html/ directory. If  susphp is  enabled on the server.</p>
<p>suhosin.simulation On</p>
<p>If you are getting same error under wp-admin login page then copy your php.ini file under wp-admin/ directory and check once again.</p>
<p>Now you can check your application, Also there is no need to restart any service like apache&#8230;.It will work&#8230;!!!</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/symbol-lookup-error-suhosin-so-undefined-symbol-zend_atol.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWSTATS not updating&#8230;.</title>
		<link>http://www.unixsurgeon.com/kb/awstats-not-updating.html</link>
		<comments>http://www.unixsurgeon.com/kb/awstats-not-updating.html#comments</comments>
		<pubDate>Fri, 17 Sep 2010 15:49:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[AWSTATS]]></category>
		<category><![CDATA[AWStats LogFormat]]></category>
		<category><![CDATA[record number 50 in your log]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=110</guid>
		<description><![CDATA[Since couple of days i have faced some strange problem that AWSTATS not updating on my all hosted accounts ,I have linux shared hosting server with WHM,from last couple of days our AWSTATS not updating/not working,i have tried with all the option,whenever i just update AWSTATS from user Cpanel it throws error :-



================================================== ============================
AWStats did [...]]]></description>
			<content:encoded><![CDATA[<p>Since couple of days i have faced some strange problem that AWSTATS not updating on my all hosted accounts ,I have linux shared hosting server with WHM,from last couple of days our AWSTATS not updating/not working,i have tried with all the option,whenever i just update AWSTATS from user Cpanel it throws error :-<br />
<script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<br />
================================================== ============================<br />
AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.<br />
Your log file /usr/local/apache/domlogs/domain.com must have a bad format or LogFormat parameter setup does not match this format.</p>
<p>Your AWStats LogFormat parameter is: 1<br />
This means each line in your web server log file need to have &#8220;combined log format&#8221; like this:<br />
111.22.33.44 &#8211; - [10/Jan/2001:02:14:14 +0200] &#8220;GET / HTTP/1.1&#8243; 200 1234 &#8220;http://www.fromserver.com/from.htm&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)&#8221;</p>
<p>And this is an example of records AWStats found in your log file (the record number 50 in your log):<br />
118.94.161.217 &#8211; - [12/Sep/2010:21:18:04 +0530] &#8220;GET /adda/wp-content/uploads/avatars/1/75a71ca2ddfd423e7a9276ff8b6f22dd-bpthumb.jpg HTTP/1.1&#8243; 200 1722</p>
<p>Setup (&#8217;/home/user/tmp/awstats/awstats.domain.com.conf&#8217; file, web server or permissions) may be wrong.<br />
Check config file, permissions and AWStats documentation (in &#8216;docs&#8217; directory).<br />
================================================== =======================</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>I have corrected it and use some trouble shooting steps :-</p>
<p>1. AWStats to perform the update manually, please try the following command (via root SSH access):-<br />
# /scripts/runstatsonce<br />
2. To update AWSTATS for particular user :-<br />
# /scripts/runweblogs username<br />
3. Just change the log format in user AWSTATS file :-<br />
# vi /home/username/tmp/awstats/awstats.yourdomain.com.conf<br />
change Logformat =4 instead of 1 or 2</p>
<p>Then update your AWSTATS through Cpanel or manually by step 2,you will get your AWSTATS updated.</p>
<p>Enjoy Linux..!!!!!</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/awstats-not-updating.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to set cron job in Cpanel</title>
		<link>http://www.unixsurgeon.com/kb/how-to-set-cron-job-in-cpanel.html</link>
		<comments>http://www.unixsurgeon.com/kb/how-to-set-cron-job-in-cpanel.html#comments</comments>
		<pubDate>Mon, 09 Aug 2010 22:17:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[cron job in cpanel]]></category>
		<category><![CDATA[cron jobs in Cpanel]]></category>

		<guid isPermaLink="false">http://www.unixsurgeon.com/kb/?p=92</guid>
		<description><![CDATA[This tutorial will provide you step-by-step instructions on how to set up a cron job in the cPanel . It will cover both the standard and advanced method.



Standard Method :-
1. At the bottom of the cPanel interface, locate and click the “Cron Jobs” icon.
2. Click on the “Standard” tab.
3. The first option calls for you [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will provide you step-by-step instructions on how to set up a cron job in the cPanel . It will cover both the standard and advanced method.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p><strong>Standard Method :-</strong></p>
<p>1. At the bottom of the cPanel interface, locate and click the “Cron Jobs” icon.</p>
<p>2. Click on the “Standard” tab.</p>
<p>3. The first option calls for you to enter the email address of where you want the results of the<br />
cron job to be sent. Simply enter the email address in the provided field and move onto the next step.</p>
<p>4. For “Entry 1″ you will see the text “Command to run” with a text box beside. Input the command or path to the script you want to run in the field.</p>
<p>Example :- php -q /home/username/public_html/cron.php</p>
<p>5. Below “Command to run”, there are five options that will allow you the set the time and intervals for your cron job. Those options are listed as follows:</p>
<p>Minute(s)<br />
Hour(s)<br />
Day(s)<br />
Month(s)<br />
Weekday(s)</p>
<p>Once you create the Cron job, a confirmation page will be displayed stating “Cron Updated”.</p>
<p>6. After making the appropriate selections, click the “Save Crontab” button to create the entry. If you elect to reset the changes and go back to the default settings, simply click the “Reset Changes” button.</p>
<p>7. Click the “Go Back” tab and you will be redirected back to the main Cron Job screen.</p>
<p>8. Check your email address to view the results of the cron job.</p>
<p><strong>Advanced Method :-</strong></p>
<p>1. From the main Cron Job screen, click the “Advanced (Unix Style) tab.</p>
<p>2. The first option calls for you to enter the email address of where you want the cron job results to be sent. Simply enter the email address in the provided text box.</p>
<p>3. From there, enter the Minute(s), Hour(s), Day(s), Month(s) Weekday and Command in the provided text boxes.</p>
<p>4. Next, click the “Save Crontab” button to create the entry. If want to the reset the changes and revert back to the default settings, simply click the “Reset Changes” button.</p>
<p>5. A confirmation page will be displayed stating “Cron Updated!” Click the “Go Back” button and you will be redirected back to the main Cron Job screen.</p>
<p>6.) Check your email address to view the results of the cron job.</p>
<p>If you want to benefit from cron jobs and use them effectively, you will need to have some familiarity with Linux commands. This is especially true when creating cron jobs in the Advanced Unix variation. For this reason, it is recommended to inquire within your web host about the files and scripts you want to run before executing them.</p>
<p>Enjoy Linux.. <img src='http://www.unixsurgeon.com/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7877248176171699";
google_ad_slot = "4635030684";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixsurgeon.com/kb/how-to-set-cron-job-in-cpanel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

