将公司的项目环境换成docker了,本以为一个docker走天下,结果碰到了个奇葩phalcon,移植的机器上一运行就导致php异常退出,php-fpm.log日志中显示是 child 11176 exited on signal 4 (SIGILL – core dumped) 之类的错误,意思是无效指令,于是google了一番,发现phalcon竟然跟cpu啥的有关系!移植机器后需要重新编译才行:
重新编译phalcon框架 (不要使用 ./build/install方式):
# If your system is 32 bit:
cd build/32bits
# If your system is 64 bit:
cd build/64bits phpize ./configure CFLAGS="-O2 -g -fomit-frame-pointer -DPHALCON_RELEASE" make sudo make install
参考: https://github.com/phalcon/cphalcon/issues/1385
转载请注明:Findever » docker移植的phalcon框架无法运行