Re: Apache can't use directory not in root partition?



R.F. Pels wrote:

Roger N. Clark (change username to rnclark) wrote:


/usr/local/html, but if i change it to /home/smith/html
or /a/www/html apache fails on startup giving an error
at the DocumentRoot line number saying DocumentRoot must
be a directory.  I've checked multiple times and it is a
valid directory and is readable (uid=root gid=root rwxr-xr-x)
with same permissions as /var/www/html.

Yes, OK, but what are the permissions on /home/smith?

the same: rwxr-xr-x

But now it gets more weird.  I tarred the website from
/a/www/html to /var/www/html and here is what happens:

-rw-r--r--    Dec 26 13:37 index.html   gives error: Forbidden

cp index.html index.test2.html

-rw-r--r--    Dec 31 14:35 index.test2.html  now is accessible!

It shows up in a browser, but no links work. All links work on the
old machine, and if I do an ls -l on each file, cut and pasted
from the html file, it shows just fine and has  -rw-r--r--
permission, same as on old machine.  Old web site is:
http://www.clarkvision.com so you can read the source code.
Nothing fancy, no java or anything.

Roger
.