Config.php will not automatically upload

Config.php will not automatically upload

by Kyle Johnson -
Number of replies: 5
The installer script was not able to automatically create a config.php file containing your chosen settings, probably because the Moodle directory is not writeable. You can manually copy the following code into a file named config.php within the root directory of Moodle

I finally got Ubuntu 6.06 Server edition running and the required plugins installed.

I get as far as the last step for the creation of the config.php file and i keep getting that error. Im lost, i am pretty sure i gave the directory Write ability. Ive been searching the fourms and i cannot find a solution. Can someone please help me out. thanks!
Average of ratings: -
In reply to Kyle Johnson

Re: Config.php will not automatically upload

by Kyle Johnson -
can someone please help me, i need to get this server up and running for the school i work for.
In reply to Kyle Johnson

Re: Config.php will not automatically upload

by Richard Enison -
KJ,

You made the Moodle directory writeable ... by whom? What user owns it? What user does Apache (I presume that is the web server you are using) run as? Look for a line in httpd.conf that begins

User

RLE
In reply to Richard Enison

Re: Config.php will not automatically upload

by Kyle Johnson -

Thank you, but i figured it out. i just gave the directory full access.  Now I have to figure out how and which directory to give the correct permissions to.  Yes i am using Apache

 

In reply to Kyle Johnson

Re: Config.php will not automatically upload

by Richard Enison -
KJ,

The main Moodle folder (directory), where index.php, install.php, and config-dist.php are, is where config.php is created. It and all subfolders, as well as your Moodle data folder and its subfolders, should be owned by the same user Apache runs as. That's why I asked you to look for the User directive in httpd.conf. That will determine the user name Apache will run as when launched by root. It is usually apache or nobody. See http://docs.moodle.org/en/Installing_Moodle#Creating_the_data_directory_.28moodledata.29

RLE
In reply to Richard Enison

Re: Config.php will not automatically upload

by José de Jesús -

Pace with you.

K.J.:

It remembers:
1. In the console of commandos to create a base of data with the moodledata name.
2. In the directory of httpdocs, to raise the folder of moodle (of the version to install) and to create a folder with the moodledata name (this is left empty because it will be written automaticamente from the installation).
3. If you already ran the installation, will have to erase the contents that were generated in the moodledata folder.
After making the previous steps, it returns to issue the installation order: www.tuservidor.com/moodle
If everything is correct, will begin the instlación. And the file will be able to be formed congig.php.
Greetings
José de Jesús.