Unable to load mod_alias in apache












0















Runing the command sudo service apache2 restart output :



 * Restarting web server apache2                                         [fail] 

* The apache2 configtest failed.

Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2/modules/mod_alias.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.


How to solve it?










share|improve this question

























  • Please add the result of following commands grep --line-number --context=3 "mod_alias" /etc/apache2/apache2.conf and stat -L /usr/lib/apache2/modules/mod_alias.so - it looks like specified directory of mod_alias.so is wrong.

    – Roomy
    Sep 29 '15 at 13:56











  • running the command display error: root@kumar-desktop:/home/kumar# stat -L /usr/lib/apache2/modules/mod_alias.so stat: cannot stat `/usr/lib/apache2/modules/mod_alias.so': No such file or directory

    – Kumar Ramalingam
    Sep 30 '15 at 4:55











  • Try the grep command with sudo. With result of second command sudo apt-get update && sudo apt-gget install --reinstall apache2 has high probability to fix your issue.

    – Roomy
    Sep 30 '15 at 11:30


















0















Runing the command sudo service apache2 restart output :



 * Restarting web server apache2                                         [fail] 

* The apache2 configtest failed.

Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2/modules/mod_alias.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.


How to solve it?










share|improve this question

























  • Please add the result of following commands grep --line-number --context=3 "mod_alias" /etc/apache2/apache2.conf and stat -L /usr/lib/apache2/modules/mod_alias.so - it looks like specified directory of mod_alias.so is wrong.

    – Roomy
    Sep 29 '15 at 13:56











  • running the command display error: root@kumar-desktop:/home/kumar# stat -L /usr/lib/apache2/modules/mod_alias.so stat: cannot stat `/usr/lib/apache2/modules/mod_alias.so': No such file or directory

    – Kumar Ramalingam
    Sep 30 '15 at 4:55











  • Try the grep command with sudo. With result of second command sudo apt-get update && sudo apt-gget install --reinstall apache2 has high probability to fix your issue.

    – Roomy
    Sep 30 '15 at 11:30
















0












0








0








Runing the command sudo service apache2 restart output :



 * Restarting web server apache2                                         [fail] 

* The apache2 configtest failed.

Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2/modules/mod_alias.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.


How to solve it?










share|improve this question
















Runing the command sudo service apache2 restart output :



 * Restarting web server apache2                                         [fail] 

* The apache2 configtest failed.

Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2/modules/mod_alias.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.


How to solve it?







apache2 localhost






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 19 '15 at 9:30









Hugo

14410




14410










asked Sep 29 '15 at 13:45









Kumar RamalingamKumar Ramalingam

3126




3126













  • Please add the result of following commands grep --line-number --context=3 "mod_alias" /etc/apache2/apache2.conf and stat -L /usr/lib/apache2/modules/mod_alias.so - it looks like specified directory of mod_alias.so is wrong.

    – Roomy
    Sep 29 '15 at 13:56











  • running the command display error: root@kumar-desktop:/home/kumar# stat -L /usr/lib/apache2/modules/mod_alias.so stat: cannot stat `/usr/lib/apache2/modules/mod_alias.so': No such file or directory

    – Kumar Ramalingam
    Sep 30 '15 at 4:55











  • Try the grep command with sudo. With result of second command sudo apt-get update && sudo apt-gget install --reinstall apache2 has high probability to fix your issue.

    – Roomy
    Sep 30 '15 at 11:30





















  • Please add the result of following commands grep --line-number --context=3 "mod_alias" /etc/apache2/apache2.conf and stat -L /usr/lib/apache2/modules/mod_alias.so - it looks like specified directory of mod_alias.so is wrong.

    – Roomy
    Sep 29 '15 at 13:56











  • running the command display error: root@kumar-desktop:/home/kumar# stat -L /usr/lib/apache2/modules/mod_alias.so stat: cannot stat `/usr/lib/apache2/modules/mod_alias.so': No such file or directory

    – Kumar Ramalingam
    Sep 30 '15 at 4:55











  • Try the grep command with sudo. With result of second command sudo apt-get update && sudo apt-gget install --reinstall apache2 has high probability to fix your issue.

    – Roomy
    Sep 30 '15 at 11:30



















Please add the result of following commands grep --line-number --context=3 "mod_alias" /etc/apache2/apache2.conf and stat -L /usr/lib/apache2/modules/mod_alias.so - it looks like specified directory of mod_alias.so is wrong.

– Roomy
Sep 29 '15 at 13:56





Please add the result of following commands grep --line-number --context=3 "mod_alias" /etc/apache2/apache2.conf and stat -L /usr/lib/apache2/modules/mod_alias.so - it looks like specified directory of mod_alias.so is wrong.

– Roomy
Sep 29 '15 at 13:56













running the command display error: root@kumar-desktop:/home/kumar# stat -L /usr/lib/apache2/modules/mod_alias.so stat: cannot stat `/usr/lib/apache2/modules/mod_alias.so': No such file or directory

– Kumar Ramalingam
Sep 30 '15 at 4:55





