Help - Search - Members - Calendar
Full Version: Apache2 and Debian Linux (etch)
Neowin Forums > *nix Customization & Support > Linux Server/BSD/Unix
super_serge
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.
David Scaife
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.
david23
try to follow these simple instruction very clear for beginners
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.