+ Post New Thread
Results 1 to 8 of 8
Virtual Learning Platforms Thread, Strange Moodle problems in Technical; I've just installed Moodle on a test server running CentOS and it all seems fine on the local machine but ...
  1. #1

    Join Date
    Jun 2009
    Location
    Birmingham
    Posts
    600
    Thank Post
    92
    Thanked 72 Times in 64 Posts
    Rep Power
    24

    Strange Moodle problems

    I've just installed Moodle on a test server running CentOS and it all seems fine on the local machine but when I try and access it from a remote machine it's as if the PHP isn't being parsed.

    Do I need to set something within the PHP.conf file that I have missed or is it a security thing somewhere?

    Any help would be much appreciated.

    Rich

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    did you install and activate the php module for apache?

  3. #3

    Join Date
    Jun 2009
    Location
    Birmingham
    Posts
    600
    Thank Post
    92
    Thanked 72 Times in 64 Posts
    Rep Power
    24
    Hi,

    Yes, PHP seems to be fully installed. I can see it's configuration on the server happily.

    I think I've messed up the http.conf file somehow so that it works on the local machine but not on a remote machine, however I have no idea what I've done.

    Rich

  4. #4
    budgester's Avatar
    Join Date
    Jan 2006
    Location
    Enfield, Middlesex
    Posts
    486
    Thank Post
    4
    Thanked 37 Times in 30 Posts
    Rep Power
    24
    Check the moodle apache config or the moodle config file.

    You need to check the server address that is stored in one of these config files as moodle seems to do url creation from a base address in one of the files IIRC.

  5. Thanks to budgester from:

    Tricky_Dicky (14th July 2009)

  6. #5

    Join Date
    Jun 2009
    Location
    Birmingham
    Posts
    600
    Thank Post
    92
    Thanked 72 Times in 64 Posts
    Rep Power
    24
    Hi,

    Thanks for that, can you be any more specific about what it is I need to check?

    Rich

  7. #6

    Join Date
    Jun 2009
    Location
    Birmingham
    Posts
    600
    Thank Post
    92
    Thanked 72 Times in 64 Posts
    Rep Power
    24
    Just for some further info; this is my moodle config file:
    <?php /// Moodle Configuration File

    unset($CFG);

    $CFG->dbtype = 'mysql';
    $CFG->dbhost = 'localhost';
    $CFG->dbname = 'moodle';
    $CFG->dbuser = '********';
    $CFG->dbpass = '*******';
    $CFG->dbpersist = false;
    $CFG->prefix = 'mdl_';

    $CFG->wwwroot = 'http://localhost/moodle';
    $CFG->dirroot = '/var/www/html/moodle';
    $CFG->dataroot = '/var/www/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.
    ?>

  8. #7
    budgester's Avatar
    Join Date
    Jan 2006
    Location
    Enfield, Middlesex
    Posts
    486
    Thank Post
    4
    Thanked 37 Times in 30 Posts
    Rep Power
    24
    Quote Originally Posted by Tricky_Dicky View Post
    Just for some further info; this is my moodle config file:

    $CFG->wwwroot = 'http://localhost/moodle';
    This would be the line that you need to change.

    Change localhost to the IP or DNS name of your server.

  9. Thanks to budgester from:

    Tricky_Dicky (14th July 2009)

  10. #8

    Join Date
    Jun 2009
    Location
    Birmingham
    Posts
    600
    Thank Post
    92
    Thanked 72 Times in 64 Posts
    Rep Power
    24
    You are a star! That's sorted it.

    All I need to do know if configure it

    Rich

SHARE:
+ Post New Thread

Similar Threads

  1. Strange Login Problems
    By jsnetman in forum MIS Systems
    Replies: 1
    Last Post: 3rd April 2008, 02:56 PM
  2. Acer Laptop strange power problems!
    By maniac in forum Hardware
    Replies: 3
    Last Post: 11th January 2008, 01:24 PM
  3. Moodle Login Errors - Strange
    By ICTNUT in forum Virtual Learning Platforms
    Replies: 5
    Last Post: 28th November 2007, 09:35 PM
  4. Strange Moodle Request
    By palmer_eldritch in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 16th October 2007, 09:01 AM
  5. Strange connection problems
    By richard in forum Wireless Networks
    Replies: 14
    Last Post: 29th August 2007, 08:32 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
  •