Opened 6 years ago

Closed 6 years ago

#7065 closed Bug/Something is broken (fixed)

A Moodle Muddle

Reported by: https://id.mayfirst.org/davidkene Owned by: https://id.mayfirst.org/ross
Priority: Urgent Component: Tech
Keywords: Cc:
Sensitive: no

Description

Hello,

I'm trying to install Moodle onto the server for a class tomorrow. I keep getting this error: "Parent directory (/home/members/davidkene/sites/davidkene.com) is not writeable. Data directory (/home/members/davidkene/sites/davidkene.com/moodledata) cannot be created by the installer."

Am I doing something wrong? I think I am using the correct username and I think I have the correct permissions. Am I being overridden somehow by another account?

Change History (12)

comment:1 follow-up: Changed 6 years ago by https://id.mayfirst.org/ross

  • Owner set to https://id.mayfirst.org/ross
  • Status changed from new to assigned

Hi David,

Sorry if I didn't get back to you in time for your class, but it looks to me like you need to set the installer to write to

/home/members/davidkene/sites/davidkene.com/web <-- notice the web.

Moodle will never be able to write directly to davidkene.com as it is owned by root.

hope this helps,

~/ross

comment:2 in reply to: ↑ 1 Changed 6 years ago by https://id.mayfirst.org/davidkene

Replying to https://id.mayfirst.org/ross:

Hi David,

Sorry if I didn't get back to you in time for your class, but it looks to me like you need to set the installer to write to

/home/members/davidkene/sites/davidkene.com/web <-- notice the web.

Moodle will never be able to write directly to davidkene.com as it is owned by root.

hope this helps,

~/ross

Ross. Thanks for the tip. Actually, I tried that and received a message stating that data from the /web path was not secure. Is there no other way to place data in a secure place on server?

comment:3 Changed 6 years ago by https://id.mayfirst.org/ross

Hi David,

I'm not sure what moodle is looking for. If it's looking for an https connection (which is how I would interpret the term 'secure' in this case), then you'll have to do a bunch more work to get an ssl certificate.

I'm going to try to do a moodle install and see what needs to be done to get it installed on our shared servers.

I'll give you more detail later this afternoon,

~/ross

comment:4 Changed 6 years ago by https://id.mayfirst.org/dkg

If it's talking about paths in the filesystem, i don't think that TLS communications or X.509 certificates (or the outdated and obsolete protocol called "SSL") are relevant.

davidkene, can you show the exact error message that you got when you tried to use that path earlier?

comment:5 Changed 6 years ago by https://id.mayfirst.org/ross

  • Resolution set to fixed
  • Status changed from assigned to feedback

Hi David,

I have some answers for you now. First, you will need to store your data outside the web directory, but readable by the server. I recommend the following path:

/home/members/davidkene/sites/davidkene.com/users/davidkene/moodledata

This should give appropriate security for your data directory. According to the moodle documentation, you should also remove write privileges from all of the moodle files in your web directory. To do this you can run this from a shell prompt as the davidkene user (assuming you only have moodle installed, otherwise be more precise in your permission modifications):

chmod -R u-w ~/davidkene.com/web/*

I believe this should accomplish what you need to get moodle up and running. For the record, I followed this guide http://docs.moodle.org/22/en/Installation_Quickstart (to some degree). Here's the resulting site http://moodle.ross.mayfirst.org/

Let me know if you need further assistance,

~/ross

comment:6 Changed 6 years ago by https://id.mayfirst.org/davidkene

  • Resolution fixed deleted
  • Status changed from feedback to assigned

Ross, I'm running into the same problem. I'm going to try to delete and reinstall. Can you tell me which user has absolute authority on my portion of the server?

comment:7 Changed 6 years ago by https://id.mayfirst.org/ross

  • Resolution set to fixed
  • Status changed from assigned to feedback

Hi David,

You should be doing everything as the davidkene user. If you reach an impasse, let me know, and I can do the install for you.

~/ross

comment:8 Changed 6 years ago by https://id.mayfirst.org/davidkene

  • Resolution fixed deleted
  • Status changed from feedback to assigned

Ross,

I think I may need you to do that install. I'm running into the same problem again. I did have multiple versions of moodle installed on the server. I thought that would have presented a conflict, so I deleted all but one version, which is not deletable for some reason. So, files for moddle are on my portion of the server. One named "course" the other "hunter_college_courses." I greatly appreciate you assistance.

comment:9 Changed 6 years ago by https://id.mayfirst.org/ross

  • Resolution set to fixed
  • Status changed from assigned to feedback

Hi David,

I went ahead and set this up at courses.davidkene.com. You should have gotten two confirmation emails, one for the wrong domain and the last one from the correct domain. If you goto:

http://courses.davidkene.com/admin/index.php?lang=en&agreelicense=1

You should be able to install moodle. I chose not to muck around with your current hosting order, because I wasn't sure what the problem was.

Oh, and for the record, I gave you bad instructions above. I think you were supposed to login with the dkc user.

Anyway, if the courses.davidkene.com domain works, then you'll need to login as bkcourses@rose.mayfirst.org.

Let me know if you have any other questions,

~/ross

comment:10 Changed 6 years ago by https://id.mayfirst.org/davidkene

  • Resolution fixed deleted
  • Status changed from feedback to assigned

Thanks, Ross. The DCK user password has long been forgotten. THAT could have been my problem. May you please reset it? Or am I able to reset it, like I reset others?

comment:11 Changed 6 years ago by https://id.mayfirst.org/ross

  • Resolution set to fixed
  • Status changed from assigned to feedback

You should be able to reset it or directly change it from the control panel, here:

https://members.mayfirst.org/cp/index.php?area=hosting_order&hosting_order_id=1000279&action=edit&item_id=26593

comment:12 Changed 6 years ago by automatic

  • Status changed from feedback to closed

No news is good news (we hope)! Given the lack of feedback, we think this ticket can be closed.

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.