用apxs2的话提示(我的系统是apache2.0.40,redhat linux) Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking for member fd in BUFF *... (cached) no checking for mod_charset compatibility option... no checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `APU_BINDIR'. apxs:Error: Invalid query string `APR_BINDIR'. ./configure: line 1: /apu-config: No such file or directory ./configure: line 1: /apr-config: No such file or directory configure: error: Please note that Apache version >= 2.0.44 is required.我用rpm包安装看看
Please note that Apache version >= 2.0.44 is required. 你需要安装apache 2.0.44以上的版本,你现在的版本是2.0.40估计这个版本有问题,目前的php不支持
如果不是的话,就还跟以前一样,重新configure make install你的php。不会有什么影响的。最好备份一下你的php.ini文件。
#./configure
#make
#make install
重起apache后,还是老样子,phpinfo()还是显示4.2.2
不要笑话我,万望赐教!!!
--with-apxs=/usr/sbin/apxsgd库最简单的方法是安装rpm包,除了标准库之外,还需要将开发包也装上。不然的话php报无法找到gd库文件。更新gd库以后必须重新编译php,如果apache不是动态模块装载的模式,也需要编译apache
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... (cached) no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `APU_BINDIR'.
apxs:Error: Invalid query string `APR_BINDIR'.
./configure: line 1: /apu-config: No such file or directory
./configure: line 1: /apr-config: No such file or directory
configure: error: Please note that Apache version >= 2.0.44 is required.我用rpm包安装看看
你需要安装apache 2.0.44以上的版本,你现在的版本是2.0.40估计这个版本有问题,目前的php不支持