What program are you using to view the config-dist.php file?
Gary
What editor are you using to edit the config.php? That may be what is causing your problems. You may want to use something like Textpad or another text editor that understand PHP scripts.
Re: Does anyone have a clean copy of the config.php
Hi Gary,
Does your config file look like the one in the screenshot? I don't know what setting is responsible for that, but my Notepad also displays the config file without returns. This is why I use AceHTML to edit php files.
Przemek
Re: Does anyone have a clean copy of the config.php
Re: The config.php is not setup so that non-Programmers can edit it
I have several PHP scripts installed on my servers
php/BB2
Phase
PostNuke
. . . . and there were no issues where to place the date in the variables. Moodle seemingly expects non-techs to participate in the CMS but keeps them at bay from the configuration file by not formatting it where it shows clearly where to plug-in the necessary data.
I am using the HTML-Kit a free and great editor and this same editor managed to add the data into other config.php files why not Moodle?
Please do not send others to the installation manual. It does not give an example of how a config file looks like after it has been edited?
Usually this is what a well formatted config file looks like from php/BB:
$pnconfig['dbtype'] = 'mysql';
$pnconfig['dbhost'] = 'dbhost.com';
$pnconfig['dbpass'] = 'password';
$pnconfig['dbname'] = 'mystydata';
Is this so difficult to do? One thing about doing something when you have a critical mass, when you do it right, you've done it right for thousands of users and reduced your resources for technical help.
Like a defective part, I think Moodle's config file is unfitting for Moodle and it should be recalled. Yes, it should be sent back and reformatted so that the non-programmer can make sense of it. It should really get a complete make over and have a wizard setup the install. Is Moodle worth the bother? I think so.
Rick / Los Angeles
Re: The config.php is not setup so that non-Programmers can edit it
Great point Rick
I tried to open and understand it in wordpad, but was completely lost!
I then open it is dreamweaver, and Wow! I saw all the instructions as one color and the code as another. Made all the difference. Thank you Dreamweaver!
Re: The config.php is not setup so that non-Programmers can edit it
Re: The config.php is not setup so that non-Programmers can edit it
Moodle.org has dozens and dozens of people who can and will help you. Are you asking for help? Or are you having a bad day and kicking cats?
The config-dist.php file does have a very clear equivalent to:
$pnconfig['dbtype'] = 'mysql';
$pnconfig['dbhost'] = 'dbhost.com';
$pnconfig['dbpass'] = 'password';
$pnconfig['dbname'] = 'mystydata';
It looks like this:
$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)
$CFG->dbhost = 'localhost'; // eg localhost or db.isp.com
$CFG->dbname = 'moodle'; // database name, eg moodle
$CFG->dbuser = 'username'; // your database username
$CFG->dbpass = 'password'; // your database password
$CFG->prefix = 'mdl_'; // Prefix to use for all table names
Except it has plenty of comments tucked around it to explain how to set-it up.
Let us know what you need. Ask and you will receive. From Scott's comment it sounds like you would be better off opening the files in an editor (BBedit, Dreamweaver, or SimpleText on Mac, a few others have been recommended in this thread) that reads php files.
-Tom
p.s. regarding: "Please do not send others to the installation manual" ... When in this thread have you heard someone say RTFM? As my mother says, if you are going to treat us like we are jerks, give us a chance to enjoy the part first.
Re: The config.php is not setup so that non-Programmers can edit it
How many config files are there?
Re: The config.php is not setup so that non-Programmers can edit it
Here's a list of editors that may help you to see and understand a bit of what it is you're looking at.
And yes, I believe we all think Moodle is worth a little bit of effort on the users part.
http://moodle.org/mod/forum/discuss.php?d=8712
The Moodle Config Saga continues
Thank you for your comforting words, I am looking forward in joining the Moodel community and willing to spend more time in getting Moodle installed. Yes I was a bit frustrated when the first step I took collapsed.
Rick
Re: The config.php is not setup so that non-Programmers can edit it
Re: Does anyone have a clean copy of the config.php
Moodle does *not* come with config.php. If you did not use the automatic installation scripts you have to create it by copying config-dist.php -> config.php and then editing it.
Regarding some other points...
On the point of the format, all Moodle files are formatted for Unix. No one ever managed to agree on things like line endings for text files between different platforms so a choice had to be made.
The answer is to download a decent text editor that will recognise the file type in use. A lot of this is just the curse of Windows though
EDIT.. oh yeah - I remember now- for once, I followed the instructions....
Gary,
Attached is a fresh copy of config-dist.php. You only need to make modifications in sections 1-4. Ignore the slashmarks, they simply indicate areas in the code that are commented out for explanation purposes. After you make your changes, insure there are no spaces at the bottom of the file. The last line should read: ?>
Rename the file config.php and upload to the moodle directory. You should also know that you must make all these changes in a text editor (NotePad, WordPad or SimpleText on Mac), and not a word processor.
Hope this helps you out.