Re: PHP 5.2.3 - Segmentation fault (core dumped)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/12/07, Zbigniew Szalbot <zszalbot@xxxxxxxxx> wrote:
> Hello,
>
> 2007/9/12, Zbigniew Szalbot <zszalbot@xxxxxxxxx>:
> > Hello again,
> >
> > 2007/9/12, Daniel Brown <parasane@xxxxxxxxx>:
> > > > > > <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>
> >
> > >     Also, check for this line in your httpd.conf file:
> > > <IfModule mod_dir.c>
> > >
> > >     Make sure index.php is in that list if the entry exists.
> >
> > Daniel as you say:
> > > PHP is properly loading, but your DirectoryIndex is not working.
> >
> > The only refrences to DirectoryIndex and <IfModule mod_dir.c> are in
> > the above quoted content in httpd.conf. I will get rid of all php3
> > entries and let you know if this has solved the problem.
>
> I took the safe approach and just removed index.php from each
> statements, one by one until I was left with none. I was still able to
> display httpd://szalbot.homedns.org/test/
>
> Currently I have index.php in mod_php5.c:
>
> <IfModule mod_dir.c>
>     <IfModule mod_php3.c>
>         <IfModule mod_php4.c>
>             DirectoryIndex index.html
>         </IfModule>
>         <IfModule mod_php5.c>
>             DirectoryIndex index.php index.html
>         </IfModule>
>         <IfModule !mod_php4.c>
>             DirectoryIndex index.html
>         </IfModule>
>     </IfModule>
>     <IfModule !mod_php3.c>
>         <IfModule mod_php4.c>
>             DirectoryIndex index.html
>         </IfModule>
>         <IfModule !mod_php4.c>
>             DirectoryIndex index.html
>         </IfModule>
>     </IfModule>
> </IfModule>
>
> Funny thing is that it was never a problem with php 4.7. I actually
> changed nothing in httpd.conf between the versions. I installed php5
> from ports and during installation of course all references to php4
> were replaced with php5 (in httpd.conf).
>
> It is clearly problem with indexes but how and where that is an issue
> for me. there is a solution which I could live with. That is I can
> create an index.html page which will simply redirect to index.php and
> so index-wise everything will work but I would really prefer to find
> out what is wrong.
>
> Thanks!
>
> Zbigniew Szalbot
>

    That's not solving the issue, though.  That's creating a
workaround for it and ignoring its existence --- and a very hacky
workaround, at that.

    There's no need to remove the index.php entries.  In fact, quite
the opposite: if Apache doesn't know that it should serve index.php as
an index file, there's no way it will.

    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>

    If even that doesn't work, then you don't have mod_dir.so loading
when Apache is started.  You can either add that or simply comment out
the entire IfModule section and just simply have DirectoryIndex out in
the open, by itself, which is perfectly safe to do as well.

-- 
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....

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux