[php-maint] Bug#716893: Bug#716893: php5-common: PDO and opcache links not created during installation for CLI

Jörg-Volker Peetz jvpeetz at web.de
Mon Jul 15 09:52:26 UTC 2013


See below, please

Ondřej Surý wrote, on 07/15/2013 10:14:
> JFTR I am able to reproduce the bug and it will be fixed in next upload.
> 
> Unfortunatelly the dh-systemd (1.5) is broken right now, so I can't build the
> package right now, but I will upload a fixed version as soon as the breakage is
> over.
> 
> O.
> 
> 
> On Sun, Jul 14, 2013 at 11:51 AM, Daniel Andersson <sskraep at gmail.com
> <mailto:sskraep at gmail.com>> wrote:
> 
>     Package: php5-common
>     Version: 5.5.0+dfsg-11
>     Severity: normal
> 
>     Dear Maintainer,
> 
>     After upgrading to the PHP 5.5 branch in Sid (directly to 5.5.0+dfsg-11 from
>     the 5.4 branch), running the PHP CLI binary generated:
> 
>         $ php
>         PHP Warning:  PHP Startup: Unable to load dynamic library
>         '/usr/lib/php5/20121212/pdo_mysql.so' -
>         /usr/lib/php5/20121212/pdo_mysql.so: undefined symbol: pdo_parse_params in
>         Unknown on line 0
> 
>     I found out that this most likely occured since the PDO extension had not yet
>     been loaded to define `pdo_parse_params`.
> 
>     Looking at the directory structure for enabled modules gave:
> 
>         $ ls -R1 /etc/php5/*/conf.d
>         /etc/php5/apache2/conf.d:
>         05-opcache.ini
>         10-pdo.ini
>         20-apcu.ini
>         20-curl.ini
>         20-gd.ini
>         20-intl.ini
>         20-json.ini
>         20-mcrypt.ini
>         20-mysqli.ini
>         20-mysql.ini
>         20-pdo_mysql.ini
>         20-snmp.ini
>         20-xmlrpc.ini
> 
>         /etc/php5/cgi/conf.d:
>         05-opcache.ini
>         10-pdo.ini
>         20-apcu.ini
>         20-curl.ini
>         20-gd.ini
>         20-intl.ini
>         20-json.ini
>         20-mcrypt.ini
>         20-mysqli.ini
>         20-mysql.ini
>         20-pdo_mysql.ini
>         20-snmp.ini
>         20-xmlrpc.ini
> 
>         /etc/php5/cli/conf.d:
>         20-apcu.ini
>         20-curl.ini
>         20-gd.ini
>         20-intl.ini
>         20-json.ini
>         20-mcrypt.ini
>         20-mysqli.ini
>         20-mysql.ini
>         20-pdo_mysql.ini
>         20-snmp.ini
>         20-xmlrpc.ini
> 
>     i.e., the `05-opcache.ini` and `10-pdo.ini` were missing from the CLI
>     directory. I tried:
> 
>         $ sudo dpkg-reconfigure php5-common
>         php5_invoke pdo: already enabled for apache2 SAPI
>         php5_invoke pdo: already enabled for cgi SAPI
>         php5_invoke pdo: already enabled for cli SAPI
>         php5_invoke opcache: already enabled for apache2 SAPI
>         php5_invoke opcache: already enabled for cgi SAPI
>         php5_invoke opcache: already enabled for cli SAPI
> 
>     Following a tip in another bug report I changed `set -e` to `set -ex` in
>     `/var/lib/dpkg/info/php5-common.postinst` and ran the above command again,
>     yielding the output attached to this report (also found at
>     <http://pastebin.com/sCn7zz67>).
> 
>     Adding the links manually via e.g.
> 
>         $ sudo cp /etc/php5/cgi/conf.d/{05-opcache.ini,10-pdo.ini} \
>         /etc/php5/cli/conf.d/
> 
>     makes the error message go away and the CLI binary to work as expected.
> 
>     So, for some reason the link creation did not work for these modules during
>     installation. I hope this at least can help someone else with the same issue,
>     and in best case be enough to pin-point a problem.
> 
<snip>

Thanks for this information and hints.
Yes, indeed. on my system the links "05-opcache.ini" and "10-pdo.ini" were
missing from "/etc/php5/cgi/conf.d" and "/etc/php5/cli/conf.d". After adding
them manually, the cron job and the dotclear web page are working again.
By the way, in the directory "/etc/php5/conf.d" there were only two broken links
"05-opcache.ini" and "10-pdo.ini" referring to
"../../mods-available/<>.ini"
which I also repaired manually.

-- 
Regards,
Jörg-Volker.



More information about the pkg-php-maint mailing list