<?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>olivetalks &#187; hosting</title>
	<atom:link href="http://www.olivetalks.com/tag/hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.olivetalks.com</link>
	<description>The Olive has arrived and it has things to say…</description>
	<lastBuildDate>Tue, 20 Jul 2010 06:27:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Inodes 28 weeks later&#8230;</title>
		<link>http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/</link>
		<comments>http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 20:56:03 +0000</pubDate>
		<dc:creator>LadyRostand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[hostgator]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[Moodle]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/</guid>
		<description><![CDATA[Is it my birthday? Because nice folks at hostgator decided to give a very cool present to all their clients. Inode drought no more!]]></description>
			<content:encoded><![CDATA[<p>Straight out of the oven: I just logged into one of my Hostgator accounts and found the control panel completely changed. It looks good, but I have not had time to really check all the new stuff because something has completely caught me by surprise. Well two things really&#8230;</p>
<p>In the post where I talked about the <a href="/2008/03/04/hostgator-pros-cons/" title="hostgator-pros-cons/">pros and cons of the hosting provider Hostgator</a>, I mentioned how their 50,000 inode limit could cause serious problems to users who wanted to host for example a Moodle platform (go to <a href="/2008/03/09/inodes-attack-part2/" title="inodes-attack-part2">this</a> post to see the minimum inode number a default Moodle installation uses or other software packages like Wordpress or Gallery).</p>
<p>And in the <a href="/2008/03/05/inodes-attack-part1/" title="inodes-attack-part1">The attack of the inodes post</a>, I, with the help of some very nice visitors of olivetalks, discussed different ways of finding out the number of inodes in your account before their excess made Hostgator pull the plug.</p>
<p>So, surprise surprise, 28+ weeks after those posts&#8230; guess what? Check out the next image!</p>
<p align="center"><img src="http://www.olivetalks.com/wp-content/uploads/2008/10/inodes-small.png" alt="inodes-cpanel" /></p>
<p align="left">This is an image taken from the cpanel of my Hostgator account. Not only they show the number of inodes you are using,  but they have increased the limit to 250,000 inodes!! I doubt even I will reach that limit&#8230;</p>
<p><center></p>
<table border="0" width="80%">
<tr>
<td>
<p align="left"><a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=lolivera-olivetalks" rel="nofollow" target="_blank"><img src="http://www.hostgator.com/affiliates/banners/125x90.gif" /></a></p>
</td>
<td width="5%">&nbsp;</td>
<td align="center">
<h3><strong>Hostgator,  from olivetalks, our most sincere applause. </strong></h3>
<p><em>Now, if I had just stopped myself from erasing those 5,000 emails from my mailbox a few days ago&#8230;</em></td>
</tr>
</table>
<p></center></p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/" title="Hostgator: pros and cons of their web hosting offer">Hostgator: pros and cons of their web hosting offer (15)</a></li><li><a href="http://www.olivetalks.com/2008/03/09/inodes-attack-part2/" title="The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes">The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes (6)</a></li><li><a href="http://www.olivetalks.com/2008/03/05/inodes-attack-part1/" title="The attack of the inodes &#8211; how to find out your number">The attack of the inodes &#8211; how to find out your number (9)</a></li><li><a href="http://www.olivetalks.com/2009/06/07/naked-folders-in-wordpress/" title="Security problem with WordPress">Security problem with WordPress (2)</a></li><li><a href="http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/" title="php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco">php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes</title>
		<link>http://www.olivetalks.com/2008/03/09/inodes-attack-part2/</link>
		<comments>http://www.olivetalks.com/2008/03/09/inodes-attack-part2/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 08:55:44 +0000</pubDate>
		<dc:creator>LadyRostand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[b2evolution]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Mambo]]></category>
		<category><![CDATA[Moodle]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[TikiWiki]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[WebCalendar]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/03/09/inodes-attack-part2/</guid>
		<description><![CDATA[Before getting a web hosting service and installing all the available software packages, it is good to know the inodes each package is going to generate. Here you will find a list of the minimum inode count of programs like WordPress, Mambo, b2evolution, WebCalendar, etc. ]]></description>
			<content:encoded><![CDATA[<p>As discussed in my previous posts, it is important to know the number of inodes your web pages are using, to stay within the limit granted by hosting services. In many forums they say that the usual 50,000 inode limit is very generous, but it is not that difficult to reach it, as I learnt the hard way a week ago. Before, I was blissfully happy not knowing what an inode was&#8230;</p>
<p>When you upload pages to your site, you know how many files and directories there are. If you check your email, the number of emails will give you an additional inode count. As long as in your site you are only going to have files uploaded by you and email accounts, you won&#8217;t probably need to worry about inodes. The problem appears if you are planning on having a blog, a forum, a content-management system or any other software package. These packages all have a large quantity of files even just installed. And some are made in such a way as to generate many additional files when you start using them.</p>
<p><em>Example-case</em>: a basic <strong>Moodle</strong> installation, with menus only in English and no courses, has <strong>4,850 inodes</strong> approximately to start with. If you upload 30 courses, this number goes up to 11,000 inodes. And that&#8217;s without any students (real example taken from <a href="http://tunja.ticat.org/" title="http://tunja.ticat.org/">here</a>). 30 courses are loads. Ok, another example: one Moodle platform with &#8220;only&#8221; 7 courses BUT 500 students has 20,000 inodes (example taken from <a href="http://atri.ticat.org/" title="http://atri.ticat.org/">here</a>). The reason is that every time a student uploads an exercise, Moodle creates two inodes: one corresponding to the student&#8217;s folder inside the exercise folder, and one corresponding to the actual exercise. 5 exercises, 10 inodes. 500 students doing the 5 exercises, 5,000 inodes. And it keeps growing&#8230; Furthermore, each language pack has over 600 inodes. So if you want to support different languages, be aware of how the number of inodes is going to increase even more. So knowing this, it is wise not to have more than one Moodle installation in a single web hosting account if you want to have many students. But if you don&#8217;t know about inodes, you might get a web hosting package with loads of disk space and as many mysql databases as you want, install Moodle, b2evolution and say Joomla and collapse your server in no time.</p>
<p>I have not been able to find a list of the inodes all well-known packages have to start with. I think this information is important to be able to decide what hosting account to get or how to use your hosting accounts in a more efficient way (for example combine Moodle and a few small scale web pages in a server and a forum and a blog in another). Therefore I have set upon myself the task of compiling an inode count list as complete as possible. At the initial release of this post, the table is far from complete. I will be adding more entries to the table as I find out the number of inodes each installation comes with. If you find out any additional data, do let me know, and I&#8217;ll add it to the list. Also, if you&#8217;d like me to find out the inode count of any program I don&#8217;t have yet, drop me a note as well, and I&#8217;ll see what can I do.<br />
<center></p>
<table class="tauleta" width="40%">
<tr>
<td><strong>programme</strong></td>
<td align="center"><strong>inode count<sup>1</sup></strong></td>
<td align="center"><strong>source<sup>2</sup></strong></td>
</tr>
<tr>
<td><strong><font color="#008000">b2evolution</font></strong></td>
<td align="center">850</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td><strong><font color="#008000">Drupal</font></strong></td>
<td align="center">400</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td><strong><font color="#008000">Gallery</font></strong></td>
<td align="center"><em>14000</em></td>
<td align="center"><a href="http://blog.kmikhaylov.net/">K. Mikhaylov</a></td>
</tr>
<tr>
<td><strong><font color="#008000">Joomla</font></strong></td>
<td align="center"><em>15000</em></td>
<td align="center"><a href="#comment-465">Vivian</a></td>
</tr>
<tr>
<td><strong><font color="#008000">Mambo</font></strong></td>
<td align="center">2450</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td><strong><font color="#008000">Moodle</font></strong></td>
<td align="center">4850</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td><strong><font color="#008000">osCommerce</font></strong></td>
<td align="center"><em>1100</em></td>
<td align="center"><a href="http://elblogboyacense.com">El Blog Boyacense</a></td>
</tr>
<tr>
<td><strong><font color="#008000">TikiWiki</font></strong></td>
<td align="center">4250</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td><strong><font color="#008000">TYPO3</font></strong></td>
<td align="center">?</td>
<td align="center">&#8211;</td>
</tr>
<tr>
<td><strong><font color="#008000">WebCalendar</font></strong></td>
<td align="center">200</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td><strong><font color="#008000">WordPress</font></strong></td>
<td align="center">650</td>
<td align="center">olivetalks</td>
</tr>
<tr>
<td colspan="3"><small><br />
1. unless otherwise stated, this number corresponds to the basic installation, before adding any files, users,&#8230; and only the default language package installed. The number of inodes has been rounded to the nearest 50th. <em>The inode count appears in italics if the value has not been double-checked by olivetalks.</em><br />
2. inode count obtained by.<br />
</small></td>
</tr>
</table>
<p></center></p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/" title="Inodes 28 weeks later&#8230;">Inodes 28 weeks later&#8230; (2)</a></li><li><a href="http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/" title="Hostgator: pros and cons of their web hosting offer">Hostgator: pros and cons of their web hosting offer (15)</a></li><li><a href="http://www.olivetalks.com/2008/03/05/inodes-attack-part1/" title="The attack of the inodes &#8211; how to find out your number">The attack of the inodes &#8211; how to find out your number (9)</a></li><li><a href="http://www.olivetalks.com/2009/06/07/naked-folders-in-wordpress/" title="Security problem with WordPress">Security problem with WordPress (2)</a></li><li><a href="http://www.olivetalks.com/2008/04/12/the-5-stages-of-bloggers/" title="The 5 stages of bloggers">The 5 stages of bloggers (3)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/03/09/inodes-attack-part2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The attack of the inodes &#8211; how to find out your number</title>
		<link>http://www.olivetalks.com/2008/03/05/inodes-attack-part1/</link>
		<comments>http://www.olivetalks.com/2008/03/05/inodes-attack-part1/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 06:50:19 +0000</pubDate>
		<dc:creator>LadyRostand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[hostgator]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/03/05/inodes-attack-part1/</guid>
		<description><![CDATA[If your web hosting package is in a Linux server, you should know how to find out the number of inodes you are using. LadyRostand explains three methods to count the inodes: via ticket, ssh and ftp, and the advantages and disadvantages in each case.]]></description>
			<content:encoded><![CDATA[<p>&#8220;Inode&#8221; is a term used in Linux/UNIX file systems. Each file, directory, symlink&#8230; is represented by an inode which has a bunch of information on the file or directory (check out <a href="http://www.cyberciti.biz/tips/understanding-unixlinux-filesystem-inodes.html" title="linux and inodes">Understanding UNIX / Linux filesystem Inodes</a> for more information). Computers running Linux have a maximum number of inodes allowed, i.e. a maximum number of files and directories, independently of their sizes. This number is quite big so in general it won&#8217;t affect you. Furthermore, if you are running Windows you might be tempted to skip this post altogether. But if you have a domain in a hosting service and <strong>your web hosting package is in a Linux server</strong>, you should definitely continue reading. In my previous post <a href="/2008/03/04/hostgator-pros-cons/" title="hostgator-pros-cons/">Hostgator pros and cons</a>, I explained how it has a maximum of 50,000 inodes quota and how it&#8217;s not that difficult to reach that number. Whether you are using Hostgator as your web hosting provider or any other, you should know about inodes and how their shortage can become a problem. In this post I will go through ways to find out how many inodes do you have. In the <a href="/2008/03/09/inodes-attack-part2/" title="The return of the inodes">2nd part</a>, I am going to compile a list of the number of inodes different packages have when you install them (important if you want to run WordPress, TYPO3, Mambo, TikiWiki&#8230;).</p>
<p>To find out how many inodes are there in a folder or web hosting account, there are three ways. Whether one or another are possible, or all three, will depend on your web hosting provider.</p>
<p><strong>Option 1. Submit a ticket</strong></p>
<p>This one is easy and only takes as long as your provider&#8217;s support takes. Just ask them for an inode report on your account. Hostgator complied within 4 hours, and that was for three different accounts.</p>
<p><em>Advantage of this method</em>: little effort and you don&#8217;t have to learn any commands.<br />
<em>Disadvantage of this method</em>: if you haven&#8217;t been warned of being above the inode limit, you might be calling their attention to your account unnecessarily. Furthermore, you depend on others to know the number of inodes.</p>
<p><strong>Option 2. Via ssh</strong></p>
<p>If your provider allows you to ssh to your account, then once you are connected, all you have to do is type the following:</p>
<p><code><font color="#008000">find . -printf "%i\n" | sort -u | wc -l</font></code></p>
<p><em>Advantage</em>: quick (it can take 20 seconds to count 10,000 inodes).<br />
<em>Disadvantage</em>:  not all web hosting providers allow you ssh access. In Hostgator, for example, you can ask for ssh access but you need to give them a copy of your photo id.</p>
<p><strong>Option 3. Via ftp</strong></p>
<p>This can&#8217;t be done using FileZilla or similar. From a Linux machine you must open a terminal and:</p>
<ol class="spaced">
<li>First make sure you have the <em>curlftpfs</em> package installed. Depending on your Linux distribution it can be as simple as running (as super-user)<br />
<code><font color="#008000">yum install curlftpfs</font></code></li>
<li>Then you have to create the directory where you want to mount the ftp connection to your hosting account.<br />
<code><font color="#008000">mkdir ftp-domain-folder</font></code><br />
where ftp-domain-folder is the name of the directory you chose.</li>
<li>After that you connect to your account.<br />
<code><font color="#008000">curlftpfs -o user=xxxx:yyyy ftp://domain-name.zzz/ ftp-domain-folder/</font></code><br />
where xxxx = user name and yyyy = password.</li>
<li>And you run this command to count the inodes.<br />
<code><font color="#008000">find ftp-domain-folder/ | sort -u | wc -l</font></code></li>
<li>Finally, unmount the folder (requires super-user priviledges):<br />
<code><font color="#008000">umount ftp-domain-folder/</font></code></li>
</ol>
<p><em>Advantage</em>: you can do it from your computer, quite easy, no need for ssh,&#8230;<br />
<em>Disadvantage</em>: it takes quite a bit (over an hour to count 10,000 inodes) and you need to run the commands from a Linux computer.</p>
<p>To check the total number of inodes, if you don&#8217;t have ssh access, I would suggest using option 1. Once you know the total number, you can use option 3 to find out the inode count in folders within your hosting account. Each individual folder will not have as many inodes as the whole account so the command will take less time. For example:</p>
<p><code><font color="#008000">find ftp-domain-folder/mail/ | sort -u | wc -l</font></code></p>
<p>where mail is the folder where all your email accounts and emails are, or:</p>
<p><code><font color="#008000">find ftp-domain-folder/public_html/folder-name/ | sort -u | wc -l</font></code></p>
<p>to check the inodes inside a folder in your account. This way you can check if you have erased enough files if you were reaching the limit.</p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/" title="Inodes 28 weeks later&#8230;">Inodes 28 weeks later&#8230; (2)</a></li><li><a href="http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/" title="Hostgator: pros and cons of their web hosting offer">Hostgator: pros and cons of their web hosting offer (15)</a></li><li><a href="http://www.olivetalks.com/2008/03/09/inodes-attack-part2/" title="The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes">The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes (6)</a></li><li><a href="http://www.olivetalks.com/2009/06/24/skype-40-for-windows-is-out-pros-and-cons-compared-with-linux-skype-20/" title="Skype 4.0 for Windows is out: Pros and cons (compared with Linux Skype 2.0) ">Skype 4.0 for Windows is out: Pros and cons (compared with Linux Skype 2.0)  (1)</a></li><li><a href="http://www.olivetalks.com/2009/06/07/naked-folders-in-wordpress/" title="Security problem with WordPress">Security problem with WordPress (2)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/03/05/inodes-attack-part1/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Hostgator: pros and cons of their web hosting offer</title>
		<link>http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/</link>
		<comments>http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 06:31:58 +0000</pubDate>
		<dc:creator>LadyRostand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Uncategorized products]]></category>
		<category><![CDATA[domains]]></category>
		<category><![CDATA[hostgator]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[inodes]]></category>
		<category><![CDATA[Moodle]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/03/04/hostgator-pors-cons/</guid>
		<description><![CDATA[Web hosting services: what should you look for? email limits, inodes quota, bandwidth, disk space, hidden agenda... Some web hosting services like Hostgator offer excellent deals, but you have to know a few things to avoid getting a package for your domain or project which might not be the best.  ]]></description>
			<content:encoded><![CDATA[<p>olivetalks is hosted with Hostgator. Although this blog is fairly new, I&#8217;ve been a client of Hostgator for two and a half years. This means I am quite happy with their offer and service overall. Nevertheless, there are a few things that I would have liked to know before signing up for a hosting package with them. They did not hide this information but their offers are so good that you can easily overlook the fine print. Furthermore, it is important to know the cons, to take them into account when deciding what option is better for you or one of your domains/projects.</p>
<p>The pros they advertise in their page are true. In their shared baby and swamp web hosting packages you do get what they say, including the most attractive features:</p>
<ul>
<li> unlimited domains (as in, in one account you can add as many domains as you want)</li>
<li>6,000 GB of bandwidth in the baby package and unlimited in the swamp one</li>
<li>600 GB of disk space in the baby package and 1,000 GB in the swamp one</li>
<li>unlimited MySQL databases (important if you are going to install Wordpress, Drupal, Joomla or other packages)</li>
<li>Fantastico: easy one-click installation of most of the known scripts/CMS</li>
<li>&#8230;</li>
</ul>
<p>And an advantage which I have tested myself on a dozen of occasions by now and has always been excellent: answers from their support quick (usually in less than 6 hours) and helpful.</p>
<p>But, these pros and perks of Hostgator have a hidden side to them, which you will see when I explain the cons I have &#8220;suffered&#8221;.</p>
<p>Now the cons, or fine print details that you should consider before getting one package or another or even deciding if Hostgator is good enough for you.  Right now I know of three cons. They have appeared at different times and although they haven&#8217;t made me switch to another web hosting provider, they have made me frown at them for a few hours/days. As I said, they do mention them, but until you understand what they mean, they sound like unimportant, when they are not. I am going to describe the three cons and when should you take them into account and take appropriate measures.</p>
<p><strong>1. &#8220;Users may not: Use 25% or more of system resources for longer then 90 seconds&#8221;</strong></p>
<p><em>Translation</em>: if you have many web pages or visitors or scripts, even if you have unlimited space, bandwidth, etc., you might use up more than 25% of the CPU, which would cause them to shut down your service. So far it only happened once when a cron job lost the pot: they automatically shut down my cron job facilities without any warning and without me realizing till two weeks later. I say lost the pot because I still don&#8217;t really understand what happened. After talking to their support, they enabled the option again.</p>
<p><strong>2. &#8220;The use of more than 50,000 inodes on any shared account may potentially result in suspension.&#8221;</strong></p>
<p><em>Translation</em>: each file and directory counts as an inode. When I encountered this problem, less than a week ago, I searched for explanations of the problem in several forums and I found quite a few places where people were saying that 50,000 inodes is such a large number that surely people that fret over them are exaggerating. Then how come I got two of my three Hostgator accounts with quotas above the inode limit? and not above by a few inodes, I&#8217;m talking about a few tens of thousands in one and even a hundred thousand in another! With a week to reduce the amount of inodes within the allowed quota, I&#8217;ve had to do some research to understand it better. I mean, I had 50 GB of my 600 GB disk full. How come I had over 200,000 inodes? Two things to know regarding inodes: how to find out how many do you have and how many inodes do different programs/scripts generate. I am working on two follow-up posts, one with instructions on how to obtain the number of inodes of your account or folders and a second one with a table with the number of inodes that standard packages like Wordpress or Moodle have to start with. So the problem is, you might have quite a large amount of disk space, but you cannot have more than 50,000 files, which means 12 MB per file if you were to use the 600 GB. An image displayed on a web page is usually around 30 to 50 kB and a simple html page say around 100 kB&#8230; so the magnanimous disk space will be usually unachievable, due to other restrains, and a bit of a misleading offer. Then again, you could use the extra disk space for backups, if not for many web pages.</p>
<p><strong>3. &#8220;Mail policy and limits: There is a 200 hourly email limit per domain. If you send over this amount in any hour, most of the e-mails will bounce back with a undeliverable error.&#8221;</strong></p>
<p><em>Translation</em>: Now this policy I did not find in the Terms and Service page. You have to go search for it in their Knowledge pages. Again, surely 200 emails  per hour are enough? Think about it, if you have one email account, it is unlikely you&#8217;ll ever send 200 emails in an hour. But what if you create 10 accounts? That means that each user should not send more than 20 emails in an hour. Doable? sure&#8230; unless you are emailing your siblings, which means you send an email to say two people, they answer and you reply again to both of them and&#8230; you can only do it 10 times in an hour. Still ok? The Hostgator offer is &#8220;Unlimited mail accounts&#8221;&#8230; sure, but the moment you have a few users, you will reach the maximum number of emails allowed per hour a lot quicker. It seems Yahoo mail has a limit between 25 and 100 emails per hour, depending on the account and Googlemail 60 per hour. And Hostgator only gives you 200 although you could in theory create a hundred email accounts. By the way, each email counts as an inode! So if you have 20 email accounts with say 500 emails in their accounts each (you can make their inboxes as big as you want, so why not be generous?), that&#8217;s 10,000 inodes. But when this really matters is when you have some package installed like Moodle or any other which relies on emails to inform students/members of any news. Say you have a Moodle installation with one course and 5 forums. Say 9 students enrol and there is one tutor. If you want all the students and the tutor to receive an email when somebody comments, that&#8217;s 10 emails that will be sent. Say a student enters the course and comments on all 5 forums, one after the other: that&#8217;s 50 emails. If another student happens to participate in the forums in the same hour, that&#8217;ll be another 10 emails per comment. Add to that exercises (and emails sent to the tutor letting him/her know) and then offer a few courses and you can reach the 200 email limit very easily.</p>
<p><em><strong>Update</strong></em>: just when I was about to publish this post I decided to contact Hostgator live chat and ask about this email limit. It seems that from quite recently the limit has been increased to 500 emails per hour and that it&#8217;s <strong>500 emails per hour per domain</strong>, not per hosting service as I thought. So, for example, if in one hosting package you have 3 domains, each of them has a 500 email limit. That still means that if you have 10 email accounts under one domain, you have 500 emails per hour to be divided among those 10 emails. Furthermore, there is a 60 pop-check per hour per domain. This means that if you are checking your email using Thunderbird or MS Outlook, you can only do it 60 times per hour. More than enough. If you have 5 email accounts, each can only check it, 12 times in an hour. If you have 20 accounts, each person should maximum check for new emails every 20 minutes. And if a user has a quick finger, other users might not be able to check their emails in an hour. And you still have to remember that each email is an inode! You can check out the complete new mail policy of Hostgator <a href="http://hostgator.com/mailpolicy.shtml" title="mailpolicy-hostgator">here</a>.</p>
<p><strong>Some conclusions:</strong></p>
<p>Hostgator&#8217;s offer is very good, but you should consider what packages are you going to need (Moodle, b2evolution, Xoops, WebCalendar&#8230;), how many emails do you think you&#8217;ll need to send per hour, how many domains you&#8217;ll want to host and their inodes sizes, etc., before deciding what web hosting you need. You might need a few web hosting accounts, in Hostgator or any other provider! Getting a few hosting accounts could still be cheaper than a semi-dedicated or dedicated server and if you take into account the limitations of the service I&#8217;ve described, it can help you choose the best hosting package and distribution of domains per hosting account for your project/situation.</p>
<p>To know how to obtain the inode count of your folders, check out my next post. And if you need any help on deciding what would be the best option for you, do comment, and I&#8217;ll be happy to help you out.</p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/" title="Inodes 28 weeks later&#8230;">Inodes 28 weeks later&#8230; (2)</a></li><li><a href="http://www.olivetalks.com/2008/03/09/inodes-attack-part2/" title="The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes">The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes (6)</a></li><li><a href="http://www.olivetalks.com/2008/03/05/inodes-attack-part1/" title="The attack of the inodes &#8211; how to find out your number">The attack of the inodes &#8211; how to find out your number (9)</a></li><li><a href="http://www.olivetalks.com/2009/06/07/naked-folders-in-wordpress/" title="Security problem with WordPress">Security problem with WordPress (2)</a></li><li><a href="http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/" title="php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco">php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Register_Globals Off  and PHP4</title>
		<link>http://www.olivetalks.com/2008/01/17/register_globals-off-and-php4/</link>
		<comments>http://www.olivetalks.com/2008/01/17/register_globals-off-and-php4/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 09:00:47 +0000</pubDate>
		<dc:creator>LadyRostand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/01/17/register_globals-off-and-php4/</guid>
		<description><![CDATA[I needed to set register_globals = OFF in my server yesterday and had a bit of a hard time finding out how to do it, as Hostgator (where this blog is hosted) does not have an easy way of changing it in the shared servers packages. I found tons of very helpful pages in blogs [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to set register_globals = OFF in my server yesterday and had a bit of a hard time finding out how to do it, as Hostgator (where this blog is hosted) does not have an easy way of changing it in the shared servers packages. I found tons of very helpful pages in blogs and forums all over the Web which helped me solve the problem. I feel it&#8217;s about time I give something back, besides taking this opportunity to thank all of you out there taking the time to help others.</p>
<p>So I learnt&#8230;</p>
<ol class="spaced">
<li>to set the register_globals off, one must place a &#8220;php.ini&#8221; file with the line register_globals = OFF in every folder of the server (thank you <a href="http://forum.joomla.org/index.php/topic,91837.msg465727.html" title="bergmann joomla forum">bergmann</a> at the <em>joomla forum</em>!)</li>
<li>but this php.ini cannot just contain the register_globals line. The Computer guys at the University of Washington explain it really well in <a href="http://www.washington.edu/computing/web/publishing/php-ini.html" title="Using a php.ini File">Using a php.ini File</a>, basically saying: if the directory that calls a PHP script contains a php.ini file, that is the one (and only) from where the PHP configuration settings will be read, so you must first obtain the Web server&#8217;s php.ini file and add your own particular settings.</li>
<li>now, I don&#8217;t know about other Hosting services, but you cannot access the php.ini file in Hostgator through ftp directly. <a href="http://www.amember.com/forum/showthread.php?p=23962" title="ronniead amember forum">ronniead</a> in a brilliant step by step post in an <em>aMember Professional</em> forum, explains how to use a script to both copy the original php.ini file of the Web server and add the extra user settings. This &#8220;<a href="http://tips-scripts.com/php_ini" title="php_ini script for PHP5.">Creating a custom php.ini file</a>&#8221; script from <em>B&amp;T&#8217;s Tips &amp; Scripts</em> is easy to download and use, following <a href="http://www.amember.com/forum/showthread.php?p=23962" title="ronniead amember forum">ronniead</a> instructions. Only one catch.. it did not work for me.</li>
<li>a bit more research and I found out that  the function which appears in the script from <em>B&amp;T&#8217;s Tips &amp; Scripts</em>: file_put_contents() works with PHP5 but not with PHP4 which is what I have. Some googling for &#8220;file_put_contents() for PHP4&#8243; brings up quite a few implementations of the PHP5 file_put_contents() function for PHP4. The one I settled for can be found in <a href="http://www.phpied.com/file_get_contents-for-php4/" title="file_put_contents for PHP4">Stoyan Stefanov</a>&#8217;s blog <a href="http://www.phpied.com/" title="phpied.com">phpied.com</a> (thanks Stoyan!)</li>
<li>So a bit of messing around with both the script and Stoyan&#8217;s implementation and I finally got the script to create a custom php.ini file for PHP4 working. And here comes the moment to give back to society.</li>
<li> You can either copy and paste the following code in a text editor, and then save as php_ini.php, or download the script from here: <a href="/wp-content/uploads/2008/03/php_ini_php4.txt" title="php4.txt">php_ini_PHP4.txt</a> (right-click, Save Link As&#8230; and as it&#8217;s in .txt format, once downloaded, change the ending to .php).</li>
</ol>
<p><code><br />
<span style="color: #0000bb; background-color: #fbf27a">&lt;?php</span><br />
// Put all the php.ini parameters you want to change below. One per line.<br />
// Follow the example format $parm[] = "parameter = value";<br />
<span style="color: #0000bb; font-style: italic">$parm</span>[] = <span style="color: #58c70d">"register_globals = Off"</span>;<br />
<span style="color: #0000bb; font-style: italic">$parm</span>[] = <span style="color: #58c70d">"session.use_trans_sid = 0 "</span>;</code><br />
<code><br />
// full unix path - location of the default php.ini file at your host<br />
// you can determine the location of the default file using phpinfo()<br />
<span style="color: #0000bb; font-style: italic">$defaultPath</span> = <span style="color: #58c70d">'/usr/local/lib/php.ini'</span>;</code><br />
<code><br />
// full unix path - location where you want your custom php.ini file<br />
// if you don't know the full unix path, uncomment the next line and run the script<br />
// echo getcwd() . "\n";<br />
// you will see the full path (and probably an error message)<br />
<span style="color: #0000bb; font-style: italic">$customPath</span> = <span style="color: #58c70d">"/home/user/public_html/php.ini"</span>;</code><br />
<code><br />
// nothing should change below this line.<br />
<span style="color: #924eb1; font-style: italic">if</span> (file_exists(<span style="color: #0000bb; font-style: italic">$defaultPath</span>)) {<br />
<span style="color: #0000bb; font-style: italic">$contents</span> = file_get_contents(<span style="color: #0000bb; font-style: italic">$defaultPath</span>);<br />
<span style="color: #0000bb; font-style: italic">$contents</span> .= <span style="color: #58c70d">"\n\n; USER MODIFIED PARAMETERS FOLLOW\n\n"</span>;<br />
<span style="color: #924eb1; font-style: italic">foreach</span> (<span style="color: #0000bb; font-style: italic">$parm</span> <span style="color: #924eb1; font-style: italic">as</span> <span style="color: #0000bb; font-style: italic">$value</span>) <span style="color: #0000bb; font-style: italic">$contents</span> .= <span style="color: #0000bb; font-style: italic">$value</span> . <span style="color: #58c70d">" \n"</span>;</code><br />
<code><br />
// code added for the script to work with PHP4<br />
<span style="color: #924eb1; font-style: italic">if</span> (!function_exists(<span style="color: #58c70d">'file_put_contents'</span>)) {<br />
<span style="color: #924eb1; font-style: italic">function</span> file_put_contents(<span style="color: #0000bb; font-style: italic">$customPath</span>,<span style="color: #0000bb; font-style: italic">$contents</span>) {<br />
<span style="color: #0000bb; font-style: italic">$f</span> = @fopen(<span style="color: #0000bb; font-style: italic">$customPath</span>, <span style="color: #58c70d; font-style: italic">'w'</span>);<br />
<span style="color: #924eb1; font-style: italic">if</span> (!<span style="color: #0000bb; font-style: italic">$f</span>) {<br />
<span style="color: #924eb1; font-style: italic">return false</span>;<br />
} <span style="color: #924eb1; font-style: italic">else</span> {<br />
<span style="color: #0000bb; font-style: italic">$bytes</span> = fwrite(<span style="color: #0000bb; font-style: italic">$f</span>, <span style="color: #0000bb; font-style: italic">$contents</span>);<br />
fclose(<span style="color: #0000bb; font-style: italic">$f</span>);<br />
<span style="color: #924eb1; font-style: italic">return</span> <span style="color: #0000bb; font-style: italic">$bytes</span>;<br />
}<br />
}<br />
}<br />
// end of added code for script to work with PHP4</code><br />
<code><br />
<span style="color: #924eb1; font-style: italic">if</span> (file_put_contents(<span style="color: #0000bb; font-style: italic">$customPath</span>,<span style="color: #0000bb; font-style: italic">$contents</span>)) {<br />
<span style="color: #924eb1; font-style: italic">if</span> (chmod(<span style="color: #0000bb; font-style: italic">$customPath</span>,0600)) <span style="color: #0000bb; font-style: italic">$message</span> = <span style="color: #58c70d; font-style: italic">"The php.ini file has been modified and copied"</span>;<br />
<span style="color: #924eb1; font-style: italic">else</span> <span style="color: #0000bb; font-style: italic">$message</span> = <span style="color: #58c70d">"Processing error - php.ini chmod failed"</span>;<br />
} <span style="color: #924eb1; font-style: italic">else</span> {<br />
<span style="color: #0000bb; font-style: italic">$message</span> = <span style="color: #58c70d">"Processing error - php.ini write failed"</span>;<br />
}<br />
} <span style="color: #924eb1; font-style: italic">else</span> {<br />
<span style="color: #0000bb; font-style: italic">$message</span> = <span style="color: #58c70d">"Processing error - php.ini file not found"</span>;</code><br />
<code><br />
}<br />
<span style="color: #924eb1; font-style: italic">echo</span> <span style="color: #0000bb; font-style: italic">$message</span>;<br />
<span style="color: #0000bb; background-color: #fbf27a">?&gt;</span><br />
</code></p>
<p>So there it is, the script to create the custom php.ini file for PHP4. Let me know how it goes!</p>
<hr align="left" width="20%" /> <a href="/category/computers/feed" title="rss feed to post"><img src="/wp-content/uploads/2008/01/feed-icon-14x14.png" alt="rss feed to post" /></a> Subscribe to the Computers posts of olivetalks, if you found this article interesting, thank you!</p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2008/10/30/inodes-28-weeks-later/" title="Inodes 28 weeks later&#8230;">Inodes 28 weeks later&#8230; (2)</a></li><li><a href="http://www.olivetalks.com/2008/03/09/inodes-attack-part2/" title="The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes">The return of the inodes &#8211; tell me your package and I&#8217;ll tell you your inodes (6)</a></li><li><a href="http://www.olivetalks.com/2008/03/05/inodes-attack-part1/" title="The attack of the inodes &#8211; how to find out your number">The attack of the inodes &#8211; how to find out your number (9)</a></li><li><a href="http://www.olivetalks.com/2008/03/04/hostgator-pros-cons/" title="Hostgator: pros and cons of their web hosting offer">Hostgator: pros and cons of their web hosting offer (15)</a></li><li><a href="http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/" title="php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco">php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/01/17/register_globals-off-and-php4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
