Re: [Nolug] php scripts virtual hosts

From: James Scott <jhs_technical_at_cox.net>
Date: Mon, 08 Mar 2004 18:32:03 -0600
Message-Id: <1078792322.3702.34.camel@example1.com>

On Mon, 2004-03-08 at 18:20, Petri Laihonen wrote:
> > On Mon, 2004-03-08 at 18:02, -ray wrote:
> >> On Mon, 8 Mar 2004, James Scott wrote:
> >>
> >> > I have done tests with scripts that are seemingly professionally
> >> > developed and as soon as I get to the point where they say "go to the
> >> > URL" I get the 404 error file is not found on this server.
> >> >
> >> > I may not have it straight how to manipulate the file structure in
> >> > "docroot" directories to make sure they are visible.
> >>
> >> 404 error probably has little to do with PHP. Must be an apache setup
> >> problem. Check your apache error_log, probably in /var/log/httpd. See
> >> where apache is looking for the file, compared to where you think it
> >> should be looking.
> >>
> >> ray
> > Thanks Ray, Here are the relevant entries from the log.
> > I really do not understand the first one and it is probably the core
> > issue. I can see that index.php is defined in conf.d.
> > [Mon Mar 08 16:27:56 2004] [error] [client 68.11.44.133] Directory index
> > forbidden by rule: /var/www/html/
> > [Mon Mar 08 16:32:36 2004] [error] [client 68.11.44.133] File does not
> > exist: /var/www/html/admin
> > [Mon Mar 08 16:50:05 2004] [error] [client 68.11.44.133] Directory index
> > forbidden by rule: /var/www/html/
> > script not found or unable to stat
> > script not found or unable to stat
> > [Mon Mar 08 17:31:19 2004] [error] [client 68.11.44.133] File does not
> > exist: /var/www/html/new_downloads
> > [Mon Mar 08 17:31:57 2004] [error] [client 68.11.44.133] File does not
> > exist: /var/www/html/new_downloads
> >
> What is the file extension for your index file?
>
> By default apache looks for index.html and some other which I don't
> remember out of my head. I always add coule of others like index.php,
> index.shtml index.xyz.....
>
> These can be set in main .conf file or per virtual domain container.
>
> Petri
In the same directory I have tried a known good index.php and a known good index.html
But for the record in httpd.conf or in the case of php in conf.d
php.conf you define the extensions you want recognized.
>
> ___________________
> Nolug mailing list
> nolug@nolug.org

___________________
Nolug mailing list
nolug@nolug.org
Received on 03/08/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST