Moodle installation issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am trying to install moodle onto my web sever, but it can't create the moodle data directory, because of missing write permissions:
Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer.
I have tried to set chmod 777 & 666 to the www directory, but it still doesn't work...
ls -al result:
drwxrwsrwx+ 4 apache apache 31 Dec 8 15:49 www
Edit:
My permissions for the www folder are just ultimately messed up, because i don't understand a thing about permissions could someone help me fix them up? I need to also allow sftp_users group to access the files:
ls -al on www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 www
ls -al inside www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 .
drwxr-xr-x. 22 root root 4096 Dec 8 17:29 ..
drwxrwx---. 2 root sftp_users 6 Aug 24 21:12 cgi-bin
drwxrws---+ 3 root sftp_users 35 Dec 8 19:36 html
drwxrwsr-x+ 2 root sftp_users 6 Dec 8 19:35 moodledata
permissions centos-7
add a comment |
I am trying to install moodle onto my web sever, but it can't create the moodle data directory, because of missing write permissions:
Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer.
I have tried to set chmod 777 & 666 to the www directory, but it still doesn't work...
ls -al result:
drwxrwsrwx+ 4 apache apache 31 Dec 8 15:49 www
Edit:
My permissions for the www folder are just ultimately messed up, because i don't understand a thing about permissions could someone help me fix them up? I need to also allow sftp_users group to access the files:
ls -al on www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 www
ls -al inside www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 .
drwxr-xr-x. 22 root root 4096 Dec 8 17:29 ..
drwxrwx---. 2 root sftp_users 6 Aug 24 21:12 cgi-bin
drwxrws---+ 3 root sftp_users 35 Dec 8 19:36 html
drwxrwsr-x+ 2 root sftp_users 6 Dec 8 19:35 moodledata
permissions centos-7
moodle.org/mod/forum/discuss.php?d=164786 - scroll to bottom answer by Jason Vore... Do you have root/SSH access to your server?
– Kinnectus
Dec 8 '15 at 17:27
Not root ssh access, but ssh access.
– Jojo Coana
Dec 8 '15 at 17:30
Very late response, but for other searchers: computer programming questions like this should rather be asked at StackOverflow.com (they actually have a Moodle tag)
– Ochado
Apr 29 '18 at 2:13
I would disagree. This is clearly not about programming (though I understand why StackOverflow might have amoodle
tag). Assuming this wouldn't be appropriate here (since the software under discussion is a CMS), it would almost certainly be more appropriate for the Webmasters SE (which has amoodle
tag as well).
– Anaksunaman
Apr 29 '18 at 7:47
add a comment |
I am trying to install moodle onto my web sever, but it can't create the moodle data directory, because of missing write permissions:
Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer.
I have tried to set chmod 777 & 666 to the www directory, but it still doesn't work...
ls -al result:
drwxrwsrwx+ 4 apache apache 31 Dec 8 15:49 www
Edit:
My permissions for the www folder are just ultimately messed up, because i don't understand a thing about permissions could someone help me fix them up? I need to also allow sftp_users group to access the files:
ls -al on www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 www
ls -al inside www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 .
drwxr-xr-x. 22 root root 4096 Dec 8 17:29 ..
drwxrwx---. 2 root sftp_users 6 Aug 24 21:12 cgi-bin
drwxrws---+ 3 root sftp_users 35 Dec 8 19:36 html
drwxrwsr-x+ 2 root sftp_users 6 Dec 8 19:35 moodledata
permissions centos-7
I am trying to install moodle onto my web sever, but it can't create the moodle data directory, because of missing write permissions:
Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer.
I have tried to set chmod 777 & 666 to the www directory, but it still doesn't work...
ls -al result:
drwxrwsrwx+ 4 apache apache 31 Dec 8 15:49 www
Edit:
My permissions for the www folder are just ultimately messed up, because i don't understand a thing about permissions could someone help me fix them up? I need to also allow sftp_users group to access the files:
ls -al on www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 www
ls -al inside www:
drwxrwsrwx+ 5 apache sftp_users 48 Dec 8 19:35 .
drwxr-xr-x. 22 root root 4096 Dec 8 17:29 ..
drwxrwx---. 2 root sftp_users 6 Aug 24 21:12 cgi-bin
drwxrws---+ 3 root sftp_users 35 Dec 8 19:36 html
drwxrwsr-x+ 2 root sftp_users 6 Dec 8 19:35 moodledata
permissions centos-7
permissions centos-7
edited Dec 8 '15 at 17:41
Jojo Coana
asked Dec 8 '15 at 17:23
Jojo CoanaJojo Coana
62111
62111
moodle.org/mod/forum/discuss.php?d=164786 - scroll to bottom answer by Jason Vore... Do you have root/SSH access to your server?
– Kinnectus
Dec 8 '15 at 17:27
Not root ssh access, but ssh access.
– Jojo Coana
Dec 8 '15 at 17:30
Very late response, but for other searchers: computer programming questions like this should rather be asked at StackOverflow.com (they actually have a Moodle tag)
– Ochado
Apr 29 '18 at 2:13
I would disagree. This is clearly not about programming (though I understand why StackOverflow might have amoodle
tag). Assuming this wouldn't be appropriate here (since the software under discussion is a CMS), it would almost certainly be more appropriate for the Webmasters SE (which has amoodle
tag as well).
– Anaksunaman
Apr 29 '18 at 7:47
add a comment |
moodle.org/mod/forum/discuss.php?d=164786 - scroll to bottom answer by Jason Vore... Do you have root/SSH access to your server?
– Kinnectus
Dec 8 '15 at 17:27
Not root ssh access, but ssh access.
– Jojo Coana
Dec 8 '15 at 17:30
Very late response, but for other searchers: computer programming questions like this should rather be asked at StackOverflow.com (they actually have a Moodle tag)
– Ochado
Apr 29 '18 at 2:13
I would disagree. This is clearly not about programming (though I understand why StackOverflow might have amoodle
tag). Assuming this wouldn't be appropriate here (since the software under discussion is a CMS), it would almost certainly be more appropriate for the Webmasters SE (which has amoodle
tag as well).
– Anaksunaman
Apr 29 '18 at 7:47
moodle.org/mod/forum/discuss.php?d=164786 - scroll to bottom answer by Jason Vore... Do you have root/SSH access to your server?
– Kinnectus
Dec 8 '15 at 17:27
moodle.org/mod/forum/discuss.php?d=164786 - scroll to bottom answer by Jason Vore... Do you have root/SSH access to your server?
– Kinnectus
Dec 8 '15 at 17:27
Not root ssh access, but ssh access.
– Jojo Coana
Dec 8 '15 at 17:30
Not root ssh access, but ssh access.
– Jojo Coana
Dec 8 '15 at 17:30
Very late response, but for other searchers: computer programming questions like this should rather be asked at StackOverflow.com (they actually have a Moodle tag)
– Ochado
Apr 29 '18 at 2:13
Very late response, but for other searchers: computer programming questions like this should rather be asked at StackOverflow.com (they actually have a Moodle tag)
– Ochado
Apr 29 '18 at 2:13
I would disagree. This is clearly not about programming (though I understand why StackOverflow might have a
moodle
tag). Assuming this wouldn't be appropriate here (since the software under discussion is a CMS), it would almost certainly be more appropriate for the Webmasters SE (which has a moodle
tag as well).– Anaksunaman
Apr 29 '18 at 7:47
I would disagree. This is clearly not about programming (though I understand why StackOverflow might have a
moodle
tag). Assuming this wouldn't be appropriate here (since the software under discussion is a CMS), it would almost certainly be more appropriate for the Webmasters SE (which has a moodle
tag as well).– Anaksunaman
Apr 29 '18 at 7:47
add a comment |
1 Answer
1
active
oldest
votes
It could be that selinux is blocking access. Check it with command getenforce. If the result is Enforce, then you may want to change it to Permissive, with command setenforce 0 or setenforce Permissive. You can also disable selinux by editing /etc/selinux/config and setting SELINUX = disabled. Reboot would be required in that case.
Also - is the directory ./moodledata a www directory for moodle or is it directory for file storage? If the second case, best is to move it outside the www directory, a designated directory in / like /moodledata and then set permissions on that directory for apache (or put this folder on separate disk or SAN share or NFS).
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1010705%2fmoodle-installation-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It could be that selinux is blocking access. Check it with command getenforce. If the result is Enforce, then you may want to change it to Permissive, with command setenforce 0 or setenforce Permissive. You can also disable selinux by editing /etc/selinux/config and setting SELINUX = disabled. Reboot would be required in that case.
Also - is the directory ./moodledata a www directory for moodle or is it directory for file storage? If the second case, best is to move it outside the www directory, a designated directory in / like /moodledata and then set permissions on that directory for apache (or put this folder on separate disk or SAN share or NFS).
add a comment |
It could be that selinux is blocking access. Check it with command getenforce. If the result is Enforce, then you may want to change it to Permissive, with command setenforce 0 or setenforce Permissive. You can also disable selinux by editing /etc/selinux/config and setting SELINUX = disabled. Reboot would be required in that case.
Also - is the directory ./moodledata a www directory for moodle or is it directory for file storage? If the second case, best is to move it outside the www directory, a designated directory in / like /moodledata and then set permissions on that directory for apache (or put this folder on separate disk or SAN share or NFS).
add a comment |
It could be that selinux is blocking access. Check it with command getenforce. If the result is Enforce, then you may want to change it to Permissive, with command setenforce 0 or setenforce Permissive. You can also disable selinux by editing /etc/selinux/config and setting SELINUX = disabled. Reboot would be required in that case.
Also - is the directory ./moodledata a www directory for moodle or is it directory for file storage? If the second case, best is to move it outside the www directory, a designated directory in / like /moodledata and then set permissions on that directory for apache (or put this folder on separate disk or SAN share or NFS).
It could be that selinux is blocking access. Check it with command getenforce. If the result is Enforce, then you may want to change it to Permissive, with command setenforce 0 or setenforce Permissive. You can also disable selinux by editing /etc/selinux/config and setting SELINUX = disabled. Reboot would be required in that case.
Also - is the directory ./moodledata a www directory for moodle or is it directory for file storage? If the second case, best is to move it outside the www directory, a designated directory in / like /moodledata and then set permissions on that directory for apache (or put this folder on separate disk or SAN share or NFS).
answered Nov 17 '17 at 11:44
Jarek JóźwikJarek Jóźwik
712
712
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1010705%2fmoodle-installation-issue%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
moodle.org/mod/forum/discuss.php?d=164786 - scroll to bottom answer by Jason Vore... Do you have root/SSH access to your server?
– Kinnectus
Dec 8 '15 at 17:27
Not root ssh access, but ssh access.
– Jojo Coana
Dec 8 '15 at 17:30
Very late response, but for other searchers: computer programming questions like this should rather be asked at StackOverflow.com (they actually have a Moodle tag)
– Ochado
Apr 29 '18 at 2:13
I would disagree. This is clearly not about programming (though I understand why StackOverflow might have a
moodle
tag). Assuming this wouldn't be appropriate here (since the software under discussion is a CMS), it would almost certainly be more appropriate for the Webmasters SE (which has amoodle
tag as well).– Anaksunaman
Apr 29 '18 at 7:47