- 論壇徽章:
- 0
|
LAMP環(huán)境搭建完畢,測試phpinfo.php成功。
但是加載網(wǎng)站內(nèi)容index.php時發(fā)生錯誤:
Fatal error: Function name must be a string in /usr/local/apache2/htdocs/INC/smarty/sysplugins/smarty_internal_templatebase.php on line 284
于是vim /usr/local/apache2/htdocs/INC/smarty/sysplugins/smarty_internal_templatebase.php
發(fā)現(xiàn)第284行是個注釋:
274 ^M
275 default:^M
276 header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $_template->c ached->timestamp) . ' GMT');^M
277 break;^M
278 }^M
279 echo $_output;^M
280 }^M
281 } else {^M
282 echo $_output;^M
283 }^M
284 // debug output^M
285 if ($this->smarty->debugging) {^M
286 Smarty_Internal_Debug::display_debug($this);^M
287 }^M
288 return;^M
289 } else {^M
290 // return fetched content^M
291 return $_output;^M
292 }^M
293 }^M
294 ^M
是代碼問題嗎?
另1:
發(fā)現(xiàn)/usr/local/apache2/htdocs/DAT/smarty/templates_c的權(quán)限為:
drwxrwxrwx 2 daemon daemon 4096 Jun 3 16:04 templates_c
其他權(quán)限均為apache,不知是否有什么問題?
另2:
只要打開index.php就會在這個目錄下生成一個文件:
-rw-r--r-- 1 daemon daemon 0 Jun 3 16:04 c01a78cb5cdaf1718cadac99c902d522d26177cd.file.index.htm.php
打開發(fā)現(xiàn)是空的。
懷疑是不是權(quán)限問題,導(dǎo)致這個文件無法被寫入或運行?
到底是代碼問題、權(quán)限問題,還是LAMP環(huán)境跟網(wǎng)站內(nèi)容原有架構(gòu)某些地方不符?
|
|