PHP 7.1.11-r0 from the community edge repo does not start properly…

4 posts / 0 new
Last post
#1 Wed, 2017-11-01 16:57
Foddy
  • Foddy's picture
  • Offline
  • Last seen: 5 months 17 hours ago
  • Joined: 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!

Thu, 2017-11-09 08:38
ishiijp
  • ishiijp's picture
  • Offline
  • Last seen: 4 months 3 weeks ago
  • Joined: 2017-11-09

I have the same problem, and I also couldn't find any solution..

Sun, 2017-12-10 18:22
raxetul
  • raxetul's picture
  • Offline
  • Last seen: 3 months 3 weeks ago
  • Joined: 2017-12-10

https://bugs.alpinelinux.org/issues/8000
it is said that installing as "apk add libbsd=libbsd 0.8.6-r1" resolves the problem.

Wed, 2018-02-14 13:40
easytune
  • easytune's picture
  • Offline
  • Last seen: 1 month 2 weeks ago
  • Joined: 2018-02-14

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!

Log in or register to post comments