2013-06-29 207 views
0

我是新來fuelPHP,我開發了一個簡單的應用程序,當我上傳的文件到我的Web服務器我得到了這些錯誤:如何部署fuelphp網站服務器

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home1/tdfdf/public_html/site/site/public/index.php on line 22 

Fatal error: require() [function.require]: Failed opening required '/bootstrap.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home1/tdfdf/public_html/site/site/public/index.php on line 44 

我可能錯過了一些配置,在這裏。我也想從URL中刪除這個「/ public」

任何人都可以幫忙嗎?

回答

0

我找到了解決方案。沒有爲老版本的PHP定義DIR。我將我的服務器設置更改爲在PHP 5.3上運行,它的工作方式非常神奇。

謝謝。