Web Servers on Unix and Linux - Apache

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > August 2005 > Apache





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache
Nat

2005-08-16, 8:47 pm

I just compiled and installed apache 2.0.54 and ran it. when I go to
the site all I get is a 403 permission denied error and I have no idea
what permissions to change or where to put files that I want on the web
site.
Nat

ohaya

2005-08-17, 2:54 am



Nat wrote:
>
> I just compiled and installed apache 2.0.54 and ran it. when I go to
> the site all I get is a 403 permission denied error and I have no idea
> what permissions to change or where to put files that I want on the web
> site.
> Nat



Hi,

Your webpages/docs should go in the <APACHE_ROOT>/htdocs directory,
where <APACHE_ROOT> is wherever you told the compilation/installation to
put Apache (e.g., if /usr/local/apache2/, then
/usr/local/apache2/htdocs).

As to the 403 error, look in the logs/error_log or logs/error.log file,
or possibly in the logs/access_log or logs/access.log file, and see if
there is anything helpful there.

I don't have a *nix Apache installation, but I seem to recall (it's been
awhile) that I had to change the "User" directive in httpd.conf from
something like "User nobody" to "User -1" or something along those
lines.

Sorry if this might not much help ...

Jim
Jonathan N. Little

2005-08-17, 5:57 pm

Nat wrote:
> I just compiled and installed apache 2.0.54 and ran it. when I go to
> the site all I get is a 403 permission denied error and I have no idea
> what permissions to change or where to put files that I want on the web
> site.
> Nat
>

You did not say what your OS was, but on my MDK10 Apache config file are
default at /etc/httpd/conf. To find your server's DocumentRoot search
the httpd2.conf

grep -e "DocumentRoot" /etc/httpd/conf/httpd2.conf

mine reveals a default '/var/www/html'

I know that this directory must be 0755 or you will get such an error.

Checking the log may be more informative. Default location for mine is:
'/var/log/httpd/error_log'

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com