You are hereApache
Apache
摸索着解决问题就是得不断试错
今天在查看drupal是否有模块更新时发现还是有这样的错误提示:
HTTP request status Fails
Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.
大前天发现的,当时以为是drupal官方站点刚刚从版本5升级到6,或许升级访问接口暂时出了故障,没多考虑,放弃解决。今天还是这样?恐怕就是自己服务器的问题了。奇怪,正常运行快一年了,怎么会突然出现问题?沿用使用PC时解决问题的老经验,重新启动。但重启后问题更严重,web服务竟然也无法开启。查看http-error.log,发现是这样的错误提示:
[alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "weweblog.org" Configuration Failed
升级Apache2.0.55到2.0.63、PHP4.4.2到5.2.5
继续通过FreeBSD的Ports方式升级。在升级Apache时会遇到两次中止,第一次是发现有老的perl版本存在,提示:An older version of lang/perl5.8 is already installed (perl-5.8.7_2) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of lang/perl5.8 without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. 我选择了第一种做法,虽然过程有些啰嗦,但更直观些。卸载perl-5.8.7_2安装perl-5.8.8_1之后继续重复安装Apache,遇到了第二次中止,提示老版本的Apache存在,我的做法和处理perl的一样,卸载老版本,安装新版本。(很笨哟)在此之前我把/usr/local/etc目录备份了一下,结果发现好像用不上,新版本的安装并未覆盖或修改httpd.conf。重启Apache (/usr/local/sbin/apachectl restart),再刷新phpinfo,Apache的版本已经更新。