<?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>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; admin</title>
	<atom:link href="http://thegioinguonmo.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Sat, 18 May 2013 21:40:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Installing Debian Raid</title>
		<link>http://thegioinguonmo.com/os/linux/installing-debian-raid.html</link>
		<comments>http://thegioinguonmo.com/os/linux/installing-debian-raid.html#comments</comments>
		<pubDate>Sat, 18 May 2013 21:40:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=414</guid>
		<description><![CDATA[Instructions for installing a very clean Debian GNU/Linux system that boots from RAID 1, and has RAID 1 or RAID 5 root and data filesystems. The examples assume two identical harddrives, sda and sdb, on which after a small boot partition, 1 GB is used for swap, 25 GB is used for the root filesystem [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Instructions for installing a very clean Debian GNU/Linux system that boots from RAID 1, and has RAID 1 or RAID 5 root and data filesystems.</p>
<p>The examples assume two identical harddrives, sda and sdb, on which after a small boot partition, 1 GB is used for swap, 25 GB is used for the root filesystem and everything else is for a big “data” partition that will hold non-system stuff.</p>
<p>Although I personally prefer /boot to be readonly, this guide doesn’t add the ro flag in /etc/fstab, because that’ll only lead to complaints about lilo upgrades not going smoothly. (Which is exactly the point of having it readonly in the first place…)</p>
<p>They also assume some specific tools that you may or may not like, and a kernel without module support. This is how I prefer to do things for servers. Please don’t try to persuade me to use kernel packages, grub, modules, or whatever.</p>
<p>General knowledge is required. Don’t begin unless you understand each step.</p>
<h2>Raidthingy</h2>
<p>The 42nd time you do all this, it gets rather boring. So I decided to automate steps 4..19, excluding 15 (kernel), using a simple Perl script.</p>
<p>This script assumes you have equal and empty (unpartitioned) drives, and provides very little flexibility.</p>
<blockquote><p>wget <a rel="nofollow" target="_blank" title="Off-site link: http://juerd.nl/files/raidthingy.pl" href="http://juerd.nl/elsewhere.plp?href=http://juerd.nl/files/raidthingy.pl">http://juerd.nl/files/raidthingy.pl</a><br />
vim raidthingy.pl <em># Learn what it does.</em><br />
perl raidthingy.pl <em># Follow instructions</em></p></blockquote>
<h2>The guide</h2>
<p>1. Get a bootable cd with debootstrap and RAID support, like KNOPPIX, and boot from it.</p>
<p>2. Find a root shell.</p>
<p>If your drives are hdx instead of sdx, ensure that DMA is enabled for both drives:</p>
<blockquote><p>hdparm -d1 /dev/hda<br />
hdparm -d1 /dev/hdc</p></blockquote>
<p>The rest of this guide assumes sda and sdb, because S-ATA devices are presented as SCSI devices in recent kernels.</p>
<p>3. Get networking up and running, if you don’t have DHCP:</p>
<blockquote><p>ifconfig eth0 123.123.123.123 up<br />
route add default gw 123.123.123.1<br />
echo nameserver 123.123.123.1 &gt; /etc/resolv.conf</p></blockquote>
<p>4. Partition the drives, paying no attention to partition types yet:</p>
<blockquote><p>fdisk /dev/sda<br />
<em># n &lt;CR&gt; p &lt;CR&gt; 1 &lt;CR&gt; &lt;CR&gt; +64M &lt;CR&gt;<br />
# n &lt;CR&gt; p &lt;CR&gt; 2 &lt;CR&gt; &lt;CR&gt; +1G &lt;CR&gt;<br />
# n &lt;CR&gt; e &lt;CR&gt; 3 &lt;CR&gt; &lt;CR&gt; &lt;CR&gt;<br />
# n &lt;CR&gt; l &lt;CR&gt; &lt;CR&gt; +25G &lt;CR&gt;<br />
# n &lt;CR&gt; l &lt;CR&gt; &lt;CR&gt; &lt;CR&gt;<br />
# a &lt;CR&gt; 1 &lt;CR&gt; w &lt;CR&gt;</em><br />
fdisk /dev/sdb<br />
<em># n &lt;CR&gt; p &lt;CR&gt; 1 &lt;CR&gt; &lt;CR&gt; +64M &lt;CR&gt;<br />
# n &lt;CR&gt; p &lt;CR&gt; 2 &lt;CR&gt; &lt;CR&gt; +1G &lt;CR&gt;<br />
# n &lt;CR&gt; e &lt;CR&gt; 3 &lt;CR&gt; &lt;CR&gt; &lt;CR&gt;<br />
# n &lt;CR&gt; l &lt;CR&gt; &lt;CR&gt; +25G &lt;CR&gt;<br />
# n &lt;CR&gt; l &lt;CR&gt; &lt;CR&gt; &lt;CR&gt;<br />
# a &lt;CR&gt; 1 &lt;CR&gt; w &lt;CR&gt;</em></p></blockquote>
<p>5. For every partition, create a RAID 1 array:</p>
<blockquote><p>mdadm –create /dev/md0 -n 2 -l 1 /dev/sda1 /dev/sdb1<br />
mdadm –create /dev/md1 -n 2 -l 1 /dev/sda2 /dev/sdb2<br />
mdadm –create /dev/md2 -n 2 -l 1 /dev/sda5 /dev/sdb5<br />
mdadm –create /dev/md3 -n 2 -l 1 /dev/sda6 /dev/sdb6</p></blockquote>
<p>If you plan on installing sdb later, use <tt>missing</tt> instead of the second device.</p>
<p>For RAID 5, use <tt>-l 5</tt> instead of <tt>-l 1</tt>, and just specify more disks. Make sure the boot volume is RAID 1, not 5 (/dev/md0 here, and yes, you can have RAID 1 with more than 2 disks). Also, increase the number of disks (<tt>-n</tt>) accordingly.</p>
<p>6. Create filesystems and initialize swap space:</p>
<blockquote><p>mkfs.ext3 /dev/md0<br />
mkswap /dev/md1<br />
mkfs.ext3 /dev/md2<br />
mkfs.ext3 /dev/md3 -O dir_index</p></blockquote>
<p>7. Create a target mountpoint and mount your new filesystem(s) there:</p>
<blockquote><p>mkdir /target<br />
mount /dev/md2 /target</p>
<p>mkdir /target/boot<br />
mount /dev/md0 /target/boot</p>
<p>mkdir /target/data<br />
mount /dev/md3 /target/data</p>
<p>mkdir /target/data/home<br />
mkdir /target/home<br />
mount –bind /target/data/home /target/home</p>
<p>mkdir /target/data/var<br />
mkdir /target/var<br />
mount –bind /target/data/var /target/var</p>
<p>mkdir /data/share <em># for samba shares</em><br />
mkdir /data/www <em># for mod_vhost_alias sites</em></p></blockquote>
<p>8. Install a basic Debian system using debootstrap:</p>
<blockquote><p>debootstrap sarge /target http://ftp.nl.debian.org/debian</p></blockquote>
<p>9. Delete symlinks to the outside world in the target’s etc:</p>
<blockquote><p>cd /target/etc<br />
rm hostname resolv.conf localtime</p></blockquote>
<p>10. Get some real things there:</p>
<blockquote><p>cp /etc/resolv.conf .<br />
ln -s /usr/share/zoneinfo/Europe/Amsterdam localtime<br />
echo newboxthingy &gt; hostname<br />
vim default/rcS <em># FSCKFIX=yes</em></p></blockquote>
<p>11. Set up the file system table:</p>
<blockquote><p><em># This is /etc/fstab</em><br />
/dev/md0 /boot ext3 defaults 0 1<br />
/dev/md1 none swap swap<br />
/dev/md2 / ext3 defaults,errors=remount-ro 0 1<br />
/dev/md3 /data ext3 defaults,errors=remount-ro 0 1<br />
/data/home /home bind bind<br />
/data/var /var bind bind<br />
proc /proc proc</p></blockquote>
<p>12. Get a working sources.list:</p>
<blockquote><p>cd apt<br />
rm sources.list<br />
wget <a rel="nofollow" target="_blank" title="Off-site link: http://juerd.nl/sources.list" href="http://juerd.nl/elsewhere.plp?href=http://juerd.nl/sources.list">http://juerd.nl/sources.list</a></p></blockquote>
<p>13. Change the current root directory to enter the new system:</p>
<blockquote><p>chroot /target</p></blockquote>
<p>14. Get the system up to date and install some useful packages:</p>
<blockquote><p>apt-get update<br />
apt-get dist-upgrade<br />
apt-get install less wget w3m vim libncurses5-dev make gcc<br />
mbr bzip2 lilo mdadm ssh</p></blockquote>
<p>When asked to start RAID arrays automatically, answer “No”, as this is not needed with RAID built into the kernel and autodetected arrays.</p>
<p>15. Download a kernel, configure it, compile it, copy it:</p>
<blockquote><p>cd /usr/src<br />
wget http://ftp.nl.kernel.org/pub/linux/kernel/v2.6/linux-2.6.12.tar.bz2<br />
tar -jvxf linux-2.6.12.tar.bz2<br />
ln -s linux-2.6.12 linux</p>
<p><em># grsecurity (optional)</em><br />
wget http://www.grsecurity.net/grsecurity-2.1.6-2.6.11.12-200506141713.patch.gz<br />
cd linux<br />
zcat ../grsecurity-2.1.6-2.6.11.12-200506141713.patch.gz | patch -p1</p>
<p>cd /usr/src/linux<br />
make menuconfig<br />
<em># Don’t forget to compile in RAID 1/5 and ext3 support.</em><br />
make bzImage<br />
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.11.9<br />
cp System.map /boot/System.map-2.6.11.9</p></blockquote>
<p>16. Configure LILO:</p>
<blockquote><p><em># This is /etc/lilo.conf</em><br />
boot=/dev/md0<br />
root=/dev/md2<br />
compact<br />
lba32<br />
read-only<br />
image=/boot/vmlinuz-2.6.11.9<br />
label=Linux</p></blockquote>
<p>17. Install the boot records:</p>
<blockquote><p>lilo<br />
install-mbr /dev/sda<br />
install-mbr /dev/sdb</p></blockquote>
<p>18. Configure networking:</p>
<blockquote><p><em># This is /etc/network/interfaces</em><br />
auto lo<br />
iface lo inet loopback</p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 123.123.123.123<br />
netmask 255.255.255.0<br />
gateway 123.123.123.1<br />
network 123.123.123.0<br />
broadcast 123.123.123.255<br />
<em># Alternatively:<br />
# iface eth0 inet dhcp</em></p></blockquote>
<p>19. Secure things a little:</p>
<blockquote><p>shadowconfig on<br />
passwd<br />
adduser foo</p></blockquote>
<p>20. Exit the chrooted environment:</p>
<blockquote><p>exit</p></blockquote>
<p>21. Wait until synchronization is complete:</p>
<blockquote><p>watch cat /proc/mdstat</p></blockquote>
<p>22. Set the partition types to 0xFD:</p>
<blockquote><p>fdisk /dev/sda<br />
<em># t &lt;CR&gt; 1 &lt;CR&gt; fd &lt;CR&gt;<br />
# t &lt;CR&gt; 2 &lt;CR&gt; fd &lt;CR&gt;<br />
# t &lt;CR&gt; 5 &lt;CR&gt; fd &lt;CR&gt;<br />
# t &lt;CR&gt; 6 &lt;CR&gt; fd &lt;CR&gt; w &lt;CR&gt;</em><br />
fdisk /dev/sdb<br />
<em># t &lt;CR&gt; 1 &lt;CR&gt; fd &lt;CR&gt;<br />
# t &lt;CR&gt; 2 &lt;CR&gt; fd &lt;CR&gt;<br />
# t &lt;CR&gt; 5 &lt;CR&gt; fd &lt;CR&gt;<br />
# t &lt;CR&gt; 6 &lt;CR&gt; fd &lt;CR&gt; w &lt;CR&gt;</em></p></blockquote>
<p>23. Reboot and bring your favourite god(s) sacrifices:</p>
<blockquote><p>reboot</p></blockquote>
<p>24. Consider donating:</p>
<ul>
<li><a rel="nofollow" target="_blank" title="Off-site link: http://www.spi-inc.org/donations" href="http://juerd.nl/elsewhere.plp?href=http://www.spi-inc.org/donations">Software in the Public Interest, Inc.</a> (Debian)</li>
<li><a rel="nofollow" target="_blank" title="Off-site link: https://agia.fsf.org/donate" href="http://juerd.nl/elsewhere.plp?href=https://agia.fsf.org/donate">Free Software Foundation</a> (GNU)</li>
<li><a rel="nofollow" target="_blank" title="Off-site link: http://apache.org/foundation/contributing.html" href="http://juerd.nl/elsewhere.plp?href=http://apache.org/foundation/contributing.html">Apache Software Foundation</a></li>
<li><a rel="nofollow" target="_blank" title="Off-site link: http://donate.perlfoundation.org/" href="http://juerd.nl/elsewhere.plp?href=http://donate.perlfoundation.org/">Perl Development Fund</a></li>
</ul>
<div class="shr-publisher-414"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/installing-debian-raid.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk webmail + DB Error: connect failed</title>
		<link>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/plesk-webmail-db-error-connect-failed.html</link>
		<comments>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/plesk-webmail-db-error-connect-failed.html#comments</comments>
		<pubDate>Sat, 18 May 2013 09:40:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[psa]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[webmail horde]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=552</guid>
		<description><![CDATA[You may receive the following error message while accessing Webmail on a Plesk server: A fatal error has occurred DB Error: connect failed You need to make sure the ‘horde’ user is able to connect to the ‘horde’ database using the password mentioned in the file “/etc/psa/.webmail.shadow”. You have to create the file and specify [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>You may receive the following <strong>error message while accessing Webmail on a Plesk server:</strong></p>
<blockquote><p><strong>A fatal error has occurred<br />
DB Error: connect failed</strong></p></blockquote>
<p>You need to <strong>make sure the ‘horde’ user is able to connect to the ‘horde’ database</strong> using the <strong>password mentioned in the file “/etc/psa/.webmail.shadow”.</strong> You have to create the file and specify a random password if the file is missing.</p>
<p><strong>To set the password for user ‘horde’ , go to the mysql prompt.</strong></p>
<blockquote><p><strong>#</strong><strong>mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql</strong></p></blockquote>
<p>On the mysql prompt, execute:</p>
<blockquote><p><strong>mysql&gt; update user set password=password(password-from-.webmail.shadow) where user=’horde’;</strong></p></blockquote>
<p>Also make sure <strong>sql.safe_mode is set to off in /etc/php.ini file</strong>:</p>
<blockquote><p><strong>sql.safe_mode=Off</strong></p></blockquote>
<p>Restart Apache server once you save the file.</p>
<p><strong>If the problem persists, use the password from “/etc/psa/webmail/horde/.horde.shadow” file.</strong> Go through the following steps:</p>
<blockquote><p><strong>#cp <strong>/etc/psa/webmail/horde/.horde.shadow </strong><strong>/etc/psa/.webmail.shadow</strong></strong></p></blockquote>
<blockquote><p><strong>#</strong><strong>mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql</strong></p>
<p><strong>mysql&gt; update user set password=password(password-from-</strong><strong>/etc/psa/webmail/horde/.horde.shadow</strong><strong>) where user=’horde’;</strong></p></blockquote>
<p>You should now be able to access Webmail client.</p>
<div class="shr-publisher-552"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/plesk-webmail-db-error-connect-failed.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LogView Install</title>
		<link>http://thegioinguonmo.com/hosting-controller/cpanel-control-panel/logview-install.html</link>
		<comments>http://thegioinguonmo.com/hosting-controller/cpanel-control-panel/logview-install.html#comments</comments>
		<pubDate>Fri, 17 May 2013 21:41:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=165</guid>
		<description><![CDATA[LogView Install Instructions &#160; Login to your server as a root user wget http://www.logview.org/logview-install chmod +x logview-install ./logview-install Wait for install complete message rm -f logview-install LogView is now installed on your server! Login to WHM Go to Add-Ons &#62;&#62; LogView – File System Log Viewer Start using LogView]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>LogView Install Instructions</p>
<p>&nbsp;</p>
<ul>
<li>Login to your server as a root user</li>
<li>wget http://www.logview.org/logview-install</li>
<li>chmod +x logview-install</li>
<li>./logview-install</li>
<li>Wait for install complete message</li>
<li>rm -f logview-install</li>
</ul>
<p><strong>LogView is now installed on your server!</strong></p>
<ul>
<li>Login to WHM</li>
<li>Go to Add-Ons &gt;&gt; LogView – File System Log Viewer</li>
<li>Start using LogView</li>
</ul>
<div class="shr-publisher-165"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/hosting-controller/cpanel-control-panel/logview-install.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ConfigServer ModSecurity Control</title>
		<link>http://thegioinguonmo.com/web-server/apache/configserver-modsecurity-control.html</link>
		<comments>http://thegioinguonmo.com/web-server/apache/configserver-modsecurity-control.html#comments</comments>
		<pubDate>Fri, 17 May 2013 09:42:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ID]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[txt]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=582</guid>
		<description><![CDATA[This is an exclusive! and free! add-on product for cPanel/WHM. The product provides you with an interface to the cPanel mod_security implementation from within WHM. With ConfigServer ModSecurity Control you can: Disable mod_security rules that have unique ID numbers on a global, per cPanel user or per hosted domain level Disable mod_security entirely, also on [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is an exclusive! and <strong>free!</strong> add-on product for cPanel/WHM. The product provides you with an interface to the cPanel mod_security implementation from within WHM.</p>
<p>With ConfigServer ModSecurity Control you can:</p>
<ul>
<li>Disable mod_security rules that have unique ID numbers on a <strong>global</strong>, <strong>per cPanel user or per hosted domain level</strong></li>
<li>Disable mod_security entirely, also on a global, per cPanel user or per hosted domain level</li>
<li>Edit files containing mod_security configuration settings in /usr/local/apache/conf</li>
<li>View the latest mod_security log entries</li>
</ul>
<p>Requirements</p>
<ul>
<li>Apache v2+</li>
<li>mod_security v2.5+ installed via Easyapache</li>
<li>A set of mod_security rules each of which uses a unique ID</li>
</ul>
<p>A recommended selection of rules can be obtained from <a rel="nofollow" target="_blank" href="http://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project" target="_blank"> ModSecurity Core Rule Set Project</a> and <a rel="nofollow" target="_blank" href="http://www.gotroot.com/mod_security+rules" target="_blank"> Got Root</a>. Care should be exercised with these rulesets as they can increase server resource usage by Apache child processes significantly.</p>
<p>This utility uses concepts explained in <a rel="nofollow" target="_blank" href="http://docs.cpanel.net/twiki/bin/view/EasyApache3/InsideVHost" target="_blank"> this</a> section of the cPanel documentation.</p>
<p>Download</p>
<p>The latest version of cmc can be downloaded here: <a rel="nofollow" target="_blank" href="http://configserver.net/free/cmc.tgz"><strong>cmc.tgz</strong></a></p>
<p>Screenshot</p>
<blockquote><p><a rel="nofollow" target="_blank" href="http://configserver.net/images/cmc/cmc.png" target="_blank"> <img src="http://configserver.net/images/cmc/cmc_small.png" alt="cmc small ConfigServer ModSecurity Control " width="150" height="100" border="1" title="ConfigServer ModSecurity Control " /></a></p></blockquote>
<p>Support</p>
<p>Please visit our <a rel="nofollow" target="_blank" href="http://forum.configserver.com/"><strong>ConfigServer Scripts Forum</strong></a></p>
<p>Licensing</p>
<p>This application is released under our <a rel="nofollow" target="_blank" href="http://configserver.net/free/cmc/license.txt"><strong>script license</strong></a>. It is released free of charge, with no warranty to its suitability. There is no support provided with this application except through our online <a rel="nofollow" target="_blank" href="http://forum.configserver.com/"><strong>help forums</strong></a>.</p>
<p align="left">While we are happy to provide these scripts <strong>for free</strong>, we are a small outfit that runs on a slim margin. If you do decide to use them, we’d be eternally grateful for any donation you think might express your gratitude so that we can continue to develop and provide them:</p>
<p>That’s it. If you don’t feel confident doing any of this yourself, or if you get into a horrible mess, we do have <strong><a rel="nofollow" target="_blank" href="http://configserver.net/cp/cpanel.html">cPanel Server Services</a></strong> that include the installation and configuration of this application.</p>
<p>Documentation</p>
<ul>
<li><a rel="nofollow" target="_blank" href="http://configserver.net/free/cmc/INSTALL.txt" target="_blank">INSTALL.txt</a></li>
<li><a rel="nofollow" target="_blank" href="http://configserver.net/free/cmc/changelog.txt" target="_blank">CHANGELOG.txt</a></li>
<li><a rel="nofollow" target="_blank" href="http://configserver.net/free/cmc/license.txt" target="_blank">license.txt</a></li>
</ul>
<p>source: http://configserver.net/cp/cmc.html</p>
<div class="shr-publisher-582"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/web-server/apache/configserver-modsecurity-control.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MySQL Proxy On CentOS 5 (FINAL) x86_64</title>
		<link>http://thegioinguonmo.com/os/linux/installing-mysql-proxy-on-centos-5-final-x86_64.html</link>
		<comments>http://thegioinguonmo.com/os/linux/installing-mysql-proxy-on-centos-5-final-x86_64.html#comments</comments>
		<pubDate>Thu, 16 May 2013 21:39:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=20</guid>
		<description><![CDATA[This tutorial explains how you can install MySQL Proxy on a CentOS 5 (x86_64) system. MySQL Proxy is a simple program that sits between your client and MySQL server(s) that can monitor, analyze or transform their communication. Its flexibility allows for unlimited uses; common ones include: load balancing; failover; query analysis; query filtering and modification; [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This tutorial explains how you can install <a rel="nofollow" target="_blank" href="http://forge.mysql.com/wiki/MySQL_Proxy" target="_blank">MySQL Proxy</a> on a CentOS 5 (x86_64) system. MySQL Proxy is a simple program that sits between your client and MySQL server(s) that can monitor, analyze or transform their communication. Its flexibility allows for unlimited uses; common ones include: load balancing; failover; query analysis; query filtering and modification; and many more.</p>
<p>On a fresh minium Centos 5 final x86_64 install:</p>
<p>yum install gcc.x86_64 libevent.x86_64 libevent-devel.x86_64 readline.x86_64 readline-devel.x86_64 ncurses.x86_64 ncurses-devel.x86_64 glib2.x86_64 glib2-devel.x86_64</p>
<p>cd /usr/local/src/</p>
<p>wget http://www.lua.org/ftp/lua-5.1.3.tar.gz<br />
tar zxvf lua-5.1.3.tar.gz</p>
<p>cd lua-5.1.3<br />
make linux<br />
make install</p>
<p>wget http://dev.mysql.com/get/Downloads/MySQL-Cluster-6.2/mysql-5.1.23-ndb-6.2.15-linux-x86_64-glibc23.tar.gz/\<br />
from/http://www.mirrorservice.org/sites/ftp.mysql.com/</p>
<p>tar xzvf mysql-5.1.23-ndb-6.2.15-linux-x86_64-glibc23.tar.gz<br />
ln -s mysql-5.1.23-ndb-6.2.15-linux-x86_64-glibc23 mysql</p>
<p>PATH=$PATH:/usr/local/mysql/bin<br />
export PATH</p>
<p>Edit your .profile to make this permanent:</p>
<pre># .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:/usr/local/mysql/bin:$HOME/bin

export PATH
unset USERNAME</pre>
<p>wget http://dev.mysql.com/get/Downloads/MySQL-Proxy/mysql-proxy-0.6.1.tar.gz/from/http://www.mirrorservice.org/sites/ftp.mysql.com/</p>
<p>tar zxvf mysql-proxy-0.6.1.tar.gz<br />
cd mysql-proxy-0.6.1</p>
<p>./configure  LDFLAGS=&#8221;-lm -ldl&#8221; LUA_CFLAGS=&#8221;-I/usr/local/include/&#8221; LUA_LIBS=/usr/local/lib/liblua.a</p>
<p>make<br />
make install</p>
<p>Let&#8217;s create a sample LUA script so you can see some logs.</p>
<p>mkdir /var/log/mysql-proxy/<br />
mkdir -p /usr/local/mysql/lua-scripts/</p>
<p>vi /usr/local/mysql/lua-scripts/simple-log.lua</p>
<p>(see: <a rel="nofollow" target="_blank" href="http://www.oreillynet.com/pub/a/databases/2007/07/12/getting-started-with-mysql-proxy.html?page=3" target="_blank">http://www.oreillynet.com/pub/a/databases/2007/07/12/getting-started-with-mysql-proxy.html?page=3</a></p>
<p>Script modified to get IP and to use  proxy.connection.server.thread_id.)</p>
<pre>local log_file = '/var/log/mysql-proxy/mysql.log'
local fh = io.open(log_file, "a+")

function read_query( packet )
 if string.byte(packet) == proxy.COM_QUERY then
   local query = string.sub(packet, 2)
   fh:write( string.format("%s %6d -- %s :IP %s :USER: %s\n",
   os.date('%Y-%m-%d %H:%M:%S'),
   proxy.connection.server.thread_id,
   query,
   proxy.connection.client.address,
   proxy.connection.client.username))
  fh:flush()
 end
end</pre>
<p>Now start up your proxy using the variable &#8211;proxy-backend-addresses to point the proxy at your servers.</p>
<p>/usr/local/sbin/mysql-proxy &#8211;proxy-lua-script=/usr/local/mysql/lua-scripts/simple-log.lua &#8211;proxy-backend-addresses=192.168.1.33:3306 &#8211;proxy-backend-addresses=192.168.1.34:3306 &#8211;daemon</p>
<p>192.168.1.33 and 192.168.1.34 are the MySQL nodes that the proxy will be connecting to.</p>
<p>Allow connections for the proxy through your firewall:</p>
<pre>### ALLOWED TO CONNECT TO MYSQL PROXY
###
### LOCAL ADMINS
-A INPUT -s SRC-IP -d DST-IP -p tcp -m state --state NEW -m tcp --dport 4040 -j ACCEPT</pre>
<p>Where  DST-IP is my proxy server and  SRC-IP is my local box (client machine).</p>
<p>Now from your local box (not the mysql-proxy server) try and connect to the backend databases through the proxy ( user with relevent permissions must exist in the db).</p>
<p>mysql -u dba_admin -p -h PROXY-SERVER -P 4040</p>
<p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 16 to server version: 5.1.23-ndb-6.2.15</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt; show databases;</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| Database           |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| information_schema |<br />
| Imap_Forms         |<br />
| mysql              |<br />
| test               |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
4 rows in set (0.01 sec)</p>
<p>mysql&gt; quit</p>
<p>Bye</p>
<p>N.B. The proxy uses the port 4040 instead of 3306.</p>
<p>Test the mysql-proxy admin interface from the mysql-proxy server:</p>
<p>mysql -u root -p -h 127.0.0.1 -P 4041</p>
<p>Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1<br />
Server version: 5.1.20-agent MySQL Enterprise Agent</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt; select * from proxy_connections;</p>
<p>+&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;-+&#8212;&#8212;+<br />
| id   | type   | state | db   |<br />
+&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;-+&#8212;&#8212;+<br />
|    0 | server | 0     |      |<br />
|    1 | proxy  | 0     |      |<br />
|    2 | server | 10    |      |<br />
+&#8212;&#8212;+&#8212;&#8212;&#8211;+&#8212;&#8212;-+&#8212;&#8212;+<br />
3 rows in set (0.00 sec)</p>
<p>mysql&gt;quit</p>
<div class="shr-publisher-20"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/installing-mysql-proxy-on-centos-5-final-x86_64.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cpanel File Manager Zip Compress failling</title>
		<link>http://thegioinguonmo.com/hosting-controller/cpanel-control-panel/cpanel-file-manager-zip-compress-failling.html</link>
		<comments>http://thegioinguonmo.com/hosting-controller/cpanel-control-panel/cpanel-file-manager-zip-compress-failling.html#comments</comments>
		<pubDate>Thu, 16 May 2013 09:40:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[glob]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[lib]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=617</guid>
		<description><![CDATA[Cannot compressing files into zip format using the built in cPanel compressor: (internal death while parsing ./frontend/x3/filemanager/live_fileop.xml) Tue Aug 11 19:04:14 2009 [30234] error: open3: exec of zip -r /home/fxhost/public_html/player/hsplaylist.xspf.zip hsplaylist.xspf index.html mhsplaylist.xspf failed at /usr/local/cpanel/Cpanel/SafeRun/Errors.pm line 21 Carp::croak(‘open3: exec of zip -r /home/fxhost/public_html/player/hsplayli…’) called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 230 IPC::Open3::_open3(‘open3′, ‘Cpanel::SafeRun::Errors’, ‘&#60;&#38;RNULL’, ‘GLOB(0xb0e4500)’, ‘GLOB(0xb0e4500)’, ‘zip’, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Cannot compressing files into zip format using the built in cPanel compressor:</p>
<blockquote><p>(internal death while parsing ./frontend/x3/filemanager/live_fileop.xml) Tue Aug 11 19:04:14 2009 [30234] error: open3: exec of zip -r /home/fxhost/public_html/player/hsplaylist.xspf.zip hsplaylist.xspf index.html mhsplaylist.xspf failed at /usr/local/cpanel/Cpanel/SafeRun/Errors.pm line 21<br />
Carp::croak(‘open3: exec of zip -r /home/fxhost/public_html/player/hsplayli…’) called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 230<br />
IPC::Open3::_open3(‘open3′, ‘Cpanel::SafeRun::Errors’, ‘&lt;&amp;RNULL’, ‘GLOB(0xb0e4500)’, ‘GLOB(0xb0e4500)’, ‘zip’, ‘-r’, ‘/home/fxhost/public_html/player/hsplaylist.xspf.zip’, …) called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 291<br />
IPC::Open3::open3(‘&lt;&amp;RNULL’, ‘GLOB(0xb0e4500)’, ‘GLOB(0xb0e4500)’, ‘zip’, ‘-r’, ‘/home/fxhost/public_html/player/hsplaylist.xspf.zip’, ‘hsplaylist.xspf’, ‘index.html’, …) called at /usr/local/cpanel/Cpanel/SafeRun/Errors.pm line 21<br />
Cpanel::SafeRun::Errors::saferunallerrors(‘zip’, ‘-r’, ‘/home/fxhost/public_html/player/hsplaylist.xspf.zip’, ‘hsplaylist.xspf’, ‘index.html’, ‘mhsplaylist.xspf’) called at /usr/local/cpanel/Cpanel/Fileman.pm line 2251<br />
Cpanel::Fileman::__ANON__(‘zip’, ‘-r’, ‘/home/fxhost/public_html/player/hsplaylist.xspf.zip’, ‘hsplaylist.xspf’, ‘index.html’, ‘mhsplaylist.xspf’) called at /usr/local/cpanel/Cpanel/Fileman.pm line 2286<br />
Cpanel::Fileman::_handle_compress(‘return’, ‘ARRAY(0×9471054)’, ‘/home/fxhost/public_html/player/hsplaylist.xspf.zip’, ‘zip’) called at /usr/local/cpanel/Cpanel/Fileman.pm line 2875<br />
Cpanel::Fileman::api2_fileop() called at (eval 9) line 1<br />
eval ‘$dataref = [Cpanel::Fileman::api2_fileop(%CFG)];’ called at cpanel.pl line 4960<br />
main::api2_exec(‘Fileman’, ‘fileop’, ‘HASH(0xb0e4488)’, ‘HASH(0x941a270)’) called at cpanel.pl line 1476<br />
main::cpexectag(</p></blockquote>
<p>This suggests installing it with</p>
<p>Code: <code>yum install zip</code></p>
<p>If the zip is exit<br />
Another suggests</p>
<p>Code:<br />
<code>chmod 755 /bin/{tar,gtar,gunzip,gzip,zcat}<br />
chmod 755 /usr/bin/{zip,unzip,unrar}</code></p>
<div class="shr-publisher-617"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/hosting-controller/cpanel-control-panel/cpanel-file-manager-zip-compress-failling.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Server Rsync Backup Replication Shell Script</title>
		<link>http://thegioinguonmo.com/programing/shell-script/remote-server-rsync-backup-replication-shell-script.html</link>
		<comments>http://thegioinguonmo.com/programing/shell-script/remote-server-rsync-backup-replication-shell-script.html#comments</comments>
		<pubDate>Wed, 15 May 2013 21:40:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[DST]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=365</guid>
		<description><![CDATA[You need to setup password less login using ssh keys; refer to following tutorials: + Howto Linux / UNIX setup SSH with DSA public key authentication (password less login) + SSH Public key based authentication – Howto #!/bin/bash # Remote Server Rsync backup Replication Shell Script # ————————————————————————- # Copyright (c) 2005 nixCraft project # [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>You need to setup password less login using ssh keys; refer to following tutorials:<br />
+ Howto Linux / UNIX setup SSH with DSA public key authentication (password less login)<br />
+ SSH Public key based authentication – Howto</p>
<p>    #!/bin/bash<br />
    # Remote Server Rsync backup Replication Shell Script<br />
    # ————————————————————————-<br />
    # Copyright (c) 2005 nixCraft project<br />
    # This script is licensed under GNU GPL version 2.0 or above<br />
    # ————————————————————————-<br />
    # This script is part of nixCraft shell script collection (NSSC)<br />
    # Visit http://bash.cyberciti.biz/ for more information.<br />
    # ————————————————————————-<br />
    # Local dir location<br />
    LOCALBAKPOINT=/disk3<br />
    LOCALBAKDIR=/remote/home/httpd/<br />
    # remote ssh server<br />
    # user<br />
    SSHUER=brootbeer</p>
<p>    # server IP / host<br />
    SSHSERVER=10.10.11.12</p>
<p>    #remote dir to backup<br />
    SSHBACKUPROOT=/disk2.backup/hot/</p>
<p>    rsync –exclude ‘*access.log*’ –exclude ‘*error.log*’ -avz -e ‘ssh ‘ ${SSHUER}@${SSHSERVER}:${SSHBACKUPROOT} ${LOCALBAKPOINT}${LOCALBAKDIR}</p>
<p>    # log if backup failed or not to /var/log/messages file<br />
    [ $? -eq 0 ] &#038;&#038; logger ‘RSYNC BACKUP : Done’ || logger ‘RSYNC BACKUP : FAILED!’</p>
<p>    # Replicate backup to /disk1 and /disk2<br />
    # You can also use format user@host:/path<br />
    # refer to rsync man page<br />
    SRC=${LOCALBAKPOINT}${LOCALBAKDIR}<br />
    DST=”/disk1/remote /disk2/remote”<br />
    for d in $DST<br />
    do<br />
    [ ! -d $d ] &#038;&#038; mkdir -p $d || :<br />
    rsync -avr $SRC $d<br />
    done </p>
<div class="shr-publisher-365"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/programing/shell-script/remote-server-rsync-backup-replication-shell-script.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating banner for ssh server</title>
		<link>http://thegioinguonmo.com/os/linux/creating-banner-for-ssh-server.html</link>
		<comments>http://thegioinguonmo.com/os/linux/creating-banner-for-ssh-server.html#comments</comments>
		<pubDate>Wed, 15 May 2013 09:40:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[Insert]]></category>
		<category><![CDATA[line banner]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=718</guid>
		<description><![CDATA[A banner for ssh server is a few phrase that will come out the time you want to access a server through ssh. By default, this feature is turned off. To turned it on: Login as &#8216;root&#8217; Create your banner file first. In this example, i will create banner file named /home/banner # vi /home/banner [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>A banner for ssh server is a few phrase that will come out the time you want to access a server through ssh. By default, this feature is turned off. To turned it on:</p>
<ol>
<li>Login as &#8216;root&#8217;</li>
<li>Create your banner file first. In this example, i will create banner file named /home/banner</li>
<ul>
<li># vi /home/banner</li>
</ul>
<ul>
<li>Insert your banner message to the file. I will insert &#8216;Welcome to my pc&#8217;</li>
</ul>
<li>After you have finish with the banner file, open /etc/sshd_config</li>
<ul>
<li># vi /etc/sshd_config</li>
<li>Uncomment or add the following line</li>
<ul>
<li>Banner /home/banner</li>
</ul>
</ul>
<li>Restart ssh server</li>
<ul>
<li># /etc/init.d/sshd restart</li>
</ul>
<li>When you login, this will be displayed</li>
<ul>
<li># ssh pingu@10.20.20.171<br />
Welcome to my pc<br />
pingu@10.20.20.171&#8242;s password:</li>
</ul>
</ol>
<div class="shr-publisher-718"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/creating-banner-for-ssh-server.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Micro-Updates in Parallels Plesk Panel 9.x, 10.x</title>
		<link>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/microupdates-parallels-plesk-panel-9x-10x.html</link>
		<comments>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/microupdates-parallels-plesk-panel-9x-10x.html#comments</comments>
		<pubDate>Tue, 14 May 2013 21:40:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Micro-Updates]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[Parallels]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[plesk control panel]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2254</guid>
		<description><![CDATA[There are two ways to install micro-updates for Parallels Plesk Panel. Using the Command Line Interface: #$PRODUCT_ROOT_D/admin/sbin/autoinstaller Note: The “$PRODUCT_ROOT_D” variable in the command should be replaced with its value according to Plesk variables. The exact value of path variables can be known from /etc/psa/psa.conf file on Parallels Plesk Panel server. Or use the following [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>There are two ways to install micro-updates for Parallels Plesk Panel.</p>
<p>Using the Command Line Interface:</p>
<div>
<div>#$PRODUCT_ROOT_D/admin/sbin/autoinstaller</div>
</div>
<p><strong>Note</strong>: The “$PRODUCT_ROOT_D” variable in the command should be replaced with its value according to Plesk variables.</p>
<p>The exact value of path variables can be known from /etc/psa/psa.conf file on Parallels Plesk Panel server.</p>
<p>Or use the following parameters:</p>
<div>
<div>#$PRODUCT_ROOT_D/admin/sbin/autoinstaller –select-product-id plesk –select-release-current –reinstall-patch –install-component base</div>
</div>
<p><strong>Note</strong>: The “$PRODUCT_ROOT_D” variable in the command should be replaced with its value.</p>
<p>The exact value of path variables can be known from /etc/psa/psa.conf file on Parallels Plesk Panel server.</p>
<p>Reference: <a rel="nofollow" target="_blank" href="http://parallels.com/">http://parallels.com</a></p>
<div class="shr-publisher-2254"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/microupdates-parallels-plesk-panel-9x-10x.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring Urchin Web Analytics Software</title>
		<link>http://thegioinguonmo.com/os/linux/exploring-urchin-web-analytics-software.html</link>
		<comments>http://thegioinguonmo.com/os/linux/exploring-urchin-web-analytics-software.html#comments</comments>
		<pubDate>Tue, 14 May 2013 09:40:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1906</guid>
		<description><![CDATA[By default Urchin 6 is installed at /usr/local/urchin directory. You can change directory by typing the following command: # cd /usr/local/urchin Use urchinctl to control Urchin web server / scheduler You will find urchinctl inside bin directory. It is used to control Urchin web server listing on TCP port 9999. To start the Urchin webserver, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>By default Urchin 6 is installed at /usr/local/urchin directory. You can change directory by typing the following command:<br />
<strong># cd /usr/local/urchin</strong></p>
<h2>Use urchinctl to control Urchin web server / scheduler</h2>
<p>You will find urchinctl inside bin directory. It is used to control Urchin web server listing on TCP port 9999.</p>
<h3>To start the Urchin webserver, enter:</h3>
<p><code># /usr/local/urchin/bin/urchinctl start</code></p>
<h3>To restart the Urchin webserver, enter:</h3>
<p><code># /usr/local/urchin/bin/urchinctl restart</code><br />
Above command is useful if you change Urchin port or other settings.</p>
<h3>To view the Urchin webserver and scheduler status , enter:</h3>
<p><code># /usr/local/urchin/bin/urchinctl status</code><br />
Sample output:</p>
<pre>Urchin webserver is running
Urchin MASTER scheduler is running
Urchin SLAVE scheduler is running</pre>
<h3>To stop the Urchin webserver, enter:</h3>
<p><code># /usr/local/urchin/bin/urchinctl stop</code></p>
<h2>/usr/local/urchin/util/utm directory</h2>
<p>You need to use urchin.js and __utm.gif file to track the statistics. These files are also known as the UTM Sensor, which is nothing but a small amount of JavaScript code that accomplishes various tracking methods.</p>
<h2>Automatically start / stop Urchin after RHEL reboot</h2>
<p>You need to copy /usr/local/urchin/util/urchin_daemons file to /etc/init.d/ directory:<br />
<code># cp /usr/local/urchin/util/urchin_daemons /etc/init.d/urchin</code><br />
Set permissions<br />
<code># chmod +x /etc/init.d/urchin</code><br />
Use chkconfig tool, which provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by relieving system administrators of the task of directly manipulating the numerous symbolic links in those directories.<br />
<code># chkconfig urchin on</code></p>
<p>Now you can start, stop or restart Urchin services automatically.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/exploring-urchin-web-analytics-software.html" title="website analytics cd software">website analytics cd software</a> (1)</li></ul><div class="shr-publisher-1906"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/exploring-urchin-web-analytics-software.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2013-05-19 19:09:30 -->