PHP 7.1.11-r0 from the community edge repo does not start properly…
#1
Wed, 2017-11-01 16:57
Foddy
-
- Offline
- 5 months 17 hours ago
- 2017-11-01
Hi,
I upgraded a bunch of containers with the latest version of Alpine and PHP 7.1 from the community edge repository and now I get this error when I try to get the current version of PHP via CLI. I simply installed PHP 7.1 by using the "apk add php7" command.
~ # php -v Error relocating /usr/bin/php: fopencookie: symbol not found
I couldn't find any working solution… Does anybody gets the same error or knows how to fix it? :O
Thank you in advance!
I have the same problem, and I also couldn't find any solution..
https://bugs.alpinelinux.org/issues/8000
it is said that installing as "apk add libbsd=libbsd 0.8.6-r1" resolves the problem.
For me it was clearly an permission issue. I had multiple *Error relocating* issues after locking /etc/ for all users, except root.
chmod -R a-rwx /etc/ && chmod -R u+rx /etc/
So make sure everything in /etc/php7 is readable by www or www-data. Try this and pkill php after.
bash-4.3# chmod -R a+r /etc/php*
Here are my permissions for /etc/php7/
total 92
drwxr-xr-x 2 root root 4.0K Feb 10 12:03 conf.d
-rw-r--r-- 1 root root 418 Feb 7 13:04 php-fpm.conf
drwxr-xr-x 2 root root 4.0K Feb 10 12:03 php-fpm.d
-rw-r--r-- 1 root root 69.0K Feb 10 12:04 php.ini
Good luck!