<?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>CK Web Logs</title>
	<atom:link href="http://www.cklog.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cklog.net</link>
	<description>Internet &#38; Technology</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:30:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Centos: Synchronizing Time with NTP</title>
		<link>http://www.cklog.net/centos-synchronizing-time-with-ntp/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=centos-synchronizing-time-with-ntp</link>
		<comments>http://www.cklog.net/centos-synchronizing-time-with-ntp/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 19:54:57 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos time]]></category>
		<category><![CDATA[configure timezone]]></category>
		<category><![CDATA[linux time]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[setting timezone ntp]]></category>
		<category><![CDATA[synchronizing time]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=150</guid>
		<description><![CDATA[Setting the timezone on CentOS&#160; is easy. See what the current timezone is: date &#160;Output like this : Wed Jan&#160;5 11:53:19 PDT 2012 Synchronizing time with NTP server yum install ntp -y \cp -f /usr/share/zoneinfo/Europe/Istanbul /etc/localtime ntpdate -v -b in.pool.ntp.org &#160;]]></description>
			<content:encoded><![CDATA[<p>Setting the timezone on CentOS&nbsp; is easy.</p>
<p>See what the current timezone is:</p>

<div class="wp_codebox"><table><tr id="p1503"><td class="code" id="p150code3"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">date</span></pre></td></tr></table></div>

<p>&nbsp;Output like this :</p>
<p>Wed Jan&nbsp;5 11:53:19 PDT 2012</p>
<p><span style="color: rgb(0, 0, 0);"><span id="more-150"></span></span>Synchronizing time with NTP server</p>

<div class="wp_codebox"><table><tr id="p1504"><td class="code" id="p150code4"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> ntp <span style="color: #660033;">-y</span>
\<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo<span style="color: #000000; font-weight: bold;">/</span>Europe<span style="color: #000000; font-weight: bold;">/</span>Istanbul <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>localtime
ntpdate <span style="color: #660033;">-v</span> <span style="color: #660033;">-b</span> in.pool.ntp.org</pre></td></tr></table></div>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/centos-synchronizing-time-with-ntp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BackupPC fileListReceive failed</title>
		<link>http://www.cklog.net/backuppc-filelistreceive-failed/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=backuppc-filelistreceive-failed</link>
		<comments>http://www.cklog.net/backuppc-filelistreceive-failed/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 17:27:27 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[backupc]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[fileListReceive]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=139</guid>
		<description><![CDATA[BackupPC fileListReceive failed on 2 servers] &#160; I just added 2 servers to our backup pool 1. Direct Admin 2. Cpanel Both are getting the following error when trying to&#160;back them up: Fatal error (bad version): stdin: is not a tty fileListReceive() failed Done: 0 files, 0 bytes Got fatal error during xfer (fileListReceive failed) [...]]]></description>
			<content:encoded><![CDATA[<p>BackupPC fileListReceive failed on 2 servers]</p>
<p>&nbsp;</p>
<p class="MsoNormal">I just added 2 servers to our backup pool</p>
<p class="MsoNormal">1. Direct Admin</p>
<p class="MsoNormal">2. Cpanel</p>
<p class="MsoNormal">Both are getting the following error when trying to&nbsp;back them up: </p>
<p>Fatal error (bad version): stdin: is not a tty <br />
fileListReceive() failed <br />
Done: 0 files, 0 bytes <br />
Got fatal error during xfer (fileListReceive failed) <br />
Backup aborted by user signal</p>
<p><span id="more-139"></span></p>
<p><strong>Solution:</strong></p>
<p class="MsoNormal">I found that I had &quot;mesg y&quot; on /etc/bashrc <br />
As soon as I comented it the backups start working. 
</p>

<div class="wp_codebox"><table><tr id="p1396"><td class="code" id="p139code6"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#mesg y</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p class="MsoNormal">
After that I&#8217;ve placed this on the .bashrc file problem is solved.<br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/backuppc-filelistreceive-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast Money Or Coins In Just 1 Hour</title>
		<link>http://www.cklog.net/fast-money-or-coins-in-just-1-hour/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=fast-money-or-coins-in-just-1-hour</link>
		<comments>http://www.cklog.net/fast-money-or-coins-in-just-1-hour/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 19:15:25 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Car Town]]></category>
		<category><![CDATA[Z Game Cheats]]></category>
		<category><![CDATA[car town]]></category>
		<category><![CDATA[facebook games]]></category>
		<category><![CDATA[games cheat]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=156</guid>
		<description><![CDATA[Put at your lifts on the neon you get 1,011 in 1 hour and get 27xp and it only costs 800 coins you still get money!]]></description>
			<content:encoded><![CDATA[<p>Put at your lifts on the neon you get 1,011 in 1 hour  and get 27xp and it only costs 800 coins you still get money!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/fast-money-or-coins-in-just-1-hour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unlimited Resources</title>
		<link>http://www.cklog.net/backyard-monsters-unlimited-resources/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=backyard-monsters-unlimited-resources</link>
		<comments>http://www.cklog.net/backyard-monsters-unlimited-resources/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 10:45:54 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Backyard Monsters]]></category>
		<category><![CDATA[Z Game Cheats]]></category>
		<category><![CDATA[achievements]]></category>
		<category><![CDATA[Backyard Monsters Facebook cheats]]></category>
		<category><![CDATA[cheats]]></category>
		<category><![CDATA[FAQs]]></category>
		<category><![CDATA[hints]]></category>
		<category><![CDATA[to unlock everything]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[trophies]]></category>
		<category><![CDATA[unlockables]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=159</guid>
		<description><![CDATA[NOTE: Using Cheatengine can get your account banned from the game. First, download cheat engine 5. 6 . 1, in cheatengine.org. then run it. And open your backyard monster, then the cheat engine you see a computer there, click it and choose what browser did you use. (google chrome, internet explorer, firefox etc. ) there [...]]]></description>
			<content:encoded><![CDATA[<p><strong>NOTE: </strong>Using Cheatengine can get your account banned from the game.</p>
<p>First, download cheat engine 5. 6 . 1, in cheatengine.org.  then run it. <br />
And open your backyard monster, then the cheat engine you see a computer there, click it and choose what browser did you use.  <br />
(google chrome, internet explorer, firefox etc. ) there are several  similar browser, if the one you click is not working try another. </p>
<p><span id="more-159"></span>Then click the &quot;4 bytes&quot; and find &quot;arrays of bytes&quot; and click it check  the box of the &quot;hex&quot; and &quot;also scan read-only memory&quot; then type to the  hex    OF 8F 19 01 00 00 8B 7D A8 8B 5D 08 8B B7 24 01 and click the first scan. <br />
There must be an address in the side if  there&#8217;s nothing, (if it doesn&#8217;t work click on the  other similar of what you click. )  left click the address and click  &quot;disassemble this memory region&quot; left click the address with the blue  highlight and click &quot;replace with code that does nothing&quot; and if you see  jg change g to e and it will become je, and go back to your backyard  and the resources will have a exclamation point means full, and when you  collect it in just a few seconds and it will be full again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/backyard-monsters-unlimited-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unlock PDF Files Online For Free</title>
		<link>http://www.cklog.net/unlock-pdf-files-online-for-free/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=unlock-pdf-files-online-for-free</link>
		<comments>http://www.cklog.net/unlock-pdf-files-online-for-free/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 18:35:43 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[restrictions]]></category>
		<category><![CDATA[unlock pdf]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=128</guid>
		<description><![CDATA[Remove restrictions from PDF files online it&#8217;s easy and free. PDF files can have restrictions that prevent you from for example copying text from them or editing, printing or merging them. PDFUnlock! can remove these restrictions www.pdfunlock.com]]></description>
			<content:encoded><![CDATA[<p>Remove restrictions from PDF files online it&#8217;s easy and free.<br />
PDF files can have restrictions that prevent you from for example copying text from them or editing, printing or merging them.<span id="more-128"></span></p>
<p>PDFUnlock! can remove these restrictions</p>
<p><a target="_blank" href="http://www.pdfunlock.com/">www.pdfunlock.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/unlock-pdf-files-online-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLV doesnt work in Firefox with Hotlink Protection</title>
		<link>http://www.cklog.net/flv-doent-work-in-firefox-with-hotlink-protection/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flv-doent-work-in-firefox-with-hotlink-protection</link>
		<comments>http://www.cklog.net/flv-doent-work-in-firefox-with-hotlink-protection/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 21:25:23 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[WHM]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[flash video]]></category>
		<category><![CDATA[flv player]]></category>
		<category><![CDATA[flv problem]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[protection]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=119</guid>
		<description><![CDATA[I cannot get my flv files to load in Firefox but&#160;they work perfect in IE&#8230; My system running apache.. Finally, I found out that the problem was related with the Hotlink Protection implemented by some hosts through the .htaccess file&#160;and the fact that Flash does not send the referrer and Firefox does not add it [...]]]></description>
			<content:encoded><![CDATA[<p>I cannot get my flv files to load in Firefox but&nbsp;they work perfect in IE&#8230; My system running apache..<br />
Finally, I found out that the problem was related with the Hotlink Protection implemented by some hosts through the .htaccess file&nbsp;and the fact that Flash does not send the referrer and Firefox does not add it to the request.<br />
After some research I found this workaround adding some lines in the .htaccess file:<span id="more-119"></span></p>

<div class="wp_codebox"><table><tr id="p1198"><td class="code" id="p119code8"><pre class="bash" style="font-family:monospace;">&nbsp;
RewriteEngine on
RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>HTTP_REFERER<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">!</span>^$
RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>HTTP_REFERER<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">!</span>^http<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>?:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>www\.<span style="color: #7a0874; font-weight: bold;">&#41;</span>?yoursite.com <span style="color: #7a0874; font-weight: bold;">&#91;</span>NC<span style="color: #7a0874; font-weight: bold;">&#93;</span>
RewriteRule \.<span style="color: #7a0874; font-weight: bold;">&#40;</span>jpg<span style="color: #000000; font-weight: bold;">|</span>jpeg<span style="color: #000000; font-weight: bold;">|</span>png<span style="color: #000000; font-weight: bold;">|</span>gif<span style="color: #000000; font-weight: bold;">|</span>flv<span style="color: #7a0874; font-weight: bold;">&#41;</span>$ - <span style="color: #7a0874; font-weight: bold;">&#91;</span>NC,F,L<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div>

<p>This solved my problem..</p>
<p>
For more information:</p>
<p><a target="_blank" href="http://www.htaccesstools.com/hotlink-protection/">http://www.htaccesstools.com/hotlink-protection/</a><br />
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=452864">https://bugzilla.mozilla.org/show_bug.cgi?id=452864</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/flv-doent-work-in-firefox-with-hotlink-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Free Open Source Analytics</title>
		<link>http://www.cklog.net/best-free-open-source-analytics/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=best-free-open-source-analytics</link>
		<comments>http://www.cklog.net/best-free-open-source-analytics/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 16:26:38 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=115</guid>
		<description><![CDATA[Piwik is a downloadable, open source (GPL licensed) real time web analytics software program. It provides you with detailed reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages&#8230; and so much more. Piwik aims to be an open source alternative to Google Analytics. General features [...]]]></description>
			<content:encoded><![CDATA[<p>Piwik is a downloadable, open source (GPL licensed) real time web analytics software program. It provides you with detailed reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages&hellip; and so much more.</p>
<p>Piwik aims to be an open source alternative to Google Analytics.<span id="more-115"></span></p>
<p><strong><br />
General features</strong></p>
<ul>
<li>Instant deployment: The guided and intuitive installation adds a simple Javascript code to the web site pages and immediately begins gathering visitor statistics.</li>
<li>A clean and user-friendly interface to present data and to aid in data analysis.</li>
<li>Clear and concise graphics presenting important information in an easy-to-understand format.</li>
<li>Free: phpMyVisites is completely free. A logo may be added if desired.</li>
<li>Security: Because security is a critical software element, phpMyVisites has maximum protection against intrusions and external attacks.</li>
<li>Multiple Web Sites: Multiple web sites may be added. Each site will have precise and distinct statistics.</li>
<li>Multi Users: Add an infinite number of users and manage permissions for each user (viewing and/or administration rights for certain sites).</li>
<li>International: phpMyVisites is available in <a target="_blank" href="http://piwik.org/translations/">more than 30 languages</a>.</li>
<li>Open source, Free: The source code is readily available and you are welcome to participate in the project (create new modules, personalize the interface, etc.).</li>
</ul>
<p>
<strong><br />
Web analytic</strong></p>
<ul>
<li>Precise visitor statistics over a period of time (day/week/month/year).</li>
<li>Visitor Frequency: new visitors, regular (known) visitors, and how often visitors view the web site.</li>
<li>Management of web site statistics and all file types (PDF, Image, etc.).</li>
<li>Web site page classification available (by groups, by subgroups, etc.).</li>
<li>Visitor Analysis: Statistics for pages where visitors leave the web site and for pages where the visitors enter the web site.</li>
<li>Geographical Statistics: Classification by continent/country (interactive world map).</li>
<li>Technical Configuration Statistics: Web browsers, resolution, managed plug-in, etc.).</li>
<li>Complete and clear statistics about web site discovery: How do visitors come to the web site?</li>
<li>Five Clearly Defined Web Site Discovery Tools: Search Engines, Web Sites, Partner Sites, Newsletters and Direct Access</li>
<li>Able to detect more than 300 internationally-used search engines and keyword associations.</li>
<li>Define web sites as partners and add an unlimited number of newsletters.</li>
<li>Multiple Web Site Overview, a summary of important web site statistics for all managed web sites.</li>
<li>Learn about visitor interests through precise criteria such as: How interested are the visitors (number of viewed pages, length of visit, etc.).? What keyword(s) did they type in the search engine? What&#8217;s their resolution (is your web site discouraging visitors from lower resolution systems)? Which web site brought the visitor to your web site? Etc.</li>
<li>Receive web site statistics everyday by e-mail, by RSS feed, etc.</li>
</ul>
<p><span style="font-size: large"><strong><font size="2"><br />
Give it a try</font></strong></span></p>
<ul>
<li>you can try the <strong><a target="_blank" href="http://piwik.org/demo/"><font color="#136f8b">online demo</font></a></strong> that shows you the latest Piwik release. Please note that Piwik is a constant work in progress and some user interface parts are being updated as we speak!</li>
</ul>
<ul>
<li>to install Piwik, <strong><a target="_blank" href="http://piwik.org/latest.zip"><font color="#136f8b">download the latest release</font></a></strong>, upload it on your webserver (you need at least <strong>PHP 5.1</strong> and a <strong>Mysql</strong> database), and open your browser: the installation process is automatic and takes less than 5 minutes.</li>
</ul>
<p>Source: piwik.org</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/best-free-open-source-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BIND: Stop Recursion DNS</title>
		<link>http://www.cklog.net/bind-stop-recursion-dns/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=bind-stop-recursion-dns</link>
		<comments>http://www.cklog.net/bind-stop-recursion-dns/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 15:50:37 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[recursive query]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=108</guid>
		<description><![CDATA[A DNS query may be either a recursive query or a non-recursive query. If recursion is set to &#8216;yes&#8217; (the default) the server will always provide recursive query behaviour if requested by the resolver (client). If set to &#8216;no&#8217; the server will only provide iterative query behaviour. If the answer to the query already exists [...]]]></description>
			<content:encoded><![CDATA[<p>A DNS query may be either a recursive query or a non-recursive query. If recursion is set to &#8216;yes&#8217; (the default) the server will always provide recursive query behaviour if requested by the resolver (client). If set to &#8216;no&#8217; the server will only provide iterative query behaviour. If the answer to the query already exists in the cache it will be returned irrespective of the value of this statement. This statement essentially controls caching behaviour in the server.<span id="more-108"></span></p>
<p>Open /etc/named.conf file&nbsp;than make sure following settings exists under options { .. } settings:</p>
<p><font style="background-color: #eeeeee">recursion no;</font></p>
<p>Save and close the file, restart named:</p>
<p><font style="background-color: #eeeeee">$ service named restart</font></p>
<p>Source: cyberciti.biz</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/bind-stop-recursion-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Push Email with Dovecot Mail Server</title>
		<link>http://www.cklog.net/push-email-with-dovecot-mail-server/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=push-email-with-dovecot-mail-server</link>
		<comments>http://www.cklog.net/push-email-with-dovecot-mail-server/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 13:28:53 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[WHM]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[push email]]></category>
		<category><![CDATA[whm]]></category>
		<category><![CDATA[z-push]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=76</guid>
		<description><![CDATA[I have been looking for push e-mail since i got my iphone. Just found sth for my test server and it works for me&#8230; I have a webserver running cPanel, Dovecot and suPHP.&#160;( centOS 5.4, WHM&#160;11.25 ) Steps: 1-&#160;You can download&#160;z-push from here. 2- Upload z-push to /usr/local/apache/htdocs 3- Change ownership to nobody because it [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking for push e-mail since i got my iphone. Just found sth for my test server and it works for me&#8230;</p>
<p>I have a webserver running cPanel, Dovecot and suPHP.&nbsp;( centOS 5.4, WHM&nbsp;11.25 )<span id="more-76"></span></p>
<p><strong>Steps:</strong></p>
<p>1-&nbsp;You can download&nbsp;z-push from <a target="_blank" modo="false" href="http://developer.berlios.de/project/showfiles.php?group_id=8963"><font color="#0010ce">here</font></a>.</p>
<p>2- Upload z-push to /usr/local/apache/htdocs</p>
<p>3- Change ownership to nobody because it fails if you leave it as root</p>
<p>4- If you are using suPHP than&nbsp;Modify index.php</p>
<p>Comment out <strong>$requestheaders = apache_request_headers();</strong> and replace it with</p>
<p>
<div class="wp_codebox"><table><tr id="p7612"><td class="code" id="p76code12"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">function</span> getHeaders<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$k</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$v</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$k</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;HTTP_&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$k</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$k</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$k</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/ucwords"><span style="color: #990000;">ucwords</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$k</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$headers</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$k</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$v</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$headers</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$requestheaders</span> <span style="color: #339933;">=</span> getHeaders<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</p>
<p>5- Modify config.php</p>
<p>Change <strong>$BACKEND_PROVIDER = &ldquo;BackendICS&rdquo;;</strong> to <strong>$BACKEND_PROVIDER = &ldquo;BackendIMAP&rdquo;;</strong></p>
<p>6- Add the alias to httpd. conf as explained in the config file, but use /usr/local/apache/htdocs instead of /var/ www</p>
<p>7- Restart Apache</p>
<p>8- Go to your iPhone and set up your e-mail account as a Microsoft Exchange account. (Be sure to sync &ldquo;All messages&rdquo; or else you&rsquo;ll be deleting things twice.)</p>
<p>9-&nbsp;Thats All.&nbsp;You now have push email on your iPhone..</p>
<p>10- You may need to modify backend/diffbackend.php to make it delete properly.</p>
<p>Find the following code:</p>
<p>
<div class="wp_codebox"><table><tr id="p7613"><td class="code" id="p76code13"><pre class="php" style="font-family:monospace;">        <span style="color: #000000; font-weight: bold;">function</span> ImportMessageMove<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$newfolder</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</p>
<p>Change to:</p>
<p>
<div class="wp_codebox"><table><tr id="p7614"><td class="code" id="p76code14"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> ImportMessageMove<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$newfolder</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//do nothing if it is in a dummy folder</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_folderid <span style="color: #339933;">==</span> SYNC_FOLDER_TYPE_DUMMY<span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// See if there's a conflict</span>
<span style="color: #000088;">$conflict</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isConflict</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;move&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_folderid<span style="color: #339933;">,</span> <span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Update client state</span>
<span style="color: #000088;">$change</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$change</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$id</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$change</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;newfolder&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$newfolder</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">updateState</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;move&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$change</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</p>
<p>P.S. I am not the author of these information. These were all found in the <a target="_blank" modo="false" href="http://z-push.sourceforge.net/phpbb/"><font color="#0010ce">z-push forums</font></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/push-email-with-dovecot-mail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHM &#8211; CentOS Firewall Installation</title>
		<link>http://www.cklog.net/whm-centos-firewall-setup/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=whm-centos-firewall-setup</link>
		<comments>http://www.cklog.net/whm-centos-firewall-setup/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 12:54:56 +0000</pubDate>
		<dc:creator>ck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WHM]]></category>
		<category><![CDATA[apf]]></category>
		<category><![CDATA[bfd]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[lfd]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.cklog.net/?p=8</guid>
		<description><![CDATA[Installation of CSF&#160;( Config Server Firewall )&#160;&#160;&#160;is quite simple&#8230; Tested : CentOS 5.4 &#8211; WHM 11.25 rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh And than&#160;test whether you have the required iptables modules: perl /etc/csf/csftest.pl No problem&#160;if you can not run all the features, so long as the script doesn&#8217;t report [...]]]></description>
			<content:encoded><![CDATA[<p>Installation of <strong>CSF&nbsp;</strong>( Config Server Firewall )&nbsp;&nbsp;&nbsp;is quite simple&#8230;<br />
Tested : CentOS 5.4 &#8211; WHM 11.25<span id="more-8"></span></p>

<div class="wp_codebox"><table><tr id="p819"><td class="code" id="p8code19"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-fv</span> csf.tgz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.configserver.com<span style="color: #000000; font-weight: bold;">/</span>free<span style="color: #000000; font-weight: bold;">/</span>csf.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzf</span> csf.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> csf
<span style="color: #c20cb9; font-weight: bold;">sh</span> install.sh</pre></td></tr></table></div>

<p>And than&nbsp;test whether you have the required iptables modules:</p>

<div class="wp_codebox"><table><tr id="p820"><td class="code" id="p8code20"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>csf<span style="color: #000000; font-weight: bold;">/</span>csftest.pl</pre></td></tr></table></div>

<p>No problem&nbsp;if you can not run all the features, so long as the script doesn&#8217;t report any FATAL errors</p>
<p>You should not run any other iptables firewall configuration script. For example, if you previously used APF+BFD you can remove the combination ( which you will need to do if you have them installed otherwise they will conflict badly )</p>

<div class="wp_codebox"><table><tr id="p821"><td class="code" id="p8code21"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>csf<span style="color: #000000; font-weight: bold;">/</span>remove_apf_bfd.sh</pre></td></tr></table></div>

</p>
<p>&nbsp;</p>
<p>That&#8217;s ok. You can&nbsp;configure csf and lfd by edit the files directly in /etc/csf/*, or on cPanel servers use the WHM.</p>
<p>csf installation for cPanel is preconfigured to work on a cPanel server with all the standard cPanel ports open.</p>
<p>csf auto-configures your SSH port on installation where it&#8217;s running on a non-standard port.</p>
<p>
Removing csf and lfd is even more simple:</p>

<div class="wp_codebox"><table><tr id="p822"><td class="code" id="p8code22"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>csf
<span style="color: #c20cb9; font-weight: bold;">sh</span> uninstall.sh</pre></td></tr></table></div>

<p>&nbsp;<br />
Sample Pages:</p>
<ul>
<li><a target="_blank" href="http://www.configserver.com/cp/csfdemo/main.html">http://www.configserver.com/cp/csfdemo/main.html</a></li>
<li><a target="_blank" href="http://www.configserver.com/cp/csfdemo/config.html">http://www.configserver.com/cp/csfdemo/config.html</a></li>
<li><a target="_blank" href="http://www.configserver.com/cp/csfdemo/report.html">http://www.configserver.com/cp/csfdemo/report.html</a></li>
<li><a target="_blank" href="http://www.configserver.com/cp/csfdemo/status.html">http://www.configserver.com/cp/csfdemo/status.html</a></li>
</ul>
<p>&nbsp;</p>
<p>Source: www.configserver.com</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cklog.net/whm-centos-firewall-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