running the command display error: root@kumar-desktop:/home/kumar# stat -L /usr/lib/apache2/modules/mod_alias.so stat: cannot stat `/usr/lib/apache2/modules/mod_alias.so': No such file or directory

– Kumar Ramalingam
Sep 30 '15 at 4:55













Try the grep command with sudo. With result of second command sudo apt-get update && sudo apt-gget install --reinstall apache2 has high probability to fix your issue.

– Roomy
Sep 30 '15 at 11:30







Try the grep command with sudo. With result of second command sudo apt-get update && sudo apt-gget install --reinstall apache2 has high probability to fix your issue.

– Roomy
Sep 30 '15 at 11:30












1 Answer
1






active

oldest

votes


















0














Working fine. credits to @A.B.



Following Steps :



1.If not, backup your configurations and install apache2 again via



sudo mv /etc/apache2 /etc/apache2.bak
sudo apt-get purge apache2
sudo apt-get install apache2



2.Restart your server and check if the problem is solved



sudo service apache2 restart



If you get a error message like



The apache2 configtest failed. Output of config test was: apache2:
Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error
on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load
/usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2
modules/mod_alias.so: cannot open shared object file: No such file or
directory Action 'configtest' failed. The Apache error log may have
more information.



3.reinstall apache2-bin via



sudo apt-get install --reinstall apache2-bin



because the file /usr/lib/apache2/modules/mod_alias.so is part of the package apache2-bin






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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f679672%2funable-to-load-mod-alias-in-apache%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














    Working fine. credits to @A.B.



    Following Steps :



    1.If not, backup your configurations and install apache2 again via



    sudo mv /etc/apache2 /etc/apache2.bak
    sudo apt-get purge apache2
    sudo apt-get install apache2



    2.Restart your server and check if the problem is solved



    sudo service apache2 restart



    If you get a error message like



    The apache2 configtest failed. Output of config test was: apache2:
    Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error
    on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load
    /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2
    modules/mod_alias.so: cannot open shared object file: No such file or
    directory Action 'configtest' failed. The Apache error log may have
    more information.



    3.reinstall apache2-bin via



    sudo apt-get install --reinstall apache2-bin



    because the file /usr/lib/apache2/modules/mod_alias.so is part of the package apache2-bin






    share|improve this answer






























      0














      Working fine. credits to @A.B.



      Following Steps :



      1.If not, backup your configurations and install apache2 again via



      sudo mv /etc/apache2 /etc/apache2.bak
      sudo apt-get purge apache2
      sudo apt-get install apache2



      2.Restart your server and check if the problem is solved



      sudo service apache2 restart



      If you get a error message like



      The apache2 configtest failed. Output of config test was: apache2:
      Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error
      on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load
      /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2
      modules/mod_alias.so: cannot open shared object file: No such file or
      directory Action 'configtest' failed. The Apache error log may have
      more information.



      3.reinstall apache2-bin via



      sudo apt-get install --reinstall apache2-bin



      because the file /usr/lib/apache2/modules/mod_alias.so is part of the package apache2-bin






      share|improve this answer




























        0












        0








        0







        Working fine. credits to @A.B.



        Following Steps :



        1.If not, backup your configurations and install apache2 again via



        sudo mv /etc/apache2 /etc/apache2.bak
        sudo apt-get purge apache2
        sudo apt-get install apache2



        2.Restart your server and check if the problem is solved



        sudo service apache2 restart



        If you get a error message like



        The apache2 configtest failed. Output of config test was: apache2:
        Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error
        on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load
        /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2
        modules/mod_alias.so: cannot open shared object file: No such file or
        directory Action 'configtest' failed. The Apache error log may have
        more information.



        3.reinstall apache2-bin via



        sudo apt-get install --reinstall apache2-bin



        because the file /usr/lib/apache2/modules/mod_alias.so is part of the package apache2-bin






        share|improve this answer















        Working fine. credits to @A.B.



        Following Steps :



        1.If not, backup your configurations and install apache2 again via



        sudo mv /etc/apache2 /etc/apache2.bak
        sudo apt-get purge apache2
        sudo apt-get install apache2



        2.Restart your server and check if the problem is solved



        sudo service apache2 restart



        If you get a error message like



        The apache2 configtest failed. Output of config test was: apache2:
        Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error
        on line 1 of /etc/apache2/mods-enabled/alias.load: Cannot load
        /usr/lib/apache2/modules/mod_alias.so into server: /usr/lib/apache2
        modules/mod_alias.so: cannot open shared object file: No such file or
        directory Action 'configtest' failed. The Apache error log may have
        more information.



        3.reinstall apache2-bin via



        sudo apt-get install --reinstall apache2-bin



        because the file /usr/lib/apache2/modules/mod_alias.so is part of the package apache2-bin







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:25









        Community

        1




        1










        answered Sep 30 '15 at 13:29









        Kumar RamalingamKumar Ramalingam

        3126




        3126






























            draft saved

            draft discarded




















































            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%2f679672%2funable-to-load-mod-alias-in-apache%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

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            File:DeusFollowingSea.jpg