# /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啊?

解决方案 »

  1.   

    --with-php-config=/usr/local/php/bin/php-config
    笔误
    --with-php-config=/usr/lib/php5/bin/php-config
      

  2.   

    有提示php -m
    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
      

  3.   

    20090626的phpize
    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的???
      

  4.   

    楼主搞定了么?同样的问题呀...我也找不到socket....
      

  5.   

    楼主,我看到一个帖子...貌似要设置时区才行.....http://blog.chinaunix.net/uid-405749-id-28319.html