<pclass="normaltext">This page contains answers to some of the most
frequently asked questions by people installing Moodle. If you have
followed the <ahref="./?file=install.html">installation instructions</a> but
you still have a problem, then this page is probably the best place to be. </p>
<pclass="normaltext">If you don't find your answer here try the <ahref="http://moodle.org/mod/forum/index.php?id=5"target="_top">Using
Moodle</a> course on moodle.org. Start by searching the forums using a few keywords,
in case your problem has already been discussed. If you don't find
anything, then try posting your question into the appropriate forum - somebody will
usually be able to help you.</p>
<pclass="normaltext">If you have tried a number of solutions without resolving an issue,
and you are running behind a firewall, it may be advisable to try re-configuring your
firewall to ensure that it is not blocking a required function or necessary communication.
Firewalls very rarely cause problems with Moodle but are occasionally responsible for
reduced functionality due to a mis-configuration in the firewall settings.
<pclass="normaltext">Use this list to jump to the appropriate answer below:</p>
<pclass="questionlink"><ahref="#filenotfound">Whenever I try to access or view a file that I uploaded, I get an error "File not Found"</a></p>
<pclass="questionlink"><ahref="#php">PHP - is it installed and what version do I have?</a></p>
<pclass="questionlink"><ahref="#blankpages">Why are all my pages blank?</a></p>
<pclass="questionlink"><ahref="#errorgetstring">My pages show fatal errors such as : call to undefined function: get_string()</a></p>
<pclass="questionlink"><ahref="#headerssent">Why do I keep getting error messages about "headers already sent"?</a></p>
<pclass="questionlink"><ahref="#failedopen">I keep getting this error: Failed opening required '/web/moodle/lib/setup.php'</a></p>
<pclass="questionlink"><ahref="#quotes">Any text I add with an apostrophe (') or a quote (") causes errors or comes up with a slash added</a></p>
<pclass="questionlink"><ahref="#sessiontmp">I keep getting error messages about session_start</a></p>
<pclass="questionlink"><ahref="#fixdirroot">When I go to the admin page, I get told to make dirroot blank!</a></p>
<pclass="questionlink"><ahref="#loginsetting">I login but the login link doesn't change. I am logged in and can navigate freely.</a></p>
<pclass="questionlink"><ahref="#resource1">When trying to add a resource I receive error messages.</a></p>
<pclass="questionlink"><ahref="#noadmin">During the initial setting-up process, I never get asked to create an admin account!</a></p>
<pclass="questionlink"><ahref="#nologin">I can't log in at all- I just stay stuck on the login screen.</a></p>
<pclass="questionlink"><ahref="#backup">How do I backup my Moodle site?</a></p>
<pclass="questionlink"><ahref="#locale">Why doesn't my Moodle site display the
time & date correctly?</a></p>
<pclass="questionlink"><ahref="#cron">Email copies are not being sent
<pclass="answercode">Warning: session_start() [function.session-start]: open(/tmp\sess_d40f380d37d431fc1516e9a895ad9ce0, O_RDWR) failed: No such file or directory (2) in G:\web\moodle\lib\setup.php on line 123</p>
<pclass="answercode">Warning: session_start() [function.session-start]: open(/tmp\sess_d40f380d37d431fc1516e9a895ad9ce0, O_RDWR) failed: No such file or directory (2) in G:\web\moodle\lib\setup.php on line 123</p>
<pclass="answercode">Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at G:\web\moodle\lib\setup.php:1) in G:\web\moodle\lib\setup.php on line 123</p>
<pclass="answer">... these are all related to the fact that PHP is failing to save
"session" files on your hard disk (in a directory called /tmp). Usually the
reason is that you don't HAVE a directory called /tmp on your computer. This
is usually the case with Windows installations.
<pclass="answer">The solution is to fix the PHP setting for this path to point to a real directory. You can do this in your php.ini file:</p>
<pclass="answer">then you have encountered a small bug that occurs on some servers. The problem is with the error-checking mechanism, not with your actual path. To fix it, find this line (line 66) in the file admin/index.php: </p>
<pclass="answer">This is a known bug in versions of Moodle up to 1.0.9, now fixed in the main code and version 1.1.</p>
<pclass="answer">It doesn't affect all people, it only occurs when the person installing Moodle has a
cookie in their browser from another program on the same site, called "user", "admin", or "teacher".</p>
<pclass="answer">Quick fixes include deleting those cookies from your browser before installing, using a different browser, or editing the file moodle/admin/user.php to insert these lines near the top:</p>
<pclass="answer">There are two main things you need to make a copy of: the database and the uploaded files. The Moodle scripts themselves are less important, since you can always download a fresh copy if you have to.</p>
<pclass="answer">There are many ways to do such backups. Here is an outline of a little script you can run on Unix to backup the database (it works well to have such a script run daily via a cron task</p>
codes</a> and <ahref="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_country_strings.asp"target="_blank">Country/region
codes</a>.(eg "esp_esp" for spanish)</p>
<pclass="answer">These new locale codes can be entered on the Admin -> Configure
-> Variables page, where they override the ones in the currently chosen language