From e317d049191558993f4884feaf8c24c709c6311c Mon Sep 17 00:00:00 2001
From: moodler 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. 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. If you don't find the answer here try the Using
+ Moodle 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. If you still can't find any answers try posting your question
+ on the appropriate forum in Using
+ Moodle - someone should be able to help you. PHP - is it installed and what version do
+ I have? My pages show fatal errors such
+ as : call to undefined function: get_string() Why do I keep getting error messages
+ about "headers already sent"? I keep getting this error: Failed
+ opening required '/web/moodle/lib/setup.php' Whenever I try to access or view
+ a file that I uploaded, I get an error "File not Found" Question: I have a strange problem with my new installation of Moodle. Whenever I try
-to access or view an uploaded resource, whether in the "Files" menu or on the course page,
-I get a 404 error like this one:
- Most questions people have are related to installation, and most of these are
+ related to the editing of config.php file. Following the installation
+ instructions carefully will usually result in a perfectly working system.
+ Here are some of the most common problems that are encountered: Make a new file on your web site called info.php, containing the following
+ text, and call it from your browser: 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. Check the dirroot and/or dataroot in config.php. You must use
+ complete, absolute pathnames: eg  $CFG->dirroot = "d:\inetpub\sites\www.yoursite.com\web\moodle"; eg  $CFG->dataroot = "d:\inetpub\sites\www.yoursite.com\database\moodle"; If you see errors like: Parse error: parse error, unexpected T_VARIABLE in c:\program
+ files\easyphp\www\moodle\config.php on line 94 then it's likely you have left out a semi-colon or ending quote
+ from a line in config.php (previous to line 94). 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. If you see errors like this: 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 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 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 Frequently Asked Questions (FAQ)
-Installation problems
+General problems
+
-Cannot access uploaded files
-
-
-Not Found
-
-The requested URL /moodle/file.php/2/myfile.jpg was not found on this server.
+Installation problems
+PHP - is it installed and what version
+ do I have?
+ <?PHP phpinfo() ?>
+Why are all my pages blank?
+My pages show fatal errors such
+ as : call to undefined function: get_string()
+
+ Fatal error: Call to undefined function: get_string() in c:\program files\easyphp\www\moodle\mod\resource\lib.php
+ on line 11Why do I keep getting error messages
+ about "headers already sent"?
+
+
-
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.
+In your config.php, the setting that you use for the dirroot + variable must be the complete path from the root of your server's hard + drive.
+Sometimes people only use the path from their home directory, + or relative to the root of the web server directory.
++
For example: Not Found: The requested URL /moodle/file.php/2/myfile.jpg + was not found on this server.
+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 Install documentation + for more details):
-- - - - +
-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 -Install documentation for more details): - -
-- -- AcceptPathInfo on --Note, this will ONLY work for Apache versions 2.x. - -
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. -
To use this alternative method: login as Admin, go into the "Configure Variables" page - and change the setting for "slasharguments". You should now be able to - access your uploaded files.
++ AcceptPathInfo on
Note, this will ONLY work for Apache versions 2.x.
+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.
+To use this alternative method: login as Admin, go into the + "Configure Variables" page and change the setting for "slasharguments". + You should now be able to access your uploaded files.
Suggest + a new FAQ (include the answer!)
+Thanks to John Eyre for helping to maintain this + FAQ.
+ +Version: $Id: faq.html,v 1.6 2003/03/30 13:54:28 + moodler Exp $
- -- -
Version: $Id$
- - + -- 2.39.5