Having Apache Access Folder Inside Home Directory

UTF-8

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.

UTF-8

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]

編集
0

コメントを追加

0

関連記事

分類Dev

Allowing apache access to a subdirectory in a home directory without access to the home directory

分類Dev

How to give user access to specific folder in home directory

分類Dev

How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

分類Dev

What is the "Templates" folder in the home directory for?

分類Dev

Access a folder located in the home screen

分類Dev

Unable to access file in home directory (Jupyter Notebook)

分類Dev

AppleScript, check if folder exist in current users home directory

分類Dev

How to restrict access to a folder in Apache2

分類Dev

how to access website from a sub folder inside the root folder?

分類Dev

Can users in a group access a file that is in another user's home directory?

分類Dev

How to I allow direct write access to a directory under /home/username?

分類Dev

Setting Home Directory to `/home`

分類Dev

Unable to access Apache webserver from local home network

分類Dev

Shared folder of VirtualBox as Apache2 www directory

分類Dev

Using firefox is ridiculously slow with users having home directory in NFS. Why?

分類Dev

Set directory permissions so process inside can’t "access outside"

分類Dev

Accidentally moved home folder?

分類Dev

Where is the $HOME folder located?

分類Dev

How to setup apache2 virtualhosts on your home directory on ubuntu 14.04?

分類Dev

I really need to access my files :( from my previous Home directory

分類Dev

Moving /home to an existing directory

分類Dev

Home directory messed up

分類Dev

Changing Home Directory for cygwin

分類Dev

ssh and home directory permissions

分類Dev

Home directory encryption

分類Dev

Resizing the Root and Home directory

分類Dev

Is it possible to setup VPN on dedicated server, while having Web server nginx, mysql and other services to access blocked Websites from home?

分類Dev

Access SQL:Having句

分類Dev

performSelectorInBackground having access to UI

Related 関連記事

  1. 1

    Allowing apache access to a subdirectory in a home directory without access to the home directory

  2. 2

    How to give user access to specific folder in home directory

  3. 3

    How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

  4. 4

    What is the "Templates" folder in the home directory for?

  5. 5

    Access a folder located in the home screen

  6. 6

    Unable to access file in home directory (Jupyter Notebook)

  7. 7

    AppleScript, check if folder exist in current users home directory

  8. 8

    How to restrict access to a folder in Apache2

  9. 9

    how to access website from a sub folder inside the root folder?

  10. 10

    Can users in a group access a file that is in another user's home directory?

  11. 11

    How to I allow direct write access to a directory under /home/username?

  12. 12

    Setting Home Directory to `/home`

  13. 13

    Unable to access Apache webserver from local home network

  14. 14

    Shared folder of VirtualBox as Apache2 www directory

  15. 15

    Using firefox is ridiculously slow with users having home directory in NFS. Why?

  16. 16

    Set directory permissions so process inside can’t "access outside"

  17. 17

    Accidentally moved home folder?

  18. 18

    Where is the $HOME folder located?

  19. 19

    How to setup apache2 virtualhosts on your home directory on ubuntu 14.04?

  20. 20

    I really need to access my files :( from my previous Home directory

  21. 21

    Moving /home to an existing directory

  22. 22

    Home directory messed up

  23. 23

    Changing Home Directory for cygwin

  24. 24

    ssh and home directory permissions

  25. 25

    Home directory encryption

  26. 26

    Resizing the Root and Home directory

  27. 27

    Is it possible to setup VPN on dedicated server, while having Web server nginx, mysql and other services to access blocked Websites from home?

  28. 28

    Access SQL:Having句

  29. 29

    performSelectorInBackground having access to UI

ホットタグ

アーカイブ