# /usr/local/php/bin/phpize# ./configure --enable-sockets --with-php-config=/usr/local/php/bin/php-config# make# make install
提示
Installing shared extensions: /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613/
Installing header files: /usr/lib/php5/include/php/
应该成功了吧然后在php.ini里添加
extension="/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613/sockets.so"重启apache
/usr/local/apache2/bin/apachectl -k stop 为啥
php -m 里还是看不到socket啊?
提示
Installing shared extensions: /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613/
Installing header files: /usr/lib/php5/include/php/
应该成功了吧然后在php.ini里添加
extension="/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20060613/sockets.so"重启apache
/usr/local/apache2/bin/apachectl -k stop 为啥
php -m 里还是看不到socket啊?
笔误
--with-php-config=/usr/lib/php5/bin/php-config
PHP Warning: PHP Startup: sockets: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
Telcoware sockets # phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 2200906265.3.2的源码
Telcoware sockets # pwd
/usr/src/php-5.3.2/ext/sockets为什么编译出来是API=20060613的???