PHP Startup: skywalking: Unable to initialize modu

问题描述:

机器装有 PHP5.6、PHP7.2.34
报错是给PHP7.2.34安装扩展后启动报的错
编译安装时都有指定 PHP bin 和 PHP配置
安装的是 skywalking(3.3.2)扩展

/data/soft/php/7.2.n/bin/phpize
./configure --with-php-config=/data/soft/php/7.2.n/bin/php-config
make && make install
/data/soft/php/7.2.n/sbin/php-fpm --fpm-config /data/soft/php/7.2.n/etc/php-fpm.conf -c /data/soft/php/7.2.n/etc/php.ini

 

启动 php-fpm 报以下错误:

Unknown(0) : Warning - PHP Startup: skywalking: Unable to initialize module
Module compiled with build ID=API20170718,NTS
PHP compiled with build ID=API20170718,NTS,debug
These options need to match

 

原因:编译与运行环境不一致

Module compiled with build ID=API20170718,NTS
PHP compiled with build ID=API20170718,NTS,debug

PHP build ID 后面有个debug,所以给安装扩展时也需要指定debug

./configure --with-php-config=/data/soft/php/7.2.n/bin/php-config --enable-debug

 

重新编译前执行下

make  clean

 

上一篇:Unable to start web server; nested exception is org.springframework.context.ApplicationContextExcept


下一篇:Outlook2013中"Unable to log in to: SharePoint" 错误的解决方案