准备搭建nginx+php-fpm的环境
在php.net上下载了PHP 5.4.10 的源代码 configure正常 make正常但是make install 直接中断在install pdo header 用make test提示microtime()有问题 截图如下
环境:CentOs 5.8—64_X86 运行在虚拟机virtualbox中
另外尝试了5.3.2以前的版本,需要手动添加php-fpm的补丁,但是在make的时候出现错误如下:
/root/php-5.2.4/sapi/cgi/cgi_main.c: In function 'main':
/root/php-5.2.4/sapi/cgi/cgi_main.c:1943: error: 'php_cgi_globals_struct' has no member named 'error_header'
/root/php-5.2.4/sapi/cgi/cgi_main.c:1943: error: 'php_cgi_globals_struct' has no member named 'error_header'
/root/php-5.2.4/sapi/cgi/cgi_main.c:1946: error: 'php_cgi_globals_struct' has no member named 'error_header'
/root/php-5.2.4/sapi/cgi/cgi_main.c:1947: error: 'php_cgi_globals_struct' has no member named 'error_header'
make: *** [sapi/cgi/cgi_main.lo] 错误 1
源代码的安装方式很麻烦,但是想要加入php-fpm的功能必须用源代码在编译之前配置
新手,希望有大神能指点方向!!