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 ...
-
13th July 2009, 03:46 PM #1 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
-
-
IDG Tech News
-
13th July 2009, 04:30 PM #2 did you install and activate the php module for apache?
-
-
13th July 2009, 04:49 PM #3 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
-
-
13th July 2009, 05:58 PM #4 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.
-
Thanks to budgester from:
Tricky_Dicky (14th July 2009)
-
14th July 2009, 08:38 AM #5 Hi,
Thanks for that, can you be any more specific about what it is I need to check?
Rich
-
-
14th July 2009, 09:40 AM #6 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.
?>
-
-
14th July 2009, 09:58 AM #7 
Originally Posted by
Tricky_Dicky
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.
-
Thanks to budgester from:
Tricky_Dicky (14th July 2009)
-
14th July 2009, 10:04 AM #8 You are a star! That's sorted it.
All I need to do know if configure it 
Rich
-
SHARE:
Similar Threads
-
By jsnetman in forum MIS Systems
Replies: 1
Last Post: 3rd April 2008, 02:56 PM
-
By maniac in forum Hardware
Replies: 3
Last Post: 11th January 2008, 02:24 PM
-
By ICTNUT in forum Virtual Learning Platforms
Replies: 5
Last Post: 28th November 2007, 10:35 PM
-
By palmer_eldritch in forum Virtual Learning Platforms
Replies: 2
Last Post: 16th October 2007, 09:01 AM
-
By richard in forum 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
-
Forum Rules