Debian Bug report logs - #667784
Please make use of new php5enmod and php5dismod commands in your package

version graph

Package: php5-tokyo-tyrant; Maintainer for php5-tokyo-tyrant is Debian PHP Maintainers <>; Source for php5-tokyo-tyrant is src:php-tokyo-tyrant.

Reported by: Debian PHP maintainers <>

Date: Fri, 6 Apr 2012 15:40:00 UTC

Severity: normal

Found in version php-tokyo-tyrant/0.6.0-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian PHP Maintainers <>:
Bug#667784; Package php5-tokyo-tyrant. (Fri, 06 Apr 2012 15:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Debian PHP maintainers <>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <>. (Fri, 06 Apr 2012 15:40:02 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Debian PHP maintainers <>
To: Debian Bug Tracking System <>
Subject: Please make use of new php5enmod and php5dismod commands in your package
Date: Fri, 06 Apr 2012 17:36:03 +0200
Package: php5-tokyo-tyrant
Version: 0.6.0-2+b1
Severity: normal
Usertags: php54

Dear maintainer,

package php5-tokyo-tyrant currently installs it's configuration file directly
to /etc/php5.  php5 (>= 5.4.0~rc6-1) has introduced two new commands:
php5enmod and php5dismod

Your config file must be installed in /etc/php5/mods-available/<name>.ini

php5enmod should be called from your postinst script (when configuring
the package) with each installed ini file as an parameter (f.e. if you
provide more dynamic extensions and want to ensure correct loading order).

The syntax of php5enmod is:

php5enmod [name](/[priority])

[name] is filename without .ini extension from /etc/php5/mods-available/<name>.ini

The optional [priority] argument can be used if your extension require
other extensions to be loaded before.  Default priority is 20.


    if [ "$1" = "configure" ]; then
      php5enmod mysqlnd

or (with priority):

    if [ "$1" = "configure" ]; then 
       php5enmod pdo/10


php5dismod should be called from prerm script in remove target.

The syntax of php5dismod is:

php5dismod [name]


    if [ "$1" = "remove" ]; then
      php5dismod mysqlnd


Using these maintainer scripts will help get rid of the condition
when the package is removed, but not purged, hence triggering error
messages from php from the fact that it cannot load deleted dynamic

Feel free to contact me, if you have any questions.

Ondřej Surý <>

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Fri Apr 18 08:53:31 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.