Unable to load dynamic library '/usr/lib/php/20151012/mysql.so' #370
Open
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 4.8.2
- Ruby: 2.3.3
- Distribution: Debian 9
- Module version: 4.0.0
How to reproduce (e.g Puppet code you use)
Manifest:
class { '::php': }
Hiera:
php::globals::php_version: '7.0'
php::composer: false
php::dev: false
php::manage_repos: false
php::pear: false
php::settings:
'PHP/max_execution_time': '60'
'PHP/max_input_time': '240'
'PHP/memory_limit': '128M'
'PHP/post_max_size': '32M'
'PHP/upload_max_filesize': '32M'
'Date/date.timezone': 'Europe/Berlin'
php::fpm::pools:
www:
listen: '/var/run/php-fpm.sock'
listen_group: 'www-data'
php::extensions:
curl: {}
gd: {}
intl: {}
mcrypt: {}
mysql: {}
pgsql: {}
pspell: {}
tidy: {}
xsl: {}
What are you seeing
A file /etc/php/7.0/mods-available/mysql.ini
with the following content gets created by the puppet module:
extension = mysql.so
but on Debian 9 there is no mysql.so
file only a pdo_mysql.so
and mysql.i.so
.
What behaviour did you expect instead
I guess the file /etc/php/7.0/mods-available/mysql.ini
should not be created on Debian 9 as mysql.so
is not available.
Output log
Aug 1 16:09:00 vps sessionclean[29576]: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mysql.so' - /usr/lib/php/20151012/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0