配置PHP的执行./buildconf --force出现一下错误
buildconf: Your version of autoconf likely contains buggy cache code. Running vcsclean for you. To avoid this, install autoconf-2.13. 解决方案:安装autoconf-2.13.RPM包 执行export PHP_AUTOCONF=/usr/bin/autoconf-2.13 export PHP_AUTOHEADER=/usr/bin/autoheader-2.13 后完美解决 配置PHP的时候会出现 configure: error: libjpeg.(a|so) not found. 解决办法:添加以下几条连接,多加了条libmysqlclient.so.18是为了防止其他程序依赖这个文件 ln -s /usr/local/lib/libiconv.so.2 /usr/lib64/libiconv.so.2 ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so ln -s /usr/lib64/libldap.so /usr/lib/libldap.so ln -s /usr/lib64/libpng.so /usr/lib/libpng.so ln -s /usr/local/webserver/mysql/lib/libmysqlclient.so.18 /usr/lib64/libmysqlclient.so.18 编译ImageMagick的时候出现 Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 24. 查找资料解决办法在配置的时候加上参数 ./configure --without-perl 或者直接YUM -Y INSTALL perl-CPAN 配置amfext的时候出现 configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk : command not found486: : command not found487: : command not found488: : command not found489: : command not found490: : command not found491: : command not found492: : command not found493: : command not found494: : command not found495: : command not found496: : command not found497: : command not found498: : command not found499: : command not found500: : command not found501: : command not found502: checking whether to enable AMF Serialization support... yes, shared : command not found552: : command not found553: 解决办法 安装 re2c这个RPM包 re2c-0.13.5-1.el6.rf.x86_64启动php-fpm 报错
Starting php_fpm Oct 12 00:39:01.861044 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool 'default' ................................... failed 解决方案:打开vim /usr/local/php/etc/php-fpm.conf把63行的注释给去掉 <!-- <value name="user">nobody</value> -->