For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2005 > #34315 [Asn->Opn]: Installer disables php in httpd.conf









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #34315 [Asn->Opn]: Installer disables php in httpd.conf
sniper@php.net

2005-08-31, 6:56 pm

ID: 34315
Updated by: sniper@php.net
Reported By: marcus at synchromedia dot co dot uk
-Status: Assigned
+Status: Open
-Bug Type: Apache2 related
+Bug Type: Documentation problem
Operating System: MacOS X 10.4.2
PHP Version: 5.1.0RC1
Assigned To: sniper
New Comment:

It's done because most distributions with apache2 use the 'conf.d'
style modularized configurations and the apxs tool can't handle
anything but httpd.conf and that results in having the line in question
in 2 places. Documentation should state this.


Previous Comments:
------------------------------------------------------------------------

[2005-08-31 14:53:22] derick@php.net

It's stupid to do this - it will stop running installs from working
properly when people upgrade.

------------------------------------------------------------------------

[2005-08-31 14:48:14] marcus at synchromedia dot co dot uk

Any particular reason?

I can see it being not unreasonable for new installs, but for
upgrades (i.e. where the LoadModule line is already active) it
seems really unnecessary. It means that every install of 5.1
will default to not working, even if it was working before.

Is this change in behaviour documented?

------------------------------------------------------------------------

[2005-08-31 14:16:06] sniper@php.net

That change was intentional, no bug here.

------------------------------------------------------------------------

[2005-08-31 14:12:03] derick@php.net

Jani, I think this is broken by you when you changed the apxs switch
from "install" to "not install" or something, please have a look at it.

------------------------------------------------------------------------

[2005-08-31 14:05:51] marcus at synchromedia dot co dot uk

Description:
------------
Everything compiles and installs ok (as an apache2filter), but
apache2 just doesn't load it. I tracked it down to a simple
problem in httpd.conf - the 5.1 installer comments out this
line:

LoadModule php5_module /sw/lib/apache2/modules/
libphp5.so

Even though make install said:

[preparing module `php5' in /sw/etc/apache2/httpd.conf]

An identical configuration of PHP 5.0.5RC2 works perfectly and
does not comment out that line, The CLI compile of 5.1 works
ok too.

Reproduce code:
---------------
Starting with a working install of 5.0.5RC2,

% cd php-5.1.0RC1

% grep php5_module /sw/etc/apache2/httpd.conf

LoadModule php5_module /sw/lib/apache2/modules/libphp5.so

% make install
....
% grep php5_module /sw/etc/apache2/httpd.conf

#LoadModule php5_module /sw/lib/apache2/modules/libphp5.so

So it's definitely the installer that's disabling it.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=34315&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com