Re: php5-5.2.3_1 / website behaves as if not enabled in httpd.conf [SOLVED]

2007-09-12 Thread Ian Smith
On Wed, 12 Sep 2007 22:45:29 +0200 Zbigniew Szalbot wrote:

 > > > > Actually, maybe my description should be corrected - that is when I
 > > > > want to access a directory where index.php resides, apache will just
 > > > > display this directory content. But when I click (not reload) the php
 > > > > file, page is loaded correctly.

Ah right, that makes more sense, now matching my similar experience :)

 > > > maybe this was already mentioned, but what do you have DirectoryIndex
 > > > set to?
 > > >
 > > > it should look something like:
 > > >
 > > > DirectoryIndex index.html index.php
 > >
 > > All is fine here. I do have index.php listed. The file httpd.conf came
 > > almost without any modification (apart from usual php4 replaced php5
 > > references during update).
 > 
 > I was given advice on php list to comment out everything in mod_dir.c
 > starting from
 > 
 > 
 > 
 > 
 > and then enter just this:
 > 
 > 
 >DirectoryIndex index.php index.php3 index.html index.htm
 > 
 > 
 > Everything now works very well! Thank you all for your patience with me!

Cool.  That is why I'd asked earlier to see your 
section; I'd had exactly that same problem last December, which I solved
the long way around, adding what I thought was one way the php5 install
could/should have done it (which comes to the same thing, in the end):




DirectoryIndex index.php index.php3 index.html


DirectoryIndex index.php3 index.html




DirectoryIndex index.php index.html


DirectoryIndex index.html

#% 17/12/6 for php5 ..

DirectoryIndex index.php index.html




Cheers, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: php5-5.2.3_1 / website behaves as if not enabled in httpd.conf [SOLVED]

2007-09-12 Thread Mel
On Wednesday 12 September 2007 22:45:29 Zbigniew Szalbot wrote:
> Hello,
>
> 2007/9/12, Zbigniew Szalbot <[EMAIL PROTECTED]>:
> > Hi there again,
> >
> > > > Actually, maybe my description should be corrected - that is when I
> > > > want to access a directory where index.php resides, apache will just
> > > > display this directory content. But when I click (not reload) the php
> > > > file, page is loaded correctly.
> > > >
> > > >> To try and come to the cause, take Indexes outof Options for a given
> > > >> directory/location. It should give a Forbidden at that time, reason
> > > >> will be in error log, the exact request should be in access log.
> > > >> Look for subtle differences if there are any - between the forbidden
> > > >> and the reloaded page (like ending slash or what not).
> > > >
> > > > I did it for one directory where it was defined and I did get 403
> > > > error. So reading httpd-error.log:
> > > > Directory index forbidden by rule: /usr/local/www/data/test/
> > > >
> > > > access-log:
> > > > "GET / HTTP/1.1" 403 302
> > > >
> > > > Maybe I will have to say reconcile with php 4.4.7 after all.
> > >
> > > maybe this was already mentioned, but what do you have DirectoryIndex
> > > set to?
> > >
> > > it should look something like:
> > >
> > > DirectoryIndex index.html index.php
> >
> > All is fine here. I do have index.php listed. The file httpd.conf came
> > almost without any modification (apart from usual php4 replaced php5
> > references during update).
>
> I was given advice on php list to comment out everything in mod_dir.c
> starting from
> 
> 
> 
>
> and then enter just this:
>
> 
>DirectoryIndex index.php index.php3 index.html index.htm
> 
>
> Everything now works very well! Thank you all for your patience with me!

Duh! I hafta remember that. Apparently --enable-versioning doesn't expose "I 
am mod_php3.c", so Apache bails out on the IfModule mod_php3.c and doesn't 
even see what's in there.


-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: php5-5.2.3_1 / website behaves as if not enabled in httpd.conf [SOLVED]

2007-09-12 Thread Zbigniew Szalbot
Hello,

2007/9/12, Zbigniew Szalbot <[EMAIL PROTECTED]>:
> Hi there again,
>
> > > Actually, maybe my description should be corrected - that is when I
> > > want to access a directory where index.php resides, apache will just
> > > display this directory content. But when I click (not reload) the php
> > > file, page is loaded correctly.
> > >
> > >> To try and come to the cause, take Indexes outof Options for a given
> > >> directory/location. It should give a Forbidden at that time, reason will 
> > >> be
> > >> in error log, the exact request should be in access log. Look for subtle
> > >> differences if there are any - between the forbidden and the reloaded 
> > >> page
> > >> (like ending slash or what not).
> > >
> > > I did it for one directory where it was defined and I did get 403
> > > error. So reading httpd-error.log:
> > > Directory index forbidden by rule: /usr/local/www/data/test/
> > >
> > > access-log:
> > > "GET / HTTP/1.1" 403 302
> > >
> > > Maybe I will have to say reconcile with php 4.4.7 after all.
> > >
> >
> >
> > maybe this was already mentioned, but what do you have DirectoryIndex
> > set to?
> >
> > it should look something like:
> >
> > DirectoryIndex index.html index.php
>
> All is fine here. I do have index.php listed. The file httpd.conf came
> almost without any modification (apart from usual php4 replaced php5
> references during update).

I was given advice on php list to comment out everything in mod_dir.c
starting from




and then enter just this:


   DirectoryIndex index.php index.php3 index.html index.htm


Everything now works very well! Thank you all for your patience with me!

Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"