阳光越强烈
阴影就越是深邃

/ucenter/index.php was not found on this server.解决办法

今天退出UCHOME出现/ucenter/index.php was not found on this server.,马上百度一下,记录一下这个问题的解决办法:

整合配置ucenter和uchone的应用过程中,在uhome上登录退出时出现了The requested URL /ucenter/index.php was not found on this server错误提示,提示的问题非常奇怪,明明域名指向的是主机的IP,提示里缺说是Apache  (Unix) Server,解决办法是修改uchome的config.php的define(‘UC_IP’, ‘xxx.xxx.xxx.xxx’),把xxx.xxx.xxx.xxx的值改为当前ucenter所在主机的ip。而且我使用的是mysql数据库,不知道官方的解释是为什么非mysql方式时设置此值。

另种解决方法是修改uchome /uc_client/clinet.php的$fp = @fsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout);修改为$fp = @fsockopen($host, $port, $errno, $errstr, $timeout);  在应用所在服务器域名解析正常下使用。按官方的版本如果ucenter和应用不在同一主机上而且ucenter不支持通过ip访问的话也该出现这样的错误提示,不知道有没有人遇到过。

记得到ucenter里面更新一下缓存

赞(0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址