[php-maint] Bug#505743: /etc/php5/sapi/conf.d is difficult to handle

Carl Fürstenberg azatoth at gmail.com
Fri Nov 14 20:10:48 UTC 2008

Package: php5
Version: 5.2.6-5
Severity: normal

The current setup, where /etc/php5/sapi/conf.d is an symlink to
/etc/php5/conf.d is a problem for me because of two things:
1. it assumes that all sapi vill have the same configuration
2. it makes it difficult for a package to install an sapi specific
configuration file, say it installs it to /etc/php5/cgi/conf.d/foo.ini,
then, as it assumes the conf.d is a dir, takes ownership of that dir, as
no other package is owning such a dir; at next upgrade of php5, it will
get angry, as it can't create that symlink, as there is registered an
directory in the way (perhaps this is more of an error from my side, and
it can be accomplished in can other way, but still, the package in
question want only the specific sapi to have this config).

My proposal is to, instead of having symlinks, to create empty
directories in it's place, and ship with an helper program, to
enable/disable different configurations.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5 depends on:
ii  php5-cgi                      5.2.6-5    server-side, HTML-embedded scripti
ii  php5-common                   5.2.6-5    Common files for packages built fr
ii  php5.0-common [php5-common]   5.0.5-0.8  common files for packages built fr
ii  php5.1-common [php5-common]   5.1.4-0.1  common files for packages built fr

php5 recommends no packages.

php5 suggests no packages.

-- no debconf information

More information about the pkg-php-maint mailing list