LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: kidmany2001 於 九月 01, 2005, 11:26:10 上午



主題: 好累喔,在虛擬主機上最後兩個安裝錯誤難以克服(Error code: 2 跟 512)
作者: kidmany2001九月 01, 2005, 11:26:10 上午
大家安:

當我在我的虛擬主機上安裝1.0.1版克服了一些怪問題後(譬如Wizard.php有從0.3昇級到1.0的modify, 只新增21-24的Table...等錯誤)
建完database , 本以為可以邁向最後,
進入到admin.php 後  發現遇到兩個錯,讓我被打敗了... ><

因為我不熟悉PAER跟Smarty,所以想請問我該怎樣解決這兩個問題,
我在虛擬主機上好像項常常碰到類似路徑的問題,是因為我的虛擬空間沒裝PEAR嗎?我有另外的方法可以解決???

救救我吧  我已經裝很久了 , 虛擬主機商也不讓我用phpinfo()看它們php的infor,傷腦筋啊
下面是我的兩個錯

Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/./admin/default.template) is not within the allowed path(s):
(/home/httpd/vhosts/kelly.com/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(34): is_readable
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1670): smarty_core_get_include_path
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1558): template._parse_resource_name
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._fetch_resource_info
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/template.class.php(120): smarty.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/view/admin/admindefaultview.class.php(56): template.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/controller/controller.class.php(325): admindefaultview.render
/home/httpd/vhosts/kelly.com/httpdocs/plog/admin.php(39): admincontroller.process

Exception message: Smarty error: unable to read resource: "admin/default.template"
Error code: 512
-- Backtrace --
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1108): trigger_error
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1604): template.trigger_error
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._fetch_resource_info
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/template.class.php(120): smarty.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/view/admin/admindefaultview.class.php(56): template.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/controller/controller.class.php(325): admindefaultview.render
/home/httpd/vhosts/kelly.com/httpdocs/plog/admin.php(39): admincontroller.process


謝謝


主題: Re: 好累喔,在虛擬主機上最後兩個安裝錯誤難以克服(Error code: 2 跟 512)
作者: markwu九月 01, 2005, 10:26:30 下午
Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/./admin/default.template) is not within the allowed path(s):
(/home/httpd/vhosts/kelly.com/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(34): is_readable
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1670): smarty_core_get_include_path
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1558): template._parse_resource_name
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._fetch_resource_info
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/template.class.php(120): smarty.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/view/admin/admindefaultview.class.php(56): template.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/controller/controller.class.php(325): admindefaultview.render
/home/httpd/vhosts/kelly.com/httpdocs/plog/admin.php(39): admincontroller.process

在你的 php.ini 中應該有這一個設定,造成你無法安裝。

open_basedir = /home/httpd/vhosts/kelly.com/httpdocs:/tmp

代表的是你的 Web hosting 廠商把 open_basedir 的限制打開了!請他關掉吧!

引用

Exception message: Smarty error: unable to read resource: "admin/default.template"
Error code: 512
-- Backtrace --
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1108): trigger_error
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1604): template.trigger_error
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._fetch_resource_info
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/template/template.class.php(120): smarty.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/view/admin/admindefaultview.class.php(56): template.fetch
/home/httpd/vhosts/kelly.com/httpdocs/plog/class/controller/controller.class.php(325): admindefaultview.render
/home/httpd/vhosts/kelly.com/httpdocs/plog/admin.php(39): admincontroller.process


這個看起來像是 /plog/templates/admin 中少了 default.template 這個檔案。

Mark