[php-maint] Bug#601243: php5-fpm: fails to install via aptitude if /var/www does not exist

Donald von Stufft donald.stufft at gmail.com
Sun Oct 24 14:57:39 UTC 2010

Package: php5-fpm
Version: 5.3.3-1
Severity: important

When attempting to install php5-fpm via aptitude -t experimenta install php5-fpm
if the directory /var/www does not exist then an error will be thrown (see below).
This is simple enough to workaround (mkdir -p /var/www). I am using the nginx 
webserver which does not create the /var/www directory.

The error message is:

Setting up php5-fpm (5.3.3-1) ...
update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
Starting PHP5 FPM...Oct 24 14:48:17.684794 [WARNING] [pool www] pm.start_servers is not set. It's been set to 20.
Oct 24 14:48:17.684851 [ERROR] [pool www] the chdir path '/var/www' does not exist or is not a directory
Oct 24 14:48:17.684863 [ERROR] failed to post process the configuration
invoke-rc.d: initscript php5-fpm, action "start" failed.
dpkg: error processing php5-fpm (--configure):
 subprocess installed post-installation script returned error exit status 255
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of php5-suhosin:
 php5-suhosin depends on phpapi-20090626+lfs; however:
  Package phpapi-20090626+lfs is not installed.
  Package php5-fpm which provides phpapi-20090626+lfs is not configured yet.
dpkg: error processing php5-suhosin (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

Kernel: Linux (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

Versions of packages php5-fpm depends on:
ii  libbz2-1.0             1.0.5-6           high-quality block-sorting file co
ii  libc6                  2.11.2-6+squeeze1 Embedded GNU C Library: Shared lib
ii  libcomerr2             1.41.12-2         common error description library
ii  libdb4.8               4.8.30-2          Berkeley v4.8 Database Libraries [
ii  libevent-1.4-2         1.4.13-stable-1   An asynchronous event notification
ii  libgssapi-krb5-2       1.8.3+dfsg-2      MIT Kerberos runtime libraries - k
ii  libk5crypto3           1.8.3+dfsg-2      MIT Kerberos runtime libraries - C
ii  libkrb5-3              1.8.3+dfsg-2      MIT Kerberos runtime libraries
ii  libmagic1              5.04-5            File type determination library us
ii  libonig2               5.9.1-1           Oniguruma regular expressions libr
ii  libpcre3               8.02-1.1          Perl 5 Compatible Regular Expressi
ii  libqdbm14              1.8.77-3.1        QDBM Database Libraries [runtime]
ii  libssl0.9.8            0.9.8o-2          SSL shared libraries
ii  libxml2                2.7.7.dfsg-4      GNOME XML library
ii  mime-support           3.48-1            MIME files 'mime.types' & 'mailcap
ii  php5-common            5.3.3-1           Common files for packages built fr
ii  tzdata                 2010l-1           time zone and daylight-saving time
ii  ucf                    3.0025+nmu1       Update Configuration File: preserv
ii  zlib1g                 1:  compression library - runtime

php5-fpm recommends no packages.

Versions of packages php5-fpm suggests:
pn  php-pear                      <none>     (no description available)

-- no debconf information

More information about the pkg-php-maint mailing list