<?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>Ecommy - your ecommerce support for your online business</title>
	<atom:link href="http://www.ecommy.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ecommy.com</link>
	<description>the path to your business success</description>
	<lastBuildDate>Fri, 16 Jul 2010 07:28:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Cpanel: change ssl port for apache</title>
		<link>http://www.ecommy.com/linux/cpanel-change-ssl-port-for-apache</link>
		<comments>http://www.ecommy.com/linux/cpanel-change-ssl-port-for-apache#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:28:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=546</guid>
		<description><![CDATA[The title it&#8217;s choosen to have cpanel word in it because changing ssl port from 443 to something else directly in http.conf will bring trouble when you create a new account for instance (cpanel rebuilds http.conf automatically) so keeping things short go to /var/cpanel and: sudo vi cpanel.config change apache_ssl_port=0.0.0.0:443 to apache_ssl_port=0.0.0.0:new_port then: sudo /usr/local/cpanel/whostmgr/bin/whostmgr2 [...]]]></description>
			<content:encoded><![CDATA[<p>The title it&#8217;s choosen to have cpanel word in it because changing ssl port from 443 to something else directly in http.conf will bring trouble when you create a new account for instance (cpanel rebuilds http.conf automatically)</p>
<p>so keeping things short go to /var/cpanel and:<br />
<code><br />
sudo vi cpanel.config<br />
</code><br />
change apache_ssl_port=0.0.0.0:443 to apache_ssl_port=0.0.0.0:new_port<br />
then:<br />
<code><br />
sudo /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/linux/cpanel-change-ssl-port-for-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>protect server from high load</title>
		<link>http://www.ecommy.com/linux/protect-server-from-high-load</link>
		<comments>http://www.ecommy.com/linux/protect-server-from-high-load#comments</comments>
		<pubDate>Fri, 25 Jun 2010 10:37:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=536</guid>
		<description><![CDATA[Bellow is a bash script that will save you a lot of energy and headaches when your server gets a high load. For instance if some of your clients / websites is going in an infinite loop because of a php programming bug it&#8217;s not worth waiting until your server crashes, you can use the [...]]]></description>
			<content:encoded><![CDATA[<p>Bellow is a bash script that will save you a lot of energy and headaches when your server gets a high load.  For instance if some of your clients / websites is going in an infinite loop because of a php programming bug it&#8217;s not worth waiting until your server crashes, you can use the script bellow to restart apache and all the php-cgi processes. (I use fastcgi on my server) </p>
<p>#!/bin/bash<br />
 MAXLOAD=&#8221;5&#8243;<br />
 L05=&#8221;$(uptime | gawk -F&#8221;load average: &#8221; &#8216;{ print $2 }&#8217; | gawk -F&#8221;, &#8221; &#8216;{ print $1 }&#8217;)&#8221;<br />
 if [ $(echo "$L05 > $MAXLOAD"|bc) -eq 1 ]<br />
 then<br />
 unlink /tmp/message.txt<br />
 MESAJ=&#8221;/tmp/message.txt&#8221;<br />
 echo &#8220;I have restarted apache and all php-cgi processes&#8221; >> $MESAJ<br />
 /bin/mail -s &#8220;load mare $L05&#8243; &#8220;mail@mymailserver.com&#8221; < $MESAJ<br />
 kill -9 `ps -ef |grep php-cgi |grep -v grep | awk &#8216;{print $2}&#8217;`<br />
 /etc/init.d/httpd restart<br />
 fi</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/linux/protect-server-from-high-load/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>quick onsite SEO techniques to avoid duplicate content</title>
		<link>http://www.ecommy.com/seo/quick-onsite-seo-techniques-to-avoid-duplicate-content</link>
		<comments>http://www.ecommy.com/seo/quick-onsite-seo-techniques-to-avoid-duplicate-content#comments</comments>
		<pubDate>Thu, 24 Jun 2010 18:21:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Seo]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=533</guid>
		<description><![CDATA[1. redirect index.php to your main page RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.yoursite.com/ [R=301,L] 2. use canonical tag properly, so for http://www.yoursite.com/my-list-of-products?orderby=name&#038;orderway=desc you should have: 3. redirect non-www to www version RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]]]></description>
			<content:encoded><![CDATA[<p>1. redirect index.php to your main page</p>
<p>RewriteBase /<br />
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/<br />
RewriteRule ^index\.php$ http://www.yoursite.com/ [R=301,L]</p>
<p>2. use canonical tag properly, so for http://www.yoursite.com/my-list-of-products?orderby=name&#038;orderway=desc you should have:</p>
<link rel="canonical" href="http://www.yoursite.com/my-list-of-products" />
<p>3. redirect non-www to www version<br />
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]<br />
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/seo/quick-onsite-seo-techniques-to-avoid-duplicate-content/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cakephp page title in view cake1.3</title>
		<link>http://www.ecommy.com/programming/cakephp/cakephp-page-title-in-view-cake1-3</link>
		<comments>http://www.ecommy.com/programming/cakephp/cakephp-page-title-in-view-cake1-3#comments</comments>
		<pubDate>Thu, 20 May 2010 19:06:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=528</guid>
		<description><![CDATA[In order to change page title in cakephp inside a view just use the code bellow $this->set('title_for_layout', 'my cakephp page title');]]></description>
			<content:encoded><![CDATA[<p>In order to change page title in cakephp inside a view just use the code bellow<br />
<code>$this->set('title_for_layout', 'my cakephp page title');</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/programming/cakephp/cakephp-page-title-in-view-cake1-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect all pages from an old subdomain to the new one</title>
		<link>http://www.ecommy.com/ecommerce/redirect-all-pages-from-an-old-subdomain-to-the-new-one</link>
		<comments>http://www.ecommy.com/ecommerce/redirect-all-pages-from-an-old-subdomain-to-the-new-one#comments</comments>
		<pubDate>Tue, 18 May 2010 10:46:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E-commerce]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/ecommerce/redirect-all-pages-from-an-old-subdomain-to-the-new-one</guid>
		<description><![CDATA[place a new htaccess file in your old website directory with the following contents RewriteEngine on Redirect 301 / http://yournewwebsite.com/]]></description>
			<content:encoded><![CDATA[<p>place a new htaccess file in your old website directory with the following contents<br />
RewriteEngine on<br />
Redirect 301 / http://yournewwebsite.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/ecommerce/redirect-all-pages-from-an-old-subdomain-to-the-new-one/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove comparison links from magento</title>
		<link>http://www.ecommy.com/programming/remove-comparison-links-from-magento</link>
		<comments>http://www.ecommy.com/programming/remove-comparison-links-from-magento#comments</comments>
		<pubDate>Fri, 30 Apr 2010 15:56:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=524</guid>
		<description><![CDATA[Copy app/code/core/Mage/Catalog/Helper/Product/Compare.php to app/code/local/Mage/Catalog/Helper/Product/ (create missing directories) Edit app/code/local/Mage/Catalog/Helper/Product/Compare.php after: public function getAddUrl($product) { add: return false;]]></description>
			<content:encoded><![CDATA[<p>Copy app/code/core/Mage/Catalog/Helper/Product/Compare.php<br />
to app/code/local/Mage/Catalog/Helper/Product/ (create missing directories)</p>
<p>Edit<br />
app/code/local/Mage/Catalog/Helper/Product/Compare.php<br />
after:</p>
<blockquote><p>
public function getAddUrl($product)<br />
{
</p></blockquote>
<p>add:</p>
<blockquote><p>
return false;</p>
<blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/programming/remove-comparison-links-from-magento/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project Management Open Source Software</title>
		<link>http://www.ecommy.com/different-thoughts/project-management-open-source-software</link>
		<comments>http://www.ecommy.com/different-thoughts/project-management-open-source-software#comments</comments>
		<pubDate>Thu, 22 Apr 2010 08:35:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Different Thoughts]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[project management]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=520</guid>
		<description><![CDATA[There is almost an year since working with qdpm, http://qdpm.net/, which is a great tool for project management, however I wanted something more complete and if possible that had svn support for the projects. update: qdpm supports gantt charts from version 5.5 Here is what I found: 1. Clockingi.com, http://www.clockingit.com/  has nice graphical reports, gantt [...]]]></description>
			<content:encoded><![CDATA[<p>There is almost an year since working with qdpm, http://qdpm.net/, which is a great tool for project management, however I wanted something more complete and if possible that had svn support for the projects.</p>
<p>update: qdpm supports gantt charts from version 5.5</p>
<p>Here is what I found:</p>
<p>1. Clockingi.com, http://www.clockingit.com/  has nice graphical reports, gantt charts and svn support</p>
<p>2. Codeni, http://www.codendi.com from XEROX, supports svn/cvs repository browsing and gantt charts, seems a complex and mature product</p>
<p>3. Collabtive, http://collabtive.o-dyn.de/, it&#8217;s a simple, lightweight project management too, useful for a very small team or a freelancer</p>
<p>4. project-open, http://www.project-open.org/</p>
<p>5. endeavour, http://endeavour-mgmt.sourceforge.net, you can check it&#8217;s features here: http://endeavour-mgmt.sourceforge.net/features1.html</p>
<p>6. Redmine, http://www.redmine.org/, gantt charts, integrations with SVN, CVS, Mercurial, etc.. written in Ruby on Rails</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/different-thoughts/project-management-open-source-software/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Regex Validation</title>
		<link>http://www.ecommy.com/web-development/jquery-regex-validation</link>
		<comments>http://www.ecommy.com/web-development/jquery-regex-validation#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:08:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=512</guid>
		<description><![CDATA[A quick post about validating anything you want using regex. I used it in a project that created forms on the fly, so validations like email, numbers and so on wasn&#8217;t so simple (I couldn&#8217;t do it by just adding the validation as a class: class=&#8221;email&#8221;) so first step is adding what we need before [...]]]></description>
			<content:encoded><![CDATA[<p>A quick post about validating anything you want using regex. I used it in a project that created forms on the fly, so validations like email, numbers and so on wasn&#8217;t so simple (I couldn&#8217;t do it by just adding the validation as a class: class=&#8221;email&#8221;)</p>
<p>so first step is adding what we need before the &lt;/head&gt;:</p>
<pre id="line1">&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="jquery.validate.pack.js"&gt;</pre>
<p>now just after the above code we add our regex method:</p>
<pre><script type="text/javascript"><!--mce:0--></script>&lt;script type="text/javascript"&gt;
$.validator.addMethod(
 "regex",
 function(value, element, regexp) {
 var check = false;
 var re = new RegExp(regexp);
 return this.optional(element) || re.test(value);
 },
 "Please check your input"
);
&lt;/script&gt;</pre>
<p>and the final thing is ading the validation we need &#8211; you can use php to add them from the database for instance:</p>
<pre><script type="text/javascript"><!--mce:1--></script>&lt;script type="text/javascript"&gt;
$(document).ready(function(){
$("#myFieldId").rules("add", {regex: "^(0|[1-9][0-9]*|[1-9][0-9]{0,2}(,[0-9]{3,3})*)$"});
})
&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/web-development/jquery-regex-validation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How google can penalize your website because of adsense</title>
		<link>http://www.ecommy.com/google/how-google-can-penalize-your-website-because-of-adsense</link>
		<comments>http://www.ecommy.com/google/how-google-can-penalize-your-website-because-of-adsense#comments</comments>
		<pubDate>Sun, 14 Feb 2010 17:13:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=509</guid>
		<description><![CDATA[Lesson learned &#8211; sometimes google can penalize your website because incorrect use of adsense. This storry started a while back when I begun adding adsense on one of my websites where I suspected it is not allowed (it&#8217;s a website on which people can upload school content and such). Everything was fine for a while [...]]]></description>
			<content:encoded><![CDATA[<p>Lesson learned &#8211; sometimes google can penalize your website because incorrect use of adsense.</p>
<p>This storry started a while back when I begun adding adsense on one of my websites where I suspected it is not allowed (it&#8217;s a website on which people can upload school content and such).</p>
<p>Everything was fine for a while &#8211; about 4 months, I got a little amount of money too when suddenly the website dropped from the search engines. I thought it was because of duplicate content or because of the too many pages the site had, which was strange but I had no clue.</p>
<p>So I kept my website simple removing all pages that were not important, I even removed the adsense from some of the pages including first page because anyway I was not making any money anymore.</p>
<p>After 8 months guess who was back?&#8230; my website <img src='http://www.ecommy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; I was happy for 1 month until I received another payment from adsense (cumulated with another website) &#8211; just after payment was confirmed the website was down again from the search engines, so now I suspected the cause: I removed all adsense from the website, after 2 more months my website was back again!!! </p>
<p>In conclusion I think google has a swith for it&#8217;s personnel, including the google adsense staff who can shot your website into his legs bringing it down for a while. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/google/how-google-can-penalize-your-website-because-of-adsense/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimize your hosting server</title>
		<link>http://www.ecommy.com/linux/optimize-your-hosting-server</link>
		<comments>http://www.ecommy.com/linux/optimize-your-hosting-server#comments</comments>
		<pubDate>Sat, 19 Dec 2009 11:16:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ecommy.com/?p=499</guid>
		<description><![CDATA[A quick info of how you can optimize your hosting server if you are using a LAMP (Linux Apache Mysql PHP) environment. I am keeping the info for reference, I will also try to update it but please not that&#8217;s not a complete list. Please comment if you have any opinions 1. use php as [...]]]></description>
			<content:encoded><![CDATA[<p>A quick info of how you can optimize your hosting server if you are using a LAMP (Linux Apache Mysql PHP) environment.</p>
<p>I am keeping the info for reference, I will also try to update it but please not that&#8217;s not a complete list. Please comment if you have any opinions</p>
<p>1. use php as a fcgi module not as a dso module for apache<br />
2. compile apache with mpm (Multi-Processing Module) worker that is capable to serve a large number of requests with less system resources than a process-based server.<br />
3. use php eaccelerator it&#8217;s proven to be faster than apc and other cache systems<br />
tweak it based on http://eaccelerator.net/wiki/Settings</p>
<p>that&#8217;s basically it <img src='http://www.ecommy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>now some configuration parameters:<br />
1. don&#8217;t use SymLinksIfOwnerMatch in your httpd.conf a lstat system call is made for each directory and it&#8217;s not cached<br />
2. Tune MinSpareServers and MaxSpareServers so that Apache need not spawn more than 4 child processes per second (Apache can spawn a maximum of 32 child processes per second). When more than 4 children are spawned per second, a message will be logged in the ErrorLog.</p>
<p>to be continued&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ecommy.com/linux/optimize-your-hosting-server/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
