PHPMYADMIN Warning: require_once(./libraries/common.lib.php)錯誤解決辦法
有的時候安裝好 PHPmyAdmin後,在IE裡訪問時會出現下面的這種情況:
Warning: require_once(./libraries/common.lib.php): failed to open stream: No such file or directory in ***\index.php on line 40
Fatal error: main(): Failed opening required './libraries/common.lib.php' (include_path='.;c:\php5\pear') in
***\index.php on line 40
Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in E:\www\index.php on line 34
Fatal error: require_once() [function.require]: Failed opening required './libraries/common.inc.php' (include_path='.;C:\php5\pear') in E:\www\index.php on line 34
出現這種問題的原因有下面幾種:
1、你的PHPmyAdmin目錄放到了磁盤的根目錄下
2、 你的PHPmyAdmin目錄及上層目錄的權限設置問題
解決方法:
·將PHPmyAdmin的目錄不要放在磁盤的根目錄下,如放在D:\SiteManage\phpmyadmin
·將PHPmyAdmin的目錄及上層目錄,設置權限如下:
Users 讀取和運行
IUSR_…… 讀 取和運行
另外的解決方法:
-----------------
遇到個奇怪的問題 。在安裝完phpmyadmin後報如下錯誤:
Warning: require_once(./libraries/common.lib.php) [function.require-once]: failed to open stream: No such
file or directory in X:\Xxxxx\phpmyadmin\index.php on line 36
Fatal error: require_once() [function.require]: Failed opening required ‘./libraries/common.lib.php’
(include_path=’.;C:\php5\pear’) in X:\Xxxxx\phpmyadmin\index.php on line 36