Moodle installation on Ubuntu 16.04 LTS












0















Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.



I need to edit this file line 30.










share|improve this question









New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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
















0















Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.



I need to edit this file line 30.










share|improve this question









New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • 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














0












0








0








Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.



I need to edit this file line 30.










share|improve this question









New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Could not open the file “/opt/lampp/apps/moodle/htdocs/config.php”.



I need to edit this file line 30.







16.04






share|improve this question









New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Jan 23 at 18:45







RH Education Co. Ltd.













New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 23 at 18:43









RH Education Co. Ltd.RH Education Co. Ltd.

11




11




New contributor




RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






RH Education Co. Ltd. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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






  • 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










1 Answer
1






active

oldest

votes


















0














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






share|improve this answer























    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.










    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer




























      0














      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






      share|improve this answer


























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 23 at 18:51









        Charles GreenCharles Green

        13.2k73658




        13.2k73658






















            RH Education Co. Ltd. is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b