403 on localhost after adding symlink
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.
permissions apache2 symbolic-link
 |Â
show 4 more comments
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.
permissions apache2 symbolic-link
Is/home/user/Dropbox/dev/www/html
owned by groupuser
?
â 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 haveOptions 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
 |Â
show 4 more comments
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.
permissions apache2 symbolic-link
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
permissions apache2 symbolic-link
edited Mar 29 at 16:58
![](https://i.stack.imgur.com/Cfz2Q.jpg?s=32&g=1)
![](https://i.stack.imgur.com/Cfz2Q.jpg?s=32&g=1)
Elder Geek
25.3k949120
25.3k949120
asked Mar 29 at 16:13
sholkyman
12
12
Is/home/user/Dropbox/dev/www/html
owned by groupuser
?
â 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 haveOptions 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
 |Â
show 4 more comments
Is/home/user/Dropbox/dev/www/html
owned by groupuser
?
â 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 haveOptions 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
 |Â
show 4 more comments
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
add a comment |Â
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
add a comment |Â
up vote
0
down vote
Problem was in permissions of Dropbox folder
chmod -R 775 Dropbox
works for me
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Problem was in permissions of Dropbox folder
chmod -R 775 Dropbox
works for me
Problem was in permissions of Dropbox folder
chmod -R 775 Dropbox
works for me
answered Apr 2 at 15:17
sholkyman
12
12
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
Is
/home/user/Dropbox/dev/www/html
owned by groupuser
?â 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