歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 11, 2024, 07:18:10 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  支援 / 安裝與設定 / 剛剛安裝好了..但出現錯誤... 於: 四月 17, 2005, 09:41:21 上午
引用自: markwu
你能把 整個 blog 的目錄的 owner 改成 504 試試看嗎?

Mark


是不是CHMOD blog 為504?

這樣就不能進入..
2  支援 / 安裝與設定 / 剛剛安裝好了..但出現錯誤... 於: 四月 16, 2005, 08:10:18 下午
引用自: lss
引用
.............SAFE MODE Restriction in effect. ..........

如果是自己的主機,把PHP的安全模式關掉。
找到 /etc/php.ini 修改為 safe_mode=0 或將這行註解掉,然後重新啟動 apache

我試過了。。safe_mode=Off 一樣出現這個問題....
3  支援 / 安裝與設定 / 剛剛安裝好了..但出現錯誤... 於: 四月 16, 2005, 04:07:16 下午
引用自: chris
你的 /tmp 沒有設定 CHMOD 為 777
plog 不能夠寫入 /tmp 。


確定是777....

我估計是mkdir()函數不能使用...
4  支援 / 安裝與設定 / 剛剛安裝好了..但出現錯誤... 於: 四月 16, 2005, 03:09:13 下午
主機:AMD Athlon 2200+ XP
環境:RedHat Linux 7.3
plog 1.0

問題一: template_cache_enabled 已關閉....
進入 /index.php?blogId=1
會出現以下訊息

Exception message: fopen(): SAFE MODE Restriction in effect. The script whose uid is 504 is not allowed to access /home/virtual/site2/fst/var/www/html/blog/tmp/20498 owned by uid 48
Error code: 2
-- Backtrace --
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/core/core.write_file.php(30): fopen
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/core/core.write_compiled_resource.php(30): smarty_core_write_file
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1450): smarty_core_write_compiled_resource
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/virtual/site2/fst/var/www/html/blog/class/template/template.class.php(120): smarty.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/smartyview.class.php(190): template.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/blogview.class.php(212): smartyview.render
/home/virtual/site2/fst/var/www/html/blog/class/view/errorview.class.php(46): blogview.render
/home/virtual/site2/fst/var/www/html/blog/class/controller/controller.class.php(325): errorview.render
/home/virtual/site2/fst/var/www/html/blog/index.php(41): blogcontroller.process

Exception message: fopen(./tmp/20498/4260c5871533c): failed to open stream: Success
Error code: 2
-- Backtrace --
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/core/core.write_file.php(30): fopen
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/core/core.write_compiled_resource.php(30): smarty_core_write_file
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1450): smarty_core_write_compiled_resource
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/virtual/site2/fst/var/www/html/blog/class/template/template.class.php(120): smarty.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/smartyview.class.php(190): template.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/blogview.class.php(212): smartyview.render
/home/virtual/site2/fst/var/www/html/blog/class/view/errorview.class.php(46): blogview.render
/home/virtual/site2/fst/var/www/html/blog/class/controller/controller.class.php(325): errorview.render
/home/virtual/site2/fst/var/www/html/blog/index.php(41): blogcontroller.process

Exception message: Smarty error: problem writing temporary file './tmp/20498/4260c5871533c'
Error code: 512
-- Backtrace --
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1108): trigger_error
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/core/core.write_file.php(31): template.trigger_error
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/core/core.write_compiled_resource.php(30): smarty_core_write_file
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1450): smarty_core_write_compiled_resource
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1279): template._compile_resource
/home/virtual/site2/fst/var/www/html/blog/class/template/template.class.php(120): smarty.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/smartyview.class.php(190): template.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/blogview.class.php(212): smartyview.render
/home/virtual/site2/fst/var/www/html/blog/class/view/errorview.class.php(46): blogview.render
/home/virtual/site2/fst/var/www/html/blog/class/controller/controller.class.php(325): errorview.render
/home/virtual/site2/fst/var/www/html/blog/index.php(41): blogcontroller.process

Exception message: fetch(): Unable to access ./tmp/20498/%%-44^%%-44349963^error.template.php
Error code: 2
-- Backtrace --
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1281): fetch
/home/virtual/site2/fst/var/www/html/blog/class/template/template.class.php(120): smarty.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/smartyview.class.php(190): template.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/blogview.class.php(212): smartyview.render
/home/virtual/site2/fst/var/www/html/blog/class/view/errorview.class.php(46): blogview.render
/home/virtual/site2/fst/var/www/html/blog/class/controller/controller.class.php(325): errorview.render
/home/virtual/site2/fst/var/www/html/blog/index.php(41): blogcontroller.process

Exception message: fetch(./tmp/20498/%%-44^%%-44349963^error.template.php): failed to open stream: Success
Error code: 2
-- Backtrace --
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1281): fetch
/home/virtual/site2/fst/var/www/html/blog/class/template/template.class.php(120): smarty.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/smartyview.class.php(190): template.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/blogview.class.php(212): smartyview.render
/home/virtual/site2/fst/var/www/html/blog/class/view/errorview.class.php(46): blogview.render
/home/virtual/site2/fst/var/www/html/blog/class/controller/controller.class.php(325): errorview.render
/home/virtual/site2/fst/var/www/html/blog/index.php(41): blogcontroller.process

Exception message: fetch(): Failed opening './tmp/20498/%%-44^%%-44349963^error.template.php' for inclusion (include_path='.:/php/includes:/usr/share/php')
Error code: 2
-- Backtrace --
/home/virtual/site2/fst/var/www/html/blog/class/template/smarty/Smarty.class.php(1281): fetch
/home/virtual/site2/fst/var/www/html/blog/class/template/template.class.php(120): smarty.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/smartyview.class.php(190): template.fetch
/home/virtual/site2/fst/var/www/html/blog/class/view/blogview.class.php(212): smartyview.render
/home/virtual/site2/fst/var/www/html/blog/class/view/errorview.class.php(46): blogview.render
/home/virtual/site2/fst/var/www/html/blog/class/controller/controller.class.php(325): errorview.render
/home/virtual/site2/fst/var/www/html/blog/index.php(41): blogcontroller.process


問題二:如果將打開了template_cache_enabled 這個設定...
會出現mkdir(): safe mode 的message......

請問我應該怎樣設定我的主機?謝謝
頁: [1]