<pclass="normaltext">This page contains answers to some of the most
frequently asked questions by people installing Moodle. If you have
followed the <ahref="http://moodle.org/doc/?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">Using
Moodle</a> course on moodle.org. Start by searching the forums using a few keywords
(one at a time), 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 be able to help you.</p>
<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 at top of page doesn't change. I am logged in and can navigate freely within the site.</a></p>
<h4class="question"><aname="errorgetstring"></a>My pages show fatal errors such
as : call to undefined function: get_string()</h4>
<pclass="answer">If you see errors like:</p>
<pclass="answercode">Parse error: parse error, unexpected T_VARIABLE in c:\program
files\easyphp\www\moodle\config.php on line 94 <br>
Fatal error: Call to undefined function: get_string() in c:\program files\easyphp\www\moodle\mod\resource\lib.php
on line 11</p>
<pclass="answer">then it's likely you have left out a semi-colon or ending quote
from a line in config.php (previous to line 94).</p>
<pclass="answer">Another reason could be that you have opened config.php in a
program like Word to edit it, and saved it as a HTML web page, instead of a
proper text file.</p>
<p> </p>
<h4class="question"><aname="headerssent"></a>Why do I keep getting error messages
about "headers already sent"?</h4>
<pclass="answer">If you see errors like this:</p>
<pclass="answercode">Warning: Cannot add header information - headers already
sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php
on line 1322 </p>
<pclass="answercode"> Warning: Cannot add header information - headers already
sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/lib/moodlelib.php
on line 1323 </p>
<pclass="answercode"> Warning: Cannot add header information - headers already
sent by (output started at /webs/moodle/config.php:87) in /webs/moodle/login/index.php
on line 54 </p>
<pclass="answer">You have blank lines or spaces after the final ?> in your config.php
file. Sometimes text editors add these - for example Notepad on Windows - so
you may have to try a different text editor to remove these spaces or blank
lines completely. </p>
<pclass="answer"> </p>
<h4class="question"><aname="failedopen"></a>I keep getting this error: Failed
opening required '/web/moodle/lib/setup.php'</h4>
<pclass="answer">In your config.php, the setting that you use for the dirroot
variable must be the <strong>complete path from the root of your server's hard
drive</strong>.</p>
<pclass="answer">Sometimes people only use the path from their home directory,
or relative to the root of the web server directory.</p>
<pclass="answer"> </p>
<h4class="question"><aname="quotes"id="quotes"></a>Any text I add with an apostrophe
(') or a quote (") causes errors or comes up with a slash added</h4>
<pclass="answer">Problems caused by apostrophes are caused by incorrect "magic
quotes" settings. Moodle requires the following settings (which are usually
the default):</p>
<pclass="answercode">magic_quotes_gpc = On<br>
magic_quotes_runtime = Off</p>
<pclass="answer">See the section on <ahref="http://moodle.org/doc/?file=install.html#webserver">webserver
configuration</a> in the Installation docs for more details.</p>
<h4class="question"><aname="sessiontmp"></a>I keep getting error messages about session_start</h4>
<pclass="answer">If you see errors like this:</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]: 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>