Problems editing config.php file

Problems editing config.php file

door Steve Rossen -
Aantal antwoorden: 4

I apologize for being such a novice. 

I find I am having problems setting up Moodle from the very beginning.

I am trying to set Moodle up locally on my machine to test it before trying to put it on my server.  I have edited the config.php file to access the name of my machine and directory, to wit http://steve/moodle.  I also inserted the correct hard path to the same directory.  I created a database, Moodle and created a local user, me, with a password.

But, when I go to Moodle/Admin via the browser, I get the following error message.

Fatal error: Failed opening required 'config.php' (include_path='.;C:\Program Files\EasyPHP\php\pear\') in c:\program files\easyphp\www\moodle\index.php on line 4

I am beginning to go around in circles trying to fix it. Such are the trials of the novice.

 

Gemiddelde van de beoordelingen:  -
Als antwoord op Steve Rossen

Re: Problems editing config.php file

door Martin Dougiamas -
Foto van Core developers Foto van Documentation writers Foto van Moodle HQ Foto van Particularly helpful Moodlers Foto van Plugin developers Foto van Testers
Don't worry about being a novice - this project is all about learning. glimlach

I'll start with the obvious .. did you make a copy of config-dist.php to a file called config.php, and edit the latter? This file has to be located in the same directory as config-dist.php
Gemiddelde van de beoordelingen:  -
Als antwoord op Martin Dougiamas

Re: Problems editing config.php file

door Steve Rossen -
Yes.  I made a copy, edited it, and it now resides in the same directory as config-dist.php.  One thing I did notice, though.  Config-dist.php is identified in Explorer as a PHP file.  But the new one, config.php, is described as a text file (in case that makes a difference).
Gemiddelde van de beoordelingen:  -
Als antwoord op Steve Rossen

Re: Problems editing config.php file

door Martin Dougiamas -
Foto van Core developers Foto van Documentation writers Foto van Moodle HQ Foto van Particularly helpful Moodlers Foto van Plugin developers Foto van Testers
...?

Can you email your config.php to me as an attachment?
Gemiddelde van de beoordelingen:  -