Extension error
Closed this issue · 3 comments
Hi I am just using FROM chialab/php:7.1-apache
in my Dockerfile and I get the following error when I later run php from the container.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/gd.so' - libjpeg.so.62: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/intl.so' - libicui18n.so.52: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/pdo_pgsql.so' - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/pgsql.so' - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
All the extensions do exist in the target folder
root@045bfca22cda:/var/www/html# ls /usr/local/lib/php/extensions/no-debug-non-zts-20160303/ -la
total 6620
drwxr-sr-x 1 root staff 4096 Oct 10 15:20 .
drwxr-sr-x 1 root staff 4096 Oct 10 15:14 ..
-rw-r--r-- 1 root staff 44616 Oct 10 15:14 bcmath.so
-rw-r--r-- 1 root staff 32096 Oct 10 15:14 bz2.so
-rw-r--r-- 1 root staff 41888 Oct 10 15:14 calendar.so
-rw-r--r-- 1 root staff 445048 Oct 10 15:19 gd.so
-rw-r--r-- 1 root staff 49896 Oct 10 15:14 iconv.so
-rw-r--r-- 1 root staff 1384504 Oct 10 15:15 intl.so
-rw-r--r-- 1 root staff 1588360 Oct 10 15:16 mbstring.so
-rw-r--r-- 1 root staff 54944 Oct 10 15:16 mcrypt.so
-rw-r--r-- 1 root staff 375448 Oct 10 15:20 memcached.so
-rw-r--r-- 1 root staff 170120 Oct 10 15:17 mysqli.so
-rw-r--r-- 1 root staff 433600 Oct 10 15:17 opcache.so
-rw-r--r-- 1 root staff 34968 Oct 10 15:17 pdo_mysql.so
-rw-r--r-- 1 root staff 54920 Oct 10 15:18 pdo_pgsql.so
-rw-r--r-- 1 root staff 166792 Oct 10 15:18 pgsql.so
-rw-r--r-- 1 root staff 1336560 Oct 10 15:20 redis.so
-rw-r--r-- 1 root staff 347120 Oct 10 15:18 soap.so
-rw-r--r-- 1 root staff 178736 Oct 10 15:19 zip.so
Docker 17.09.0-ce, build afdb6d4 on windows
Hello @ricsam , sorry for the trouble. You closed the issue… were you able to solve it?
@fquffio Hi! No problem, thank you for this repo! I managed to solve the issue. The image I tried to build contained Redis which by some reason made the extensions unavailable. So I moved my Redis to another docker image and everything worked as expected. This was not obvious yesterday so I thought there was an error in your image 😢 which was not the case 🎉 😄
Glad to hear that. 🙃 One less bug to fix for me! 😂 🥂 Happy coding!