moodle/lang/en/docs/faq.html

158 lines
7.9 KiB
HTML
Raw Normal View History

2003-04-26 05:24:07 +00:00
<head>
<title>Moodle Docs: Frequently Asked Questions (FAQ)</title>
<link rel="stylesheet" href="../theme/standard/styles.php" type="TEXT/CSS">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.question {
font-size: medium;
font-weight: bold;
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
border: 1px dotted;
padding: 10px;
background-color: #EEEEEE;
}
.answer {
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
font-size: medium;
border: none;
padding-left: 40px;
}
-->
</style>
<style type="text/css">
<!--
.normaltext {
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
font-size: medium;
border: none;
padding-left: 10px;
}
2003-04-26 05:40:24 +00:00
.answercode {
font-family: "Courier New", Courier, mono;
font-size: small;
border: none;
padding-left: 60px;
}
2003-04-26 05:42:51 +00:00
.questionlink {
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
font-size: medium;
border: none;
padding-left: 40px;
}
2003-04-26 05:24:07 +00:00
-->
</style>
</head>
2003-04-26 05:24:07 +00:00
<body bgcolor="#FFFFFF">
<h2>Frequently Asked Questions (FAQ)</h2>
2003-04-26 05:24:07 +00:00
<p class="normaltext">This page contains some of the most frequently asked questions
with their answers. If you have a problem it may be quickest to check this page
first.</p>
<p class="normaltext">If you don't find the answer here try the <a href="http://moodle.org/mod/forum/index.php?id=5">Using
Moodle</a> course on moodle.org, and search the forums for keywords. You may
have to try a few different search phrases before you find a resolution.</p>
<p class="normaltext">If you still can't find any answers try posting your question
on the appropriate forum in <a href="http://moodle.org/mod/forum/index.php?id=5">Using
Moodle</a> - someone should be able to help you.</p>
2003-04-26 05:30:00 +00:00
<p class="normaltext">Most questions people have are related to installation,
and most of these are related to the editing of config.php file. Following the
<a href="http://moodle.org/doc/?file=install.html">installation instructions</a>
carefully will usually result in a perfectly working system. Here are some of
the most common problems that are encountered:</p>
2003-04-26 05:42:51 +00:00
<p class="questionlink"><a href="#php">PHP - is it installed and what version
do I have?</a></p>
<p class="questionlink"><a href="#blankpages">Why are all my pages blank?</a>
</p>
<p class="questionlink"><a href="#errorgetstring">My pages show fatal errors such
as : call to undefined function: get_string()</a></p>
<p class="questionlink"><a href="#headerssent">Why do I keep getting error messages
about &quot;headers already sent&quot;?</a></p>
<p class="questionlink"><a href="#failedopen">I keep getting this error: Failed
opening required '/web/moodle/lib/setup.php'</a></p>
<p class="questionlink"><a href="#filenotfound">Whenever I try to access or view
a file that I uploaded, I get an error &quot;File not Found&quot;</a></p>
2003-04-26 05:24:07 +00:00
<p>&nbsp;</p>
<h4 class="question"><a name="php"></a>PHP - is it installed and what version
do I have?</h4>
2003-04-26 05:40:24 +00:00
<p class="answer">Make a new file on your web site called info.php, containing the following
2003-04-26 05:24:07 +00:00
text, and call it from your browser:</p>
2003-04-26 05:40:24 +00:00
<p class="answercode">&lt;?PHP phpinfo() ?&gt;</p>
2003-04-26 05:24:07 +00:00
<p class="answer">If nothing happens then you don't have PHP installed. See the
installation docs for some information about where to download it for your computer.</p>
2003-04-26 05:30:00 +00:00
<p class="answer">&nbsp;</p>
2003-04-26 05:24:07 +00:00
<h4 class="question"><a name="blankpages"></a>Why are all my pages blank? </h4>
2003-04-26 05:40:24 +00:00
<p class="answer">Check the dirroot variable in config.php. You must use complete,
absolute pathnames, eg:</p>
<p class="answercode"> $CFG->dirroot = "d:\inetpub\sites\www.yoursite.com\web\moodle";</p>
2003-04-26 05:24:07 +00:00
<p>&nbsp; </p>
<h4 class="question"><a name="errorgetstring"></a>My pages show fatal errors such
as : call to undefined function: get_string()</h4>
<p class="answer">If you see errors like:</p>
2003-04-26 05:40:24 +00:00
<p class="answercode">Parse error: parse error, unexpected T_VARIABLE in c:\program
2003-04-26 05:24:07 +00:00
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>
<p class="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>
<p class="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>&nbsp;</p>
<h4 class="question"><a name="headerssent"></a>Why do I keep getting error messages
about &quot;headers already sent&quot;?</h4>
<p class="answer">If you see errors like this:</p>
2003-04-26 05:40:24 +00:00
<p class="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>
<p class="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>
<p class="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>
2003-04-26 05:24:07 +00:00
<p class="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>
2003-04-26 05:30:00 +00:00
<p class="answer">&nbsp;</p>
2003-04-26 05:24:07 +00:00
<h4 class="question"><a name="failedopen"></a>I keep getting this error: Failed
opening required '/web/moodle/lib/setup.php'</h4>
<p class="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>
<p class="answer">Sometimes people only use the path from their home directory,
or relative to the root of the web server directory.</p>
2003-04-26 05:30:00 +00:00
<h2>&nbsp;</h2>
2003-04-26 05:24:07 +00:00
<h3 class="question"><a name="filenotfound"></a>Whenever I try to access or view
a file that I uploaded, I get an error &quot;File not Found&quot;</h3>
<p class="answer">For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg
2003-04-26 05:30:00 +00:00
was not found on this server. </p>
2003-04-26 05:24:07 +00:00
<p class="answer">Your web server needs to be configured to allow the part of
the URL after a script name to be passed directly to the script. This is usually
enabled in Apache 1, but is usually disabled by default in Apache 2. To turn
it on, add this line to your httpd.conf, or to a .htaccess file in your local
directory (see the <a href="./?file=install.html#webserver">Install documentation</a>
for more details): </p>
2003-04-26 05:40:24 +00:00
<p class="answercode"><b>AcceptPathInfo</b> on</p>
2003-04-26 05:24:07 +00:00
<p class="answer">Note, this will ONLY work for Apache versions 2.x. </p>
<p class="answer">If you are not using Apache 2 and you still have this problem
(unlikely) then you can switch Moodle to use an alternative method. The disadvantages
are a slight loss of performance for your users and you won't be able to use
relative links within HTML resources. </p>
<p class="answer">To use this alternative method: login as Admin, go into the
"Configure Variables" page and change the setting for "<b>slasharguments</b>".
You should now be able to access your uploaded files.</p>
<hr>
2003-04-26 05:24:07 +00:00
<p align="center" class="normaltext"><a href='ma&#105&#108t&#111:ma%72%74in@%6d%6fo%64%6c%65.o%72g' title='mar&#116&#105n@&#109oo&#100&#108&#101&#46&#111&#114g'>Suggest
a new FAQ</a> (include the answer!)</p>
<hr>
<p align="right"><strong><em>Thanks to John Eyre for helping to maintain this
FAQ.</em></strong></p>
<p align="CENTER"><font size="1"><a href="." target="_top">Moodle Documentation</a></font></p>
<p align="CENTER"><font size="1">Version: $Id: faq.html,v 1.6 2003/03/30 13:54:28
moodler Exp $</font></p>
2003-04-26 05:24:07 +00:00
</body>