由于项目需要用到pcntl模块,今天就重新编译了一下PHP,也修改了php.ini,在最后一行加上extension=pcntl.so,但是用php -m查看还是没有加载成功。
编译参数:
php源码目录在
生成的模块扩展文件在
其他模块都能加载成功,只有pcntl.so模块没有加载成功,并且在
php.in配置文件最后几行也贴出来给大家看一下,希望哪个高手帮忙看一下
编译参数:
--prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-apxs2=/usr/local/apache/bin/apxs --enable-bcmath=shared --with-pdo_sqlite=shared --with-gettext=shared --with-iconv=shared --enable-ftp=shared --with-sqlite=shared --with-sqlite3=shared --enable-mbstring=shared --enable-sockets=shared --enable-zip --with-openssl --with-zlib --with-curl=shared --with-gd=shared --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt=shared --with-mhash=shared --with-mysql=mysqlnd --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd --without-pear --with-libdir=lib64 --disable-fileinfo --enable-pcntl
php源码目录在
/usr/local/src/EZHTTP-master/soft/php-5.3.27/
生成的模块扩展文件在
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/
ls查看扩展文件:
aop.so ftp.so iconv.so mbstring.so mysqli.so pdo_sqlite.so sqlite3.so
bcmath.so gd.so imagick.so mcrypt.so pcntl.so proctitle.so xdebug.so
curl.so gettext.so libevent.so memcache.so pdo_mysql.so sockets.so
其他模块都能加载成功,只有pcntl.so模块没有加载成功,并且在
/usr/local/src/EZHTTP-master/soft/php-5.3.27/ext/pcntl/modules
下面也生成了 pcntl.so。好像php启动的时候是去这里加载的。php.in配置文件最后几行也贴出来给大家看一下,希望哪个高手帮忙看一下
[dba]
;dba.default_handler=
[xsl]
; Write operations from within XSLT are disabled by default.
; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE = 44
; Set it to 0 to allow all operations
;xsl.security_prefs = 44
; Local Variables:
; tab-width: 4
; End:
[ZendGuardLoader]
zend_extension="//opt/ezhttp/ZendGuardLoader/ZendGuardLoader.so"
extension=curl.so
extension=gd.so
extension=mbstring.so
extension=pdo_mysql.so
extension=mysqli.so
[xcache]
extension=xcache.so
[memcache]
extension=memcache.so
[pcntl]
extension=pcntl.so