Apache2 and Debian Linux (etch)


Recommended Posts

Hi all, recently ive installed debian linux (using it as a server) and its the first linux distro ive ever used, as well as the first totally cmdline interface ive ever used. Thats probably the reason why i cant answer this question myself. Anyways, I installed apache and php on the server, and it works fine. However instead of the default /var/www dir for the document root i want to set it to /home/myuser/www, a folder i created with a user. My problem is that when I try to access the files inside through a browser on the same network, i get a nice big forbidden on the page. It worked fine when documentroot was var/www, so its just a matter of setting loose enough restrictions. However, being a noob at linux, i dunno what restrictions in particular to set (i.e. dir, user ). If anybody could let me know what i have to change to get this to work it would be great, thanks.

Link to comment
Share on other sites

The simplest way to achieve this is to `chmod -R 705 /home/myuser/www`, thus allowing Apache to read your www directory. You may also need to `chmod -R 705 /home/myuser` if your user directory doesn't have the right permissions.

Link to comment
Share on other sites

  • 3 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.