Problems editing config.php file

Problems editing config.php file

de Steve Rossen -
Número de respuestas: 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.

 

Promedio de valoraciones: -
En respuesta a Steve Rossen

Re: Problems editing config.php file

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

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
En respuesta a Martin Dougiamas

Re: Problems editing config.php file

de 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).
En respuesta a Steve Rossen

Re: Problems editing config.php file

de Martin Dougiamas -
Imagen de Core developers Imagen de Documentation writers Imagen de Moodle HQ Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers
...?

Can you email your config.php to me as an attachment?