2014-01-19 113 views
0

我想在我的Ubuntu機器上本地安裝一個活的wordpress網站。除了我認爲建立在YII框架上的部分網站之外,一切工作都正常。yii.php:未能打開流:沒有這樣的文件或目錄

當我將瀏覽器指向http://localhost.000-wordpress.co/app我得到了我的Apache2錯誤日誌下面的錯誤:

[Sat Jan 18 23:35:55 2014] [error] [client 127.0.0.1] PHP Warning: require_once(/home/ross/public_html/000-wordpress/public/app/../vendors/yii/framework/yii.php): failed to open stream: No such file or directory in /home/ross/public_html/000-wordpress/public/app/index.php on line 12, referer: http://localhost.000-wordpress/ 

[Sat Jan 18 23:35:55 2014] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required '/home/ross/public_html/000-wordpress/public/app/../vendors/yii/framework/yii.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ross/public_html/000-wordpress/public/app/index.php on line 12, referer: http://localhost.000-wordpress/ 

任何想法,我應該做的,我FTP'd整個網站從下它的在線服務器。

我沒有YII的經驗,我只是在本地安裝本地設備進行一些設計更改,然後再推送到現場。

+0

你應該打開你的'/ home/ross/public_html/000-wordpress/public/app/index.php'並修改你的設置。看你的yii的安裝位置 – hummingBird

+1

你可能需要在你的服務器上安裝yii。 http://www.yiiframework.com/doc/guide/1.1/en/quickstart.installation – BlackHatSamurai

回答

0

下載Yii框架並將其放置在您的計算機上。 鏈接:http://www.yiiframework.com/

然後確保index.php中的位置(/home/ross/public_html/000-wordpress/public/app/index.php)指向正確的位置。這應該是您剛放置下載框架的位置。確保它指向框架文件夾中的yii.php文件。

+0

謝謝jagsler,這有助於我得到另一個錯誤'[錯誤] [客戶端127.0.0.1]文件不存在:/ home /ross/public_html/000-engaging.co/public/app/dashboard,referer:http:// localhost.000-engaging.co /'我知道我應該在這裏做什麼? – Holly

+0

看起來你試圖使用一個顯然不存在的文件,對這個文件的調用是從哪裏來的?並且你可以驗證該文件(不)存在嗎? – jagsler

相關問題