:::
Tad書籍區

照這安裝方式安裝後出現錯誤

discuss pic 2009-08-08 17:07:51
吳老師您好:
我按照您網站安裝方式安裝,安裝完成後出現下列訊息:
This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: unable to write to $compile_dir '/var/www/xoops_data/caches/smarty_compile'. Be sure $compile_dir is writable by the web server user.
Backtrace:
/class/smarty/Smarty.class.php (1092)
/class/smarty/internals/core.write_compiled_resource.php (23)
/class/smarty/Smarty.class.php (1430)
/class/smarty/Smarty.class.php (1260)
/class/theme_blocks.php (144)
/class/theme_blocks.php (97)
/class/theme_blocks.php (38)
/class/theme.php (250)
/class/theme.php (75)
/header.php (66)
/index.php (78)

我的作業系統是fedora 8
mysql 5.0.45-6.fc8
php 5.2.6-2.fc8
apache 2.2.9-1.fc8

我查過下列位置
xoops_data/caches/smarty_compile 有這個目錄
mainfile.php 中有 XOOPS_VAR_PATH /var/www/xoops_data 有設定路徑

請吳老師協助!
謝謝!

discuss pic 2009-08-09 03:44:37
請您查檢一下相關目錄的權限,像是cache..是必須可以寫入的。
澎湖人NO1自由軟體交流網
http://b2d.phc.edu.tw
discuss pic 2009-08-09 14:46:57
感謝 phcno1的提醒!
我搞定了!
謝謝!
這裡真是個好地方!
受益良多!


discuss pic 2019-04-11 14:00:23
對於 CentOS , 請再設定 安全增強式Linux(SELinux,Security-Enhanced Linux)
chcon -Rv --type=httpd_sys_rw_content_t /var/www/xoops_data/caches/smarty_compile

或是暫時關閉SELinux ,請用管理者身分鍵入  setenforce 0
:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FDiscussID%3D1488%26BoardID%3D3%26g2p%3D1

線上使用者

22人線上 (13人在瀏覽討論留言)

會員: 0

訪客: 22

更多…