Moodle installation on Ubuntu 16.04 LTS
Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.
I need to edit this file line 30.
16.04
New contributor
add a comment |
Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.
I need to edit this file line 30.
16.04
New contributor
What error message does it give you, and what editor are you using?
– Charles Green
Jan 23 at 18:43
1
Possible duplicate of How can I edit a .conf file owned by root?
– karel
Jan 23 at 18:48
1
Make sure you use the answer provided by @karel rather than the accepted answer to the linked question: The command in the linked question has been removed from Ubuntu.
– Charles Green
Jan 23 at 18:54
add a comment |
Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.
I need to edit this file line 30.
16.04
New contributor
Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.
I need to edit this file line 30.
16.04
16.04
New contributor
New contributor
edited Jan 23 at 18:45
RH Education Co. Ltd.
New contributor
asked Jan 23 at 18:43
RH Education Co. Ltd.RH Education Co. Ltd.
11
11
New contributor
New contributor
What error message does it give you, and what editor are you using?
– Charles Green
Jan 23 at 18:43
1
Possible duplicate of How can I edit a .conf file owned by root?
– karel
Jan 23 at 18:48
1
Make sure you use the answer provided by @karel rather than the accepted answer to the linked question: The command in the linked question has been removed from Ubuntu.
– Charles Green
Jan 23 at 18:54
add a comment |
What error message does it give you, and what editor are you using?
– Charles Green
Jan 23 at 18:43
1
Possible duplicate of How can I edit a .conf file owned by root?
– karel
Jan 23 at 18:48
1
Make sure you use the answer provided by @karel rather than the accepted answer to the linked question: The command in the linked question has been removed from Ubuntu.
– Charles Green
Jan 23 at 18:54
What error message does it give you, and what editor are you using?
– Charles Green
Jan 23 at 18:43
What error message does it give you, and what editor are you using?
– Charles Green
Jan 23 at 18:43
1
1
Possible duplicate of How can I edit a .conf file owned by root?
– karel
Jan 23 at 18:48
Possible duplicate of How can I edit a .conf file owned by root?
– karel
Jan 23 at 18:48
1
1
Make sure you use the answer provided by @karel rather than the accepted answer to the linked question: The command in the linked question has been removed from Ubuntu.
– Charles Green
Jan 23 at 18:54
Make sure you use the answer provided by @karel rather than the accepted answer to the linked question: The command in the linked question has been removed from Ubuntu.
– Charles Green
Jan 23 at 18:54
add a comment |
1 Answer
1
active
oldest
votes
If you are following the installation instructions from moodle.com you may have missed a small, but essemtial point. Their command line
cd /var/www/html/moodle sudo vim config.php
realloy should be broken into correct separate lines, as:
cd /var/www/html/moodle
sudo vim config.php
The sudo
part of the second command will prompt you for your password, and grant you root privileges for the editing of the "config.php" file. This could have been done in a single line command with
cd /var/www/html/moodle && sudo vim config.php
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});
}
});
RH Education Co. Ltd. is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1112308%2fmoodle-installation-on-ubuntu-16-04-lts%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
If you are following the installation instructions from moodle.com you may have missed a small, but essemtial point. Their command line
cd /var/www/html/moodle sudo vim config.php
realloy should be broken into correct separate lines, as:
cd /var/www/html/moodle
sudo vim config.php
The sudo
part of the second command will prompt you for your password, and grant you root privileges for the editing of the "config.php" file. This could have been done in a single line command with
cd /var/www/html/moodle && sudo vim config.php
add a comment |
If you are following the installation instructions from moodle.com you may have missed a small, but essemtial point. Their command line
cd /var/www/html/moodle sudo vim config.php
realloy should be broken into correct separate lines, as:
cd /var/www/html/moodle
sudo vim config.php
The sudo
part of the second command will prompt you for your password, and grant you root privileges for the editing of the "config.php" file. This could have been done in a single line command with
cd /var/www/html/moodle && sudo vim config.php
add a comment |
If you are following the installation instructions from moodle.com you may have missed a small, but essemtial point. Their command line
cd /var/www/html/moodle sudo vim config.php
realloy should be broken into correct separate lines, as:
cd /var/www/html/moodle
sudo vim config.php
The sudo
part of the second command will prompt you for your password, and grant you root privileges for the editing of the "config.php" file. This could have been done in a single line command with
cd /var/www/html/moodle && sudo vim config.php
If you are following the installation instructions from moodle.com you may have missed a small, but essemtial point. Their command line
cd /var/www/html/moodle sudo vim config.php
realloy should be broken into correct separate lines, as:
cd /var/www/html/moodle
sudo vim config.php
The sudo
part of the second command will prompt you for your password, and grant you root privileges for the editing of the "config.php" file. This could have been done in a single line command with
cd /var/www/html/moodle && sudo vim config.php
answered Jan 23 at 18:51
Charles GreenCharles Green
13.2k73658
13.2k73658
add a comment |
add a comment |
RH Education Co. Ltd. is a new contributor. Be nice, and check out our Code of Conduct.
RH Education Co. Ltd. is a new contributor. Be nice, and check out our Code of Conduct.
RH Education Co. Ltd. is a new contributor. Be nice, and check out our Code of Conduct.
RH Education Co. Ltd. is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1112308%2fmoodle-installation-on-ubuntu-16-04-lts%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
What error message does it give you, and what editor are you using?
– Charles Green
Jan 23 at 18:43
1
Possible duplicate of How can I edit a .conf file owned by root?
– karel
Jan 23 at 18:48
1
Make sure you use the answer provided by @karel rather than the accepted answer to the linked question: The command in the linked question has been removed from Ubuntu.
– Charles Green
Jan 23 at 18:54