Re: Apache-forbidden access to html files

From: Megiddo (manbrett_at_yahoo.com)
Date: 10/25/05


Date: 24 Oct 2005 15:03:06 -0700


"K.Zielinski" <longi...@zeus.polsl.gliwice.pl> wrote in message

news:8uuv5g$qng$4@zeus.polsl.gliwice.pl...
>> I've just installed linux RedHat 6.2 with apache,postgres and php.
>> When i want to try my www server i can see in my browser a webpage saying
>> "403 Forbidden". I have checked the rights to apache home directory and
>> index.html file and they are 644. So it schould work, why it doesn't ?

>> A month ago i installed the same distribution of linux (except postgres
and
>> php) and apache was working correctly (i could access index.html in my
>> browser after installation).

>> Could you tell me what i could do about it ?

> There are two parts to making apache able to serve up a file:
> 1. Getting the un*x permissions right.
> 2. Getting the apache directory access specification right.
> It appears that 2) is your problem. In /etc/httpd/conf/httpd.conf
>(or possibly /etc/httpd/conf/access.conf), you should have a set of lines
>that says
> <Directory "/home/httpd/.......">
> AllowOverride None
> Order allow, deny
> Allow from all
> </Directory>
>Of course, fill in the directory that you want to grant access to; if you
>want finer control over who has access, that can be had as well, but it
>requires fine perusal of the documentation: http://www.apache.org/docs/

This helped solve my problem too, I can now access my index... but no
subdirectories.... How can I make the permission recursive?



Relevant Pages

  • Re: how to run scripts after a page has already loaded and been sent to a users browser?
    ... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ...
    (alt.php)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have access ...
    (alt.os.linux.suse)
  • Re: PHP / MySQL
    ... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have access ...
    (alt.os.linux.suse)
  • Re: Browser Compatibility issues
    ... > studying PHP, and am an intermediate ASP programmer). ... Microsoft products, against a Microsoft server. ... In reality, the browser doesn't see any PHP, and so the scripting ... developer is producing bad HTML, lest the browsers would display it. ...
    (comp.lang.php)