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

Bug#270922: marked as done (php4: postinst corrupts apache config file)



Your message dated Mon, 20 Aug 2007 01:49:34 +0300
with message-id <20070819224934.GA3339@norsu.vuoristo.local>
and subject line Closing woody bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: php4
Version: 4.1.2-7.0.1
Severity: grave


piano:/home/eric# apt-get install php4
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  php4 
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 0B/583kB of archives. After unpacking 1402kB will be used.
Selecting previously deselected package php4.
(Reading database ... 24303 files and directories currently installed.)
Unpacking php4 (from .../php4_4%3a4.1.2-7.0.1_i386.deb) ...
Setting up php4 (4.1.2-7.0.1) ...
I see you have apache webserver installed and so far you haven't
used the apache module version of php4 in your apache. If you
want to use it, you should reconfigure the apache webserver and
select to load the php module. I can call the apacheconfig script
now for you to do it, or you can insert the following line into
/etc/apache/httpd.conf manually:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Do you want me to run the apacheconfig script now [y/N] ? y
Finding DSO mods........................................found.

# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
# LoadModule env_module /usr/lib/apache/1.3/mod_env.so
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
# LoadModule info_module /usr/lib/apache/1.3/mod_info.so
# LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
# LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
# LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
# LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
# LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
# LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
# LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
# LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
# LoadModule digest_module /usr/lib/apache/1.3/mod_digest.so
# LoadModule cern_meta_module /usr/lib/apache/1.3/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
# LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so
# LoadModule usertrack_module /usr/lib/apache/1.3/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
# LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
# LoadModule put_module /usr/lib/apache/1.3/mod_put.so
# LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
# LoadModule allowdev_module /usr/lib/apache/1.3/mod_allowdev.so
# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
# LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
# LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so

Pondering........................................ done.

Save these changes to the configuration files? [Y/n] y

Rotated `/etc/apache/httpd.conf' at Fri Sep 10 02:07:40 CEST 2004.
Restart Apache now? [Y/n] y
Syntax error on line 1023 of /etc/apache/httpd.conf:
Invalid command 'SetAppPort', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl start: httpd could not be started
dpkg: error processing php4 (--configure):
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 php4
E: Sub-process /usr/bin/dpkg returned an error code (1)


piano:/home/eric# diff -u /etc/apache/httpd.conf.orig /etc/apache/httpd.conf
--- /etc/apache/httpd.conf.orig Fri Sep 10 02:12:41 2004
+++ /etc/apache/httpd.conf      Fri Sep 10 02:13:13 2004
@@ -241,7 +241,6 @@
 # LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
 # LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so
 #next one is needed for OpenGrouware to accept connections
-LoadModule ngobjweb_module /usr/lib/opengroupware.org/WebServer/ngobjweb_1.3.26.so
 
 #
 # ExtendedStatus: controls whether Apache will generate "full" status



What we have here is that

1. php4 postinst script doesn't uncomment the php4's LoadModule line while
letting us believe it actually does it.
2. what is much more important, the postinst script rewrites unrelated parts
of /etc/apache/httpd.conf and breaks the web server config file. That's why
I tagged the bug as grave.

Cheers,

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux piano 2.6.8 #1 Wed Aug 18 22:20:12 CEST 2004 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages php4 depends on:
ii  apache-common          1.3.26-0woody5    Support files for all Apache webse
ii  fileutils              4.1-10            GNU file management utilities
ii  libbz2-1.0             1.0.2-1           A high-quality block-sorting file
ii  libc6                  2.2.5-11.5        GNU C Library: Shared libraries an
ii  libdb2                 2:2.7.7.0-7       The Berkeley database routines (ru
ii  libexpat1              1.95.2-6          XML parsing C library - runtime li
ii  libmm11                1.1.3-6.1         Shared memory library
ii  libpam0g               0.72-35           Pluggable Authentication Modules l
ii  libpcre3               3.4-1.1           Philip Hazel's Perl Compatible Reg
ii  mime-support           3.18-1.3          MIME files 'mime.types' & 'mailcap
ii  zlib1g                 1:1.1.4-1.0woody0 compression library - runtime

-- 
Eric VAN BUGGENHAUT
ericvb@debian.org


--- End Message ---
--- Begin Message ---
closing as woody is no longer supported

--- End Message ---

Reply to: