Problems editing config.php file

Problems editing config.php file

by Steve Rossen -
Number of replies: 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.

 

Average of ratings: -
In reply to Steve Rossen

Re: Problems editing config.php file

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Don't worry about being a novice - this project is all about learning. smile

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
In reply to Martin Dougiamas

Re: Problems editing config.php file

by 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).