Afficher un message
Vieux 12/09/2007, 21h48   #2
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped) [SOLVED]

On 9/12/07, Zbigniew Szalbot <zszalbot@gmail.com> wrote:
> Dear Daniel and all!
>
> 2007/9/12, Daniel Brown <parasane@gmail.com>:
> > > > > > > > <IfModule mod_dir.c>
> > > > > > > > <IfModule mod_php3.c>
> > > > > > > > <IfModule mod_php4.c>
> > > > > > > > DirectoryIndex index.php index.php3 index.html
> > > > > > > > </IfModule>
> > > > > > > > <IfModule mod_php5.c>
> > > > > > > > DirectoryIndex index.php index.php3 index.html
> > > > > > > > </IfModule>
> > > > > > > > <IfModule !mod_php4.c>
> > > > > > > > DirectoryIndex index.php3 index.html
> > > > > > > > </IfModule>
> > > > > > > > </IfModule>
> > > > > > > > <IfModule !mod_php3.c>
> > > > > > > > <IfModule mod_php4.c>
> > > > > > > > DirectoryIndex index.php index.html
> > > > > > > > </IfModule>
> > > > > > > > <IfModule !mod_php4.c>
> > > > > > > > DirectoryIndex index.html
> > > > > > > > </IfModule>
> > > > > > > > </IfModule>
> > > > > > > > </IfModule>

>
> > Try commenting out the whole block of data you sent to the list
> > from your httpd.conf file and entering only this instead:
> >
> > <IfModule mod_dir.c>
> > DirectoryIndex index.php index.php3 index.html index.htm
> > </IfModule>

>
> Problem solved! Daniel - this really ed. I do not even know how to
> thank you but surely, this is amazing. This thing actually works!
>
> Thanks to all!
>
> Zbigniew Szalbot
>


No problem at all.

Now my guess at explaining it....

Notice how `IfModule mod_php5.c` if only mentioned when nested
inside of the `IfModule mod_php3.c` container. If you want to have
the intelligent-detection of PHP's availability, you should be able to
update this:

<IfModule mod_dir.c>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

.... like so:

<IfModule mod_dir.c>
<IfModule mod_php5.c>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
<!IfModule mod_php5.c>
DirectoryIndex index.html index.htm
</IfModule>
</IfModule>

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
  Réponse avec citation
 
Page generated in 0,10401 seconds with 9 queries