<?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; Moodle</title>
	<atom:link href="http://www.olivetalks.com/tag/moodle/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 (16)</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 (16)</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>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>16</slash:comments>
		</item>
		<item>
		<title>php.ini, symlink and moodle: I&#8217;m calling it the php.ini fiasco</title>
		<link>http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/</link>
		<comments>http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 22:09:22 +0000</pubDate>
		<dc:creator>LadyRostand</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FileZilla]]></category>
		<category><![CDATA[Moodle]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[symlink]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/</guid>
		<description><![CDATA[Ok, fiasco is a bit harsh. It has not been a complete failure. Just somewhat of a headache&#8230;
In my post Register_Globals Off  and PHP4, I went through the steps I took to achieve setting register_globals = OFF in my server. I was quite excited with my success and everything seemed to work just fine. [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, fiasco is a bit harsh. It has not been a complete failure. Just somewhat of a headache&#8230;</p>
<p>In my post <a href="/2008/01/17/register_globals-off-and-php4/" rel="bookmark" title="Permanent Link: Register_Globals Off  and PHP4">Register_Globals Off  and PHP4</a>, I went through the steps I took to achieve setting register_globals = OFF in my server. I was quite excited with my success and everything seemed to work just fine. Obviously, 24 hours later, the problems started to surface.</p>
<p>Now, I&#8217;m still quite happy with the whole php.ini and symlink procedure, but the same way I wrote a post on the coolness of the process, I think it will be good to share the bad experiences, in case I can prevent or at least, warn, other people in the same situation.</p>
<p>So far, the most important &#8220;bad&#8221; consequence of symlinking the php.ini file in all the folders in the server has been its interaction with how Moodle handles the uploaded assignments of students.</p>
<p>When tutors went to grade their students uploades tasks, they found that most uploaded .odt, .doc, .ods, .xls, .pdf, &#8230; documents had been replaced by php.ini. And the original exercises seemed to have disappeared overnight.</p>
<p>Moodle uses the following folder system:<br />
http://domain-name/moodle-installation/file.php/7/moddata/assignment/19/6/exercise</p>
<p>where, in this example,</p>
<ul>
<li>7 is the course number</li>
<li>19 is the assignment number</li>
<li>6 would be the student&#8217;s number</li>
</ul>
<p>And what Moodle does is once a student has uploaded an exercise, it will display the most recent file in that folder. As you can see in the following image, although the task of the student was uploaded on the 27th of September 2007, it is showing the task as php.ini (which was really created on the date of my previous post, January 17th):</p>
<p style="text-align: center"><a href="/wp-content/uploads/2008/01/moodle1c.png" title="moodle-1"><img src="/wp-content/uploads/2008/01/moodle1tiny.png" alt="moodle-1" /></a></p>
<p>To see and correct the problem, you must access the folder:<br />
/moodle-installation/uploaddata/7/moddata/assignment/19/6/</p>
<p>As you can see in the next image (the images are linked to their full sizes so you can see them better):</p>
<p align="center"> <a href="/wp-content/uploads/2008/01/moodle2.png" title="moodle-2"><img src="/wp-content/uploads/2008/01/moodle2tiny.png" alt="moodle-2" /></a></p>
<p>in the folder for this student, for this particular assignment and course, besides the original file the student uploaded in September, there is the php.ini symlink (Filezilla identifies it as a folder).</p>
<p>As the php.ini symlink, saying that register_globals should be off, is only strictly needed in the folders where php scripts are executed from, it is not really necessary to have the symlink there. So you can &#8220;just&#8221; erase it. If you are using FileZilla, you might have the program ignore your request and complain that:</p>
<p>550 Can&#8217;t change directory to php.ini: Not a directory</p>
<p>Well, I knew that&#8230; Solution I have found: create a folder, move the php.ini symlink to that folder, and erase the folder with the php.ini inside. It seems to work. For completeness I will add that the FileZilla &#8220;Not a directory&#8221; complain, showed up both in a FileZilla run in Linux and in a Virtual Machine Windows XP Installation. It did not complain, however, in a FileZilla in a laptop running Windows XP.</p>
<p>Once the php.ini symlink is erased, Moodle will display the correct uploaded task again.</p>
<p align="center"><a href="/wp-content/uploads/2008/01/moodle3c.png" title="moodle-3"><img src="/wp-content/uploads/2008/01/moodle3tiny.png" alt="moodle-3" /></a></p>
<p>This process if you have loads of students/assignments, can be a bit of a pain. Obviously, a script could be written to erase the php.ini symlink from the assignment folders, or even better, the initial symlink script could be modified to exclude the Moodle folders where you don&#8217;t want the symlink created. Without either of these scripts, though</p>
<ol>
<li>it would be better to run symlink, before any students enroll in the courses</li>
<li>if you have a server with a Moodle installation and want to install a 2nd one&#8230; I would be weary of running symlink again without some solution&#8230;</li>
</ol>
<p>No, I do not have that solution, but if anybody does, I&#8217;m all ears. And if anybody finds him or herself in a similar situation, or has other problems with Moodle, do share your experiences with me! I might be able to help or learn from you  <img src='http://www.olivetalks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </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/04/hostgator-pros-cons/" title="Hostgator: pros and cons of their web hosting offer">Hostgator: pros and cons of their web hosting offer (16)</a></li><li><a href="http://www.olivetalks.com/2008/01/17/register_globals-off-and-php4/" title="Register_Globals Off  and PHP4">Register_Globals Off  and PHP4 (1)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/01/21/php_ini-fiasco-with-moodle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
