2009-09-09 33 views
0

所以,我從我的老闆那裏得到了在我們新安裝的openbsd上運行的PHP5上安裝opendocman的任務。 當我嘗試在我的ubuntu筆記本電腦上安裝opendocman(運行9.04)時,它運行平穩。但是,當我嘗試在服務器上安裝的,我有這些錯誤:PHP5 include()問題

Warning: include(templates_c/%%0E^0E4^0E407559%%footer.tpl.php) [function.include]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/myphp/opendocman/includes/smarty/Smarty.class.php on line 1258 

Warning: include() [function.include]: Failed opening 'templates_c/%%0E^0E4^0E407559%%footer.tpl.php' for inclusion (include_path='.:/usr/local/share/pear') in /usr/local/www/apache22/data/myphp/opendocman/includes/smarty/Smarty.class.php on line 1258 

我的思想,這是因爲在php.ini中的一些錯誤配置生成的,但我無法找到特定的設置。關心一些幫助或指導?我google了一下,但沒有結果(也許錯關鍵字:()。

謝謝。

回答

4

您必須使用一個模板引擎調用Smarty。templates_c就是Smarty的編譯* .tpl文件到PHP。檢查Web服務器有權限寫入此目錄。對於一個Web服務器的正常的設置是,它不能寫任何東西,但它需要寫入templates_c目錄。

我建議你仔細閱讀Smarty Manual,尤其是Basic Installation

我只是看了一下。Opendocm實際上使用Smarty作爲模板引擎,所以我相當確定這是一個權限問題。

或者,你可能想刪除templates_c目錄的內容來強制刷新(即重新編譯原始模板)。

+0

哈哈,謝謝。我從來沒有使用聰明,因此,我雖然是在PHP的一邊miss配置。只需在其上添加'x'權限即可解決問題。 – ariefbayu 2009-09-09 07:55:15

1

對我來說,它看起來像opendocman配置問題。