win7(64)位搭建testlink(續)

問題描述:

         testlink安裝成功後,首次登陸成功,退出後再次登陸會跳轉到登陸頁面:

嘗試進行了以下動作:
1、進入testlink/login.php頁面提示2000 - mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication
    原因:
    MySQL 5.0 爲了和4.1之前的版本兼容,用戶密碼(mysql數據庫的user表password字段)保存的是密碼的16位hash值,而PHP5.3後的 mysql驅動使用41位的密碼hash值進行用戶驗證,所以需要讓mysql中保存用戶密碼的41位hash值,但配置文件中 old_passwords=1的話,password()函數只能返回16位hash值。
    解決方法:
        SET old_passwords = 0;
       UPDATE mysql.user SET PASSWORD = PASSWORD( 'phpddt.com' ) WHERE User = 'root' LIMIT 1 ;
        SELECT LENGTH( PASSWORD ) FROM mysql.user WHERE User = 'root';
        FLUSH PRIVILEGES ;
2、重新安裝testlink,還是沒有解決;

3、安裝成功後,刪除掉testlink下的install目錄。

5、登錄時出錯:Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in D:\testlink\xampp\htdocs\testlink\config.inc.php on line 911
解決辦法
文件:C:\Program Files\xampp\htdocs\testlink\config.inc.php  和 login.php  index.php  (相關的php文件均要修改)
文件頭加入下行
date_default_timezone_set("PRC");

6、重點來了,之前看了網上的漢化方法把config.inc.php中的$tlCfg->default_language = 'en_GB';修改爲了“zh_CN”,取消修改,問題奇蹟般地好了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章