403 on localhost after adding symlink

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I deleted the folder /var/www and created symlink like this:



ln -s /home/user/Dropbox/dev/www/ /var/www


here it is



ls -l /var
lrwxrwxrwx 1 www-data www-data 32 мар 29 18:34 www -> /home/user/Dropbox/dev/www/


and



ls -l /home/user/Dropbox/dev/
drwxrwx--- 14 user user 4096 мар 29 18:55 www


after that I added www-data to group user



documentroot for localhost is /var/www/html (/home/user/Dropbox/dev/www/html exists)



and now when I go to localhost I see Forbidden.










share|improve this question























  • Is /home/user/Dropbox/dev/www/html owned by group user?
    – Jos
    Mar 29 at 16:15






  • 1




    have you logged out and back in yet? sometimes you have to before the new groups take effect
    – John Orion
    Mar 29 at 16:39






  • 1




    Do you have Options FollowSymlinks in the appropriate context of your Apache configuration? It is the default value but can be overriden. You should also read your Apache logfiles they will explain why the 403 error code.
    – Patrick Mevzek
    Mar 29 at 16:41










  • The logout/login process @John refers to means restarting apache in this case (systemctl restart apache2.service).
    – PerlDuck
    Mar 29 at 17:03










  • actually its logging out of ubuntu and logging back in to refresh the group permissions .. not sure restarting apache will reinitialize the groups with the added permissions but logging out of the users account and logging back in (or rebooting) will for sure
    – John Orion
    Mar 29 at 17:04















up vote
0
down vote

favorite












I deleted the folder /var/www and created symlink like this:



ln -s /home/user/Dropbox/dev/www/ /var/www


here it is



ls -l /var
lrwxrwxrwx 1 www-data www-data 32 мар 29 18:34 www -> /home/user/Dropbox/dev/www/


and



ls -l /home/user/Dropbox/dev/
drwxrwx--- 14 user user 4096 мар 29 18:55 www


after that I added www-data to group user



documentroot for localhost is /var/www/html (/home/user/Dropbox/dev/www/html exists)



and now when I go to localhost I see Forbidden.










share|improve this question























  • Is /home/user/Dropbox/dev/www/html owned by group user?
    – Jos
    Mar 29 at 16:15






  • 1




    have you logged out and back in yet? sometimes you have to before the new groups take effect
    – John Orion
    Mar 29 at 16:39






  • 1




    Do you have Options FollowSymlinks in the appropriate context of your Apache configuration? It is the default value but can be overriden. You should also read your Apache logfiles they will explain why the 403 error code.
    – Patrick Mevzek
    Mar 29 at 16:41










  • The logout/login process @John refers to means restarting apache in this case (systemctl restart apache2.service).
    – PerlDuck
    Mar 29 at 17:03










  • actually its logging out of ubuntu and logging back in to refresh the group permissions .. not sure restarting apache will reinitialize the groups with the added permissions but logging out of the users account and logging back in (or rebooting) will for sure
    – John Orion
    Mar 29 at 17:04













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I deleted the folder /var/www and created symlink like this:



ln -s /home/user/Dropbox/dev/www/ /var/www


here it is



ls -l /var
lrwxrwxrwx 1 www-data www-data 32 мар 29 18:34 www -> /home/user/Dropbox/dev/www/


and



ls -l /home/user/Dropbox/dev/
drwxrwx--- 14 user user 4096 мар 29 18:55 www


after that I added www-data to group user



documentroot for localhost is /var/www/html (/home/user/Dropbox/dev/www/html exists)



and now when I go to localhost I see Forbidden.










share|improve this question















I deleted the folder /var/www and created symlink like this:



ln -s /home/user/Dropbox/dev/www/ /var/www


here it is



ls -l /var
lrwxrwxrwx 1 www-data www-data 32 мар 29 18:34 www -> /home/user/Dropbox/dev/www/


and



ls -l /home/user/Dropbox/dev/
drwxrwx--- 14 user user 4096 мар 29 18:55 www


after that I added www-data to group user



documentroot for localhost is /var/www/html (/home/user/Dropbox/dev/www/html exists)



and now when I go to localhost I see Forbidden.







permissions apache2 symbolic-link






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 16:58









Elder Geek

25.3k949120




25.3k949120










asked Mar 29 at 16:13









sholkyman

12




12











  • Is /home/user/Dropbox/dev/www/html owned by group user?
    – Jos
    Mar 29 at 16:15






  • 1




    have you logged out and back in yet? sometimes you have to before the new groups take effect
    – John Orion
    Mar 29 at 16:39






  • 1




    Do you have Options FollowSymlinks in the appropriate context of your Apache configuration? It is the default value but can be overriden. You should also read your Apache logfiles they will explain why the 403 error code.
    – Patrick Mevzek
    Mar 29 at 16:41










  • The logout/login process @John refers to means restarting apache in this case (systemctl restart apache2.service).
    – PerlDuck
    Mar 29 at 17:03










  • actually its logging out of ubuntu and logging back in to refresh the group permissions .. not sure restarting apache will reinitialize the groups with the added permissions but logging out of the users account and logging back in (or rebooting) will for sure
    – John Orion
    Mar 29 at 17:04

















  • Is /home/user/Dropbox/dev/www/html owned by group user?
    – Jos
    Mar 29 at 16:15






  • 1




    have you logged out and back in yet? sometimes you have to before the new groups take effect
    – John Orion
    Mar 29 at 16:39






  • 1




    Do you have Options FollowSymlinks in the appropriate context of your Apache configuration? It is the default value but can be overriden. You should also read your Apache logfiles they will explain why the 403 error code.
    – Patrick Mevzek
    Mar 29 at 16:41










  • The logout/login process @John refers to means restarting apache in this case (systemctl restart apache2.service).
    – PerlDuck
    Mar 29 at 17:03










  • actually its logging out of ubuntu and logging back in to refresh the group permissions .. not sure restarting apache will reinitialize the groups with the added permissions but logging out of the users account and logging back in (or rebooting) will for sure
    – John Orion
    Mar 29 at 17:04
















Is /home/user/Dropbox/dev/www/html owned by group user?
– Jos
Mar 29 at 16:15




Is /home/user/Dropbox/dev/www/html owned by group user?
– Jos
Mar 29 at 16:15




1




1




have you logged out and back in yet? sometimes you have to before the new groups take effect
– John Orion
Mar 29 at 16:39




have you logged out and back in yet? sometimes you have to before the new groups take effect
– John Orion
Mar 29 at 16:39




1




1




Do you have Options FollowSymlinks in the appropriate context of your Apache configuration? It is the default value but can be overriden. You should also read your Apache logfiles they will explain why the 403 error code.
– Patrick Mevzek
Mar 29 at 16:41




Do you have Options FollowSymlinks in the appropriate context of your Apache configuration? It is the default value but can be overriden. You should also read your Apache logfiles they will explain why the 403 error code.
– Patrick Mevzek
Mar 29 at 16:41












The logout/login process @John refers to means restarting apache in this case (systemctl restart apache2.service).
– PerlDuck
Mar 29 at 17:03




The logout/login process @John refers to means restarting apache in this case (systemctl restart apache2.service).
– PerlDuck
Mar 29 at 17:03












actually its logging out of ubuntu and logging back in to refresh the group permissions .. not sure restarting apache will reinitialize the groups with the added permissions but logging out of the users account and logging back in (or rebooting) will for sure
– John Orion
Mar 29 at 17:04





actually its logging out of ubuntu and logging back in to refresh the group permissions .. not sure restarting apache will reinitialize the groups with the added permissions but logging out of the users account and logging back in (or rebooting) will for sure
– John Orion
Mar 29 at 17:04











1 Answer
1






active

oldest

votes

















up vote
0
down vote













Problem was in permissions of Dropbox folder



chmod -R 775 Dropbox


works for me






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1020322%2f403-on-localhost-after-adding-symlink%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Problem was in permissions of Dropbox folder



    chmod -R 775 Dropbox


    works for me






    share|improve this answer
























      up vote
      0
      down vote













      Problem was in permissions of Dropbox folder



      chmod -R 775 Dropbox


      works for me






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Problem was in permissions of Dropbox folder



        chmod -R 775 Dropbox


        works for me






        share|improve this answer












        Problem was in permissions of Dropbox folder



        chmod -R 775 Dropbox


        works for me







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 2 at 15:17









        sholkyman

        12




        12



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020322%2f403-on-localhost-after-adding-symlink%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491