PHP does not load extensions specified in php.ini, but loads using dl ()

Php does not load extensions specified in php.ini

php -v does not give any errors or warnings

php -i | grep extension_dir shows that the extension_dir file indicates where the extension files are, but they do not appear in the list of extensions in php -m

However, the launch php -r 'dl("apc.so"); phpinfo();' | grep apcshows that the modules load normally using the function dl().

I installed php-5.3.5 from the source. Configured with

'--enable-fastcgi'
'--enable-fpm'
'--enable-mbstring'
'--enable-pdo'
'--enable-inline-optimization'
'--enable-sockets'
'--enable-zip'
'--enable-mbregex'
'--enable-xml'
'--enable-sysvsem'
'--enable-sysvshm'
'--enable-pcntl'
'--enable-ftp'
'--enable-soap'
'--enable-shmop'
'--disable-rpath'
'--disable-debug'
'--with-mcrypt'
'--with-zlib'
'--with-curl'
'--with-bz2'
'--with-mysql'
'--with-gettext'
'--with-gd'
'--with-pdo-mysql'
'--with-pcre-regex'
'--with-mhash'
'--with-pic'
'--with-zlib-dir'
'--with-ttf'
'--with-openssl'
'--with-png-dir'
'--with-libdir=lib64'
'--without-pdo-sqlite'
'--without-sqlite'

uname -a Fingerprints:

Linux ip-*-*-*-* 2.6.34.7-56.40.amzn1.x86_64 #1 SMP Fri Oct 22 18:48:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

Php runs on nginx 0.9.5 via php-fpm

+3
source share
3 answers

Sorting is fixed by statically linking the extensions I need in the php executable, everything works now. The server will not load the xdebug extension, though.

0
source

, :

extension=apc.so

php.ini ( .ini), PHP.


, dl(), , ( - ).

, :

  • , extension=... php.ini
  • , php.ini

, php.ini : phpinfo().


. Linux php.ini, CLI, , Apache ( , nginx).

+6

Php.ini phpmyadmin ; extension = php_soap.dll ;. Wamp/xamp, URL....

0
source

All Articles