+ Post New Thread
Results 1 to 10 of 10
Web Development Thread, Moodle Problems in Coding and Web Development; hey all. I wasn't sure what section to put this in, but i figured what with it being PHP and ...
  1. #1

    Join Date
    Feb 2006
    Location
    Staffordshire
    Posts
    134
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Moodle Problems

    hey all. I wasn't sure what section to put this in, but i figured what with it being PHP and all that this would be the best place.

    I've just installed it onto our Win2K3 Server running IIS6. But when you go on the actual pages you get faced with:
    Code:
    Warning: include(G:\Inetpub\WWWroot\moodle/theme/standardwhite/config.php) [function.include]: failed to open stream: No such file or directory in G:\Inetpub\WWWroot\moodle\lib\weblib.php on line 2193
    
    Warning: include() [function.include]: Failed opening 'G:\Inetpub\WWWroot\moodle/theme/standardwhite/config.php' for inclusion (include_path='.;c:\php\includes;G:\InetPub\WWWRoot') in G:\Inetpub\WWWroot\moodle\lib\weblib.php on line 2193
    
    Warning: Cannot modify header information - headers already sent by (output started at G:\Inetpub\WWWroot\moodle\lib\weblib.php:2193) in G:\Inetpub\WWWroot\moodle\lib\moodlelib.php on line 2142
    
    Warning: Cannot modify header information - headers already sent by (output started at G:\Inetpub\WWWroot\moodle\lib\weblib.php:2193) in G:\Inetpub\WWWroot\moodle\lib\moodlelib.php on line 2143
    
    Warning: include(G:\Inetpub\WWWroot\moodle/theme/standardwhite/header.html) [function.include]: failed to open stream: No such file or directory in G:\Inetpub\WWWroot\moodle\lib\weblib.php on line 1898
    
    Warning: include() [function.include]: Failed opening 'G:\Inetpub\WWWroot\moodle/theme/standardwhite/header.html' for inclusion (include_path='.;c:\php\includes;G:\InetPub\WWWRoot') in G:\Inetpub\WWWroot\moodle\lib\weblib.php on line 1898
    Is there something blatently obvious I'm missing from the PHP setup or something?

    Thanks
    -Rob

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,995
    Thank Post
    123
    Thanked 286 Times in 263 Posts
    Rep Power
    108

    Re: Moodle Problems

    Have you entered some kind of path wrong some where?

    Code:
    Warning: include(G:\Inetpub\WWWroot\moodle/theme/standardwhite/header.html)
    The path starts with back slashes and ends with forward slashes.

  3. #3

    Join Date
    Feb 2006
    Location
    Staffordshire
    Posts
    134
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moodle Problems

    Quote Originally Posted by ChrisH
    Have you entered some kind of path wrong some where?

    Code:
    Warning: include(G:\Inetpub\WWWroot\moodle/theme/standardwhite/header.html)
    The path starts with back slashes and ends with forward slashes.
    Yeah moodle seems to of "chosen" to do that, I've tried changing the first part in config.php so that it uses '/' but then it says I have an error in my Config.php and to change '/' to '\'

  4. #4

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,615
    Thank Post
    747
    Thanked 1,707 Times in 1,520 Posts
    Rep Power
    437

    Re: Moodle Problems

    What did you use to install php on your 2k3 server?

    I used http://www.easyphp.org/ and had no problems with the installation.

    Ben

  5. #5

    Join Date
    Feb 2006
    Location
    Staffordshire
    Posts
    134
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moodle Problems

    Quote Originally Posted by plexer
    What did you use to install php on your 2k3 server?

    I used http://www.easyphp.org/ and had no problems with the installation.

    Ben
    Just the standard MSI from php.net and then chucked on the extension dll's it needed.

  6. #6

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,615
    Thank Post
    747
    Thanked 1,707 Times in 1,520 Posts
    Rep Power
    437

    Re: Moodle Problems

    I would suggest trying the easyphp setup.

  7. #7

    Join Date
    Feb 2006
    Location
    Staffordshire
    Posts
    134
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moodle Problems

    Quote Originally Posted by plexer
    I would suggest trying the easyphp setup.
    Aye, I'll keep it as an option. Surely there must be just something set wrong somewhere in php.ini or the like?

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Moodle Problems

    You have blank lines at the end of your config.php

  9. #9

    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Harpenden
    Posts
    2,551
    Thank Post
    59
    Thanked 358 Times in 278 Posts
    Blog Entries
    7
    Rep Power
    131

    Re: Moodle Problems

    I have a feeling the PHP only has the bare minimum required to get going when you install it via the MSI. If you download the ZIP (which is eight times the size) and configure it manually you might have more success.

    FYI I'm running an experimental Moodle on IIS6 and PHP 4 with no problems.

  10. #10

    Join Date
    Feb 2006
    Location
    Staffordshire
    Posts
    134
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moodle Problems

    Quote Originally Posted by Geoff
    You have blank lines at the end of your config.php
    I've just checked and it is EXACTLY like:
    Code:
    <?php  /// Moodle Configuration File 
    
    unset($CFG);
    
    $CFG->dbtype    = 'mysql';
    $CFG->dbhost    = 'localhost';
    $CFG->dbname    = 'moodle';
    $CFG->dbuser    = 'moodleuser';
    $CFG->dbpass    = 'testpass';
    $CFG->dbpersist =  false;
    $CFG->prefix    = 'mdl_';
    
    $CFG->wwwroot   = 'http://localhost:8000/moodle';
    $CFG->dirroot   = 'G:\Inetpub\WWWroot\moodle';
    $CFG->dataroot  = 'G:\MoodleData';
    $CFG->admin     = 'admin';
    
    $CFG->directorypermissions = 00777;  // try 02777 on a server in Safe Mode
    
    require_once("$CFG->dirroot/lib/setup.php");
    // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
    // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
    ?>
    with no extra spaces etc

    Quote Originally Posted by Norphy
    I have a feeling the PHP only has the bare minimum required to get going when you install it via the MSI. If you download the ZIP (which is eight times the size) and configure it manually you might have more success.

    FYI I'm running an experimental Moodle on IIS6 and PHP 4 with no problems.
    Aye that it does, I extracted the required extensions (gd.dll and mysql.dll) after I installed the MSI. Could it have anything to do with running PHP 5.1.2 rather than PHP 4?

    -Thanks for all the responses



SHARE:
+ Post New Thread

Similar Threads

  1. Moodle Problems - Can i have a bit of help please
    By timbo343 in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 20th June 2007, 04:28 PM
  2. Moodle
    By wesleyw in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 29th March 2007, 11:24 AM
  3. Moodle Installation Problems
    By EvLPhenom in forum Virtual Learning Platforms
    Replies: 15
    Last Post: 1st December 2006, 08:04 PM
  4. Moodle - W3C
    By wesleyw in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 22nd May 2006, 02:03 PM
  5. Moodle or not to Moodle
    By alan-d in forum Web Development
    Replies: 5
    Last Post: 20th January 2006, 12:56 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •