欢迎各位兄弟 发布技术文章
这里的技术是共享的
我的报错如下
12月 25 16:26:48 LX-NB-213PGXB.bbbb.com.cn httpd[2254]: Starting httpd: httpd: Syntax error on line 155 of /www/wdlinux/httpd-2.4.41/conf/httpd.conf: Cannot load modules/libphp5.so into server: /www/wdlinux/httpd-2.4.41/modules/libphp5.so: undefined symbol: libiconv_open
昨晚整合apache和php是实在找不到解决办法,Google 百度都转一圈了,总算在百度找回来解决方法,记录一下,这个问题是在apache启动时出现的:
./apachectl start
提示下面的错误:
httpd: Syntax error on line 57 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: libiconv_open
解决方法:
重新编译php,configura完成后在编译时加入以下参数:
make ZEND_EXTRA_LIBS='-liconv'