I installed PHP (package php5
(Apache came automatically with it)) and the root folder for Apache is standard (/var/www/html
).
The folders I want to link in there (or somehow let Apache access them, I don't care whether or not it's a link) are in my home directory. What is the best way (giving away the least permissions) to achieve this? I know that this is going off topic, but if there is a way to let Eclipse copy files before executing them, let me know to answer this question, because then my problem would cease to exist.
My problem isn't resolved by the accepted answer of this question. I still get a 403 Forbidden
:
Forbidden
You don't have permission to access /l on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
(I named the link to the folder in my home directory l
.)
I made sure that Apache follows symbolic links by creating a link inside /var/www/html
to something else in /var/www/html
and accessing the link in a browser.
I figured it out: I changed the permissions of /home/
and /home/[username]
to 755
and from there on all the folders to my link target folders also to 755
. For some PHP applications it's necessary to set files in there to 755
.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加