Re: [請益] Smarty HTTP500錯誤

看板PHP作者 (.)時間15年前 (2010/10/15 20:21), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《kalecgos0616 (.)》之銘言: : 我的php程式只要遇到有smarty的程式就會產生HTTP500錯誤 : 純php程式則是正常 : 請問要怎麼解決呢? 這是error log [Fri Oct 15 20:21:22 2010] [error] [client 125.231.221.15] PHP Warning: include(/var/www/html/class/Smarty.class.php): failed to open stream: Permission denied in /var/www/ApparelShop/main.php on line 2, referer: http://125.231.230.111/ApparelShop/ [Fri Oct 15 20:21:22 2010] [error] [client 125.231.221.15] PHP Warning: include(): Failed opening '/var/www/html/class/Smarty.class.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ApparelShop/main.php on line 2, referer: http://125.231.230.111/ApparelShop/ [Fri Oct 15 20:21:22 2010] [error] [client 125.231.221.15] PHP Fatal error: Class 'Smarty' not found in /var/www/ApparelShop/main.php on line 4, referer: http://125.231.230.111/ApparelShop/ 可是我/var/www/html/class/Smarty.class.php這檔案已經設777了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.231.221.15

10/15 20:23, , 1F
可以了,我chmod 777 -R html下所有檔案就好了
10/15 20:23, 1F
文章代碼(AID): #1Ck4T2yq (PHP)
討論串 (同標題文章)
文章代碼(AID): #1Ck4T2yq (PHP)