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:
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)
#
# 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
Message-ID: <email address hidden>
Date: Fri, 10 Sep 2004 02:25:01 +0200
From: Eric Van Buggenhaut <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: php4: postinst corrupts apache config file
Package: php4
Version: 4.1.2-7.0.1
Severity: grave
piano:/home/eric# apt-get install php4 4%3a4.1. 2-7.0.1_ i386.deb) ... httpd.conf manually:
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_
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/
LoadModule php4_module /usr/lib/ apache/ 1.3/libphp4. so
Do you want me to run the apacheconfig script now [y/N] ? y ....... ....... ....... ....... ....... ..found.
Finding DSO mods...
# LoadModule vhost_alias_module /usr/lib/ apache/ 1.3/mod_ vhost_alias. so apache/ 1.3/mod_ env.so apache/ 1.3/mod_ log_config. so apache/ 1.3/mod_ mime_magic. so apache/ 1.3/mod_ mime.so apache/ 1.3/mod_ negotiation. so apache/ 1.3/mod_ status. so apache/ 1.3/mod_ info.so apache/ 1.3/mod_ include. so apache/ 1.3/mod_ autoindex. so apache/ 1.3/mod_ dir.so apache/ 1.3/mod_ cgi.so apache/ 1.3/mod_ asis.so apache/ 1.3/mod_ imap.so apache/ 1.3/mod_ actions. so apache/ 1.3/mod_ speling. so apache/ 1.3/mod_ userdir. so apache/ 1.3/mod_ alias.so apache/ 1.3/mod_ rewrite. so apache/ 1.3/mod_ access. so apache/ 1.3/mod_ auth.so apache/ 1.3/mod_ auth_anon. so apache/ 1.3/mod_ auth_dbm. so apache/ 1.3/mod_ auth_db. so apache/ 1.3/libproxy. so apache/ 1.3/mod_ digest. so apache/ 1.3/mod_ cern_meta. so apache/ 1.3/mod_ expires. so apache/ 1.3/mod_ headers. so apache/ 1.3/mod_ usertrack. so apache/ 1.3/mod_ unique_ id.so apache/ 1.3/mod_ setenvif. so apache/ 1.3/mod_ auth_sys. so apache/ 1.3/mod_ put.so apache/ 1.3/mod_ throttle. so apache/ 1.3/mod_ allowdev. so apache/ 1.3/mod_ eaccess. so apache/ 1.3/libphp4. so apache/ 1.3/mod_ roaming. so
# LoadModule env_module /usr/lib/
LoadModule config_log_module /usr/lib/
LoadModule mime_magic_module /usr/lib/
LoadModule mime_module /usr/lib/
LoadModule negotiation_module /usr/lib/
LoadModule status_module /usr/lib/
# LoadModule info_module /usr/lib/
# LoadModule includes_module /usr/lib/
LoadModule autoindex_module /usr/lib/
LoadModule dir_module /usr/lib/
LoadModule cgi_module /usr/lib/
# LoadModule asis_module /usr/lib/
# LoadModule imap_module /usr/lib/
# LoadModule action_module /usr/lib/
# LoadModule speling_module /usr/lib/
LoadModule userdir_module /usr/lib/
LoadModule alias_module /usr/lib/
LoadModule rewrite_module /usr/lib/
LoadModule access_module /usr/lib/
LoadModule auth_module /usr/lib/
# LoadModule anon_auth_module /usr/lib/
# LoadModule dbm_auth_module /usr/lib/
# LoadModule db_auth_module /usr/lib/
# LoadModule proxy_module /usr/lib/
# LoadModule digest_module /usr/lib/
# LoadModule cern_meta_module /usr/lib/
LoadModule expires_module /usr/lib/
# LoadModule headers_module /usr/lib/
# LoadModule usertrack_module /usr/lib/
LoadModule unique_id_module /usr/lib/
LoadModule setenvif_module /usr/lib/
# LoadModule sys_auth_module /usr/lib/
# LoadModule put_module /usr/lib/
# LoadModule throttle_module /usr/lib/
# LoadModule allowdev_module /usr/lib/
# LoadModule eaccess_module /usr/lib/
# LoadModule php4_module /usr/lib/
# LoadModule roaming_module /usr/lib/
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. httpd.conf:
Restart Apache now? [Y/n] y
Syntax error on line 1023 of /etc/apache/
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 httpd.conf. orig Fri Sep 10 02:12:41 2004 httpd.conf Fri Sep 10 02:13:13 2004 apache/ 1.3/libphp4. so apache/ 1.3/mod_ roaming. so opengroupware. org/WebServer/ ngobjweb_ 1.3.26. so
--- /etc/apache/
+++ /etc/apache/
@@ -241,7 +241,6 @@
# LoadModule php4_module /usr/lib/
# LoadModule roaming_module /usr/lib/
#next one is needed for OpenGrouware to accept connections
-LoadModule ngobjweb_module /usr/lib/
#
# 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 httpd.conf and breaks the web server config file. That's why
letting us believe it actually does it.
2. what is much more important, the postinst script rewrites unrelated parts
of /etc/apache/
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
<email address hidden>