apache/php symlink 403 permission forbidden -
i have project sitting in: dev/php/project. system apache2 server folder is: /var/www/html/.
and goal reach address: localhost/project/file.php.
so have created symlink in /var/www/html folder so:
sudo ln -s dev/php/project /var/www/html/project
and after if try open localhost/project url. 403 forbidden error. searched alot , saw others have had same issues. tried follow how fix guides , none of them helped.
all of guides should chmod symlink, when try excecute command:
sudo chmod 0755 -r /var/www/html/*
or directly:
sudo chmod 0755 -r /var/www/html/project
i get:
chmod: cannot operate on dangling symlink '/var/www/html/project'
i have tried use other chmod modules ( dont know how call them correctly, sorry) 777, x+o, , came across . tried create symlink 1 php file outcome same.
can please me understand problem is? cant move forward because of issue. ready respond answers, questions.
Comments
Post a Comment