Am Donnerstag, 28. November 2013, 22:51:15 schrieb Pierre Labastie:
> Le 26/11/2013 18:27, Pierre Labastie a écrit :
> > Le 26/11/2013 09:12, Thomas Trepl a écrit :
> >> I think I have seen it too. Do you mean it's setting:
> >>
> >> LoadModule php5_module usr/lib/httpd/modules/libphp5.so
> >>
> >> I don't recall when I ran into the problem but it probably is in the php
> >> install code. I also seem to recall it adding a 2nd line when the first
> >> already exists.
> >>
> >> -- Bruce
> >>>>
> >>>> I use in /etc/httpd/httpd.conf
> >>>>
> >>>> LoadModule php5_module modules/libphp5.so
> >>>>
> >>>> Works for me
> >>>
> >>> Sure, but the question is waht does php's make install do?
> >>>
> >>> -- Bruce
> >>
> >> It adds
> >>
> >> {{{
> >> LoadModule php5_module usr/lib/httpd/modules/libphp5.so
> >> }}}
> >>
> >> without the leading / ... at least, 5.3.27 does. I use the 5.3 branch
> >> because 5.5.x seems to break MediaWiki.
> >>
> >>
> >> --
> >> Thomas
> >
> > And so does PHP-5.5.6...
> > I'll try to see if a sed could solve it.
>
> Actually, it is the apxs utility from apache, which suppresses the leading
> /.
>
> I have tried googling about that, and found a debian bug from 2004, but
> nothing else.
>
> apxs is a perl script, so it could be patched, but maybe the leading slash
> removal comes with some reason?
>
> Otherwise, it is possible so fix httpd.conf using sed.
>
> Do not know what the best approach would be.
>
> Regards
> Pierre
You are right, there is some other reason. The pathes are relative to what is
defined in "ServerRoot" in httpd.conf.
You may want to test
ServerRoot "/usr"
LoadModule php5_module lib/httpd/modules/libphp5.so
An ServerRoot with ending slash (ServerRoot "/") is not allowed by the comment
in httpd.conf but it will works.
ServerRoot "/"
LoadModule php5_module usr/lib/httpd/modules/libphp5.so
An approach could be to check which effects a specific ServerRoot will have
and
than specifiy ServerRoot in the configuration and keep the pathes relative to
it. Apxs seems to do that anyhow.
--
Thomas
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page