sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
- From: "Sergey A. Lipnevich" <sergey AT optimaltec.com>
- To: Duane Malcolm <d.malcolm AT auckland.ac.nz>
- Cc: "Sergey A. Lipnevich" <sergey AT sourcemage.org>, sm-grimoire AT lists.ibiblio.org
- Subject: [SM-Grimoire] Re: php mime type
- Date: Tue, 04 Nov 2003 16:08:54 -0500
Thanks Duane!
Your observations finally allowed me to understand why httpd.conf is
missing. Yes, the LoadModule part is inserted by apxs, not by
POST_INSTALL, and httpd.conf must therefore be excluded from
installwatch list. Then, POST_INSTALL adds the MIME type, but I probably
made a mistake when I edited it couple of weeks ago. I'll fix that,
although I strongly believe any such things are not part of the spell's
job: there's too many things in PHP to set. I'd say it's better to have
an /etc/httpd/php.conf file and include it into the main one, or have a
subfolder in /httpd/ and use a blanket include of all
/etc/httpd/*/*.conf files, added as part of apache installation, so that
no spells touch httpd.conf, ever.
What do you think? BTW, I'm sending this to the list so everyone can
opine on this :-).
Thanks!
Sergey.
Duane Malcolm wrote:
> I think I know what's happening:
>
> 1. cast -c apache2 - /etc/httpd/httpd.conf in apache install log
>
> 2. cast -c php - also has /etc/httpd/httpd.conf in the php install log
>
> The POST_INSTALL load module and mime type haven't been included in
> /etc/httpd/httpd.conf.
>
> 3. cast -c php - before installation, php is dispelled, this removes
> /etc/httpd/httpd.conf, which is required during php installation. I
> get the compile log error below.
>
> Then I can't cast apache2:
> [root@Quasar] tmp > cast apache2
> Preparing environment for apache2
> [root@Quasar] tmp >
>
> There is a load php module line in /etc/httpd/httpd.conf but I think
> this has been installed by the php install script (not the
> POST_INSTALL), but there is no mime type line.
>
> It hasn't been a problem unless you try and reinstall php.
>
> Cheers, Duane.
>
>
> Compile log:
>
> Preparing to install php
> Dispelled spell: php
> make[1]: Entering directory `/usr/src/php-4.3.2'
> Installing PHP CLI binary: /usr/bin/
> Installing PHP CLI man page: /usr/man/man1/
> Installing PHP SAPI module
> /usr/share/apache2/build/instdso.sh
> SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp4.la /usr/libexec
> /usr/share/apache2/build/libtool --mode=install cp libphp4.la
> /usr/libexec/
> cp .libs/libphp4.so /usr/libexec/libphp4.so
> cp .libs/libphp4.lai /usr/libexec/libphp4.la
> libtool: install: warning: remember to run `libtool --finish
> /usr/src/php-4.3.2/libs'
> chmod 755 /usr/libexec/libphp4.so
> apxs:Error: Config file /etc/httpd/httpd.conf not found.
> make[1]: *** [install-sapi] Error 1
> make[1]: Leaving directory `/usr/src/php-4.3.2'
> ! Problem Detected !
>
> Duane Malcolm wrote:
>
>> Hi Sergey,
>>
>> I don't think the php POST_INSTALL script is working. It doesn't
>> include the php module and php mime type in httpd.conf. For some
>> reason there is another php load module line is the httpd.conf file.
>> I was trying to find out what was happening but things turned bad and
>> it seems my httpd.conf file has been deleted and I can't cast
>> apache2. I think some system files are missing.
>>
>> I'll report further when I work on this in the future. I didn't want
>> to report this as a bug since I wasn't sure what was happening.
>>
>> Cheers, Duane.
>
--
Sergey A. Lipnevich <sergey AT optimaltec.com>
-
[SM-Grimoire] Re: php mime type,
Sergey A. Lipnevich, 11/04/2003
- Re: [SM-Grimoire] Re: php mime type, Eric Sandall, 11/04/2003
Archive powered by MHonArc 2.6.24.