You need to create a config.php

You need to create a config.php

by Jason Mitchell -
Number of replies: 3

System: FreeBSD 5.x, Apache 2.x, PHP 4.3.x (no perl).

I receive this error after I have configured my config.php and uploaded it to the server and attempt to access domain.com/moodle.

It redirects to /moodle/admin/index.php. Where it gives me the error. I looked at the /admin/index.php, and saw were it calls ../config.php, so I passed /moodle/admin/../config.php and I got an HTTP 200. So the file is there, and can be seen by the browser. Then I changed the index.php to point exactly at /moodle/config.php - same resulting error message.

I resolved this problem by commenting out the code to check the fileexists function. I am uncertain of the implications of making this change. After I made the change, the install went as usual, and I am now moodling with the accustomed ease. Can anyone give someinsight into this change, specifically, any negative effects that might result therefrom.

Thank you.

J. Mitchell

Average of ratings: -
In reply to Jason Mitchell

Re: You need to create a config.php

by Jason Mitchell -

I answered my own question. There is something with my apache or php configuration.

Another chap had this problem not long ago as well(http://moodle.org/mod/forum/discuss.php?d=1807) - I did not see any answer, other than upgrade.

Whenever there is a check for file exists, the ../ cannot be understood, resulting in a false return, prompting the error.

Can any Apache or PHP guru's give me some insight. I can provide my php.ini and httpd.conf files for review if necessary.

I did not upgrade, this is a fresh install.

Thank you

J. Mitchell

In reply to Jason Mitchell

Re: You need to create a config.php

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
Wierd one ... but if it's working then it's working, don't worry.
In reply to Martin Dougiamas

Re: You need to create a config.php

by Jason Mitchell -

Well - it's not exactly. The install went well, but it is continually failing whenever there is a fileexists check. I can change the code, which doesn't really address the issue. I am certain it is a web server configuration but I can't see it.

I have tried using /home/user/public_html and /usr/home/user/public_html - same thing occurs. All looks good in the php.ini and the httpd.conf. Which leaves me with little choice, other than changing the code.

J.