今天在服務器上安裝Wordpress3.0.4,發現無法安裝,首頁兩行英文:
Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in D:\wwwroot\1\index.php on line 17
Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.;C:\php5\pear') in D:\wwwroot\1\index.php on line 17
記得上次安裝wordpress的時候就出現過這個問題,好像是權限的問題,而且是父路徑權限的總是,因為服務器設置了嚴格的權限,好像是相對路徑./無法使用,解決方法如下:
把index.php里第17行
require(‘./wp-blog-header.php’);
修改成
require(‘wp-blog-header.php’);
改完以后馬上正常了
