Permission Problem

Permission Problem

by DeWayne Demland -
Number of replies: 10

I have just installed 2.0 on a local machine, for now. I copied the moodledata files and placed theminto the folder, and renamed the orginal, incase I screwed something up. When I run moodle now I am getting a permssion issue, but both the old folder and the new are identical:

 

 

What did I do wrong?

Average of ratings: -
In reply to DeWayne Demland

Re: Permission Problem

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

> I have just installed 2.0 on a local machine, for now. I copied the moodledata files and placed theminto the folder, and renamed the orginal,

Is this a new installation? In that case you begin with an empty moodledata.

> When I run moodle now I am getting a permssion issue, but both the old folder and the new are identical:

Which installation method did you follow out of the list at
http://docs.moodle.org/en/Administrator_documentation#Unix.2FLinux-based
In reply to Visvanath Ratnaweera

Re: Permission Problem

by DeWayne Demland -

Both instances were on a Ubuntu 10.10 server as a new install. These are new machines I am setting up. I am looking to take the database from my server and load onto one of them. That why I copped the moodledata folder and imported the mysql database. Now I cam getting the error.

In reply to DeWayne Demland

Re: Permission Problem

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

You have not answered my second question?

> Which installation method did you follow out of the list at
> http://docs.moodle.org/en/Administrator_documentation#Unix.2FLinux-based

Any way, what are the permissions after all? Hier is a sample "screen shot" from a Debian server:

# ls -ld /var/moodledata
drwxr-xr-x 18 www-data root 4096 18. Sep 1:55 /var/moodledata/

As you can see, the owner of the Apache-process www-data has read/write permissions on /var/moodledata.
In reply to DeWayne Demland

Re: Permission Problem

by Peter Svec -

Can you please paste the value of $CFG->dataroot variable from yout config.php file?

In reply to Peter Svec

Re: Permission Problem

by DeWayne Demland -

$CFG->dataroot  = '/var/moodledata';

In reply to DeWayne Demland

Re: Permission Problem

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Definitely a new/clean install ? Do this...


$ sudo rm -rf /var/moodledata
$ sudo mkdir /var/moodledata
$ sudo chmod 0777 /var/moodledata


In reply to Howard Miller

Re: Permission Problem

by DeWayne Demland -

that did something, it now goes to a moodle login screen. Problem is I have not set any login information for any one yet. I can't log in.

 

I am kind of thinking that it did not create a database.

In reply to DeWayne Demland

Re: Permission Problem

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you get to the login screen you have a database.

Drop the database, recreate it and install again. Don't use the Ubuntu Moodle apt-get. Pleeeeeease!! There's absolutely no need.
In reply to Howard Miller

Re: Permission Problem

by DeWayne Demland -

Not to sound too dump, how do you drop the database and recreate it, by a line command? I just don't want to screw it up any worse than I have.

In reply to DeWayne Demland

Re: Permission Problem

by DeWayne Demland -

Never mind. I had a brain fart. I have done it and it is now complete and Moodle works on both machines  smile .

 

Now I am trying to restore the database from my hosted server to these two machines. I have done a dump and have the file. When I go to restore this file, on either machine, I get an error:

how do I correct this to resotre the database? I do not know what this means.