super_serge Posted January 10, 2008 Share Posted January 10, 2008 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 More sharing options...
David Scaife Posted January 11, 2008 Share Posted January 11, 2008 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 More sharing options...
david23 Posted January 27, 2008 Share Posted January 27, 2008 try to follow these simple instruction very clear for beginners Link to comment Share on other sites More sharing options...
Recommended Posts