Problem getting Php PDO support working

3 posts / 0 new
Last post
#1 Sat, 2018-03-31 12:02
hkirsman
  • hkirsman's picture
  • Online
  • Last seen: 4 min 59 sec ago
  • Joined: 2018-03-31

I've tried installing php7-fpm + nginx + mysql. Almost seems done but for some reason I'm still getting PHP Fatal error: Class 'PDO' not found. I've installed all kinds of different pdo related packages listed here https://pkgs.alpinelinux.org/packages?name=*pdo*&branch=edge&repo=community but when I check phpinfo() then I don't see PDO as enabled. Any hints where to check? Google seems to ignore my requests regarding apk-alpine-pdo-not-found-etc queries

I've used Standard Alpine distro for installation.

Sun, 2018-04-01 11:28
hkirsman
  • hkirsman's picture
  • Online
  • Last seen: 4 min 59 sec ago
  • Joined: 2018-03-31

If I run the php from bash I see that it can't read the .so files from php modules folder. Can't copy paste but will type in 1 manually:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/dba.so' - Error relocating /usr/lib/php7/modules/dba.so: zend_spprintf: symbol not found in Unknown on line 0

Sun, 2018-04-01 11:55
hkirsman
  • hkirsman's picture
  • Online
  • Last seen: 4 min 59 sec ago
  • Joined: 2018-03-31

Ok, I think the problem is that it's possible to somehow install wrong versions of php binary and extensions. I'm now trying to install 7.1 but for some reason it fails:
apk add php7=7.1.15
Error: unsatisfiable constraints
php7-7.2.4-r0
breaks: world[php7=7.1.15-r0]

Log in or register to post comments