I have the following php
version installed:
PHP 7.0.2 (cli) (built: Jan 6 2016 11:50:59) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
Any php
command on command line interface brings up the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/openssl.so' - /usr/lib/php/modules/openssl.so: 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/lib/php/modules/posix.so' - /usr/lib/php/modules/posix.so: 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/lib/php/modules/xcache.so' - /usr/lib/php/modules/xcache.so: undefined symbol: zval_used_for_init in Unknown on line 0
I have the modules enabled in /etc/php/php.ini
:
extension=openssl.so
[...]
extension=posix.so
xcache
is enabled the same way in /etc/php/conf.d/xcache.ini
:
extension=xcache.so
xcache.size=64M
xcache.var_size=64M
This is the content of /usr/lib/php/modules
:
cu.so bz2.so curl.so exif.so gd.so gmp.so intl.so mcrypt.so opcache.so
pdo_pgsql.so shmop.so sockets.so sysvsem.so xcache.so zip.so bcmath.so
calendar.so dba.so ftp.so gettext.so iconv.so ldap.so mysqli.so pdo_mysql.so
pgsql.so soap.so sysvmsg.so sysvshm.so xmlrpc.so
I wonder, why are the modules missing and how to reinstall them? I can't find any modules in the pacman
modules. The archlinux wikis also only refers to uncommenting the extensions in php.ini
.
I'm running ArchLinux kernel version 4.0.6-1-ARCH x86_64 GNU/Linux.