歡迎光臨, 訪客. 請先 登入註冊一個帳號.
十一月 23, 2024, 04:27:09 上午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1] 2
1  支援 / 虛擬主機討論精華區 / Re: [DreamHost]簡潔網址與自訂網址設定 於: 十月 06, 2005, 12:04:03 下午
10月6日更新一下

首先感謝catseyes 兄弟幫我試驗


爲了從根本上解決DreamHost的問題,花了一晚上時間檢查plog的源代碼,發現在/class/tempate/templateservice.class.php内有詳細的有關權限的説明

請搜索"07"
然後就可以看到如下的話:

/**
    * default permissions used to create temporary template folders. Seems like
    * Smarty creates them as 0771 but we have been adviced to create
    * them as 775 as per this discussion: http://bugs.lifetype.net/view.php?id=253
    */
   define( 'DEFAULT_TEMPLATE_TEMP_FOLDER_PERMISSIONS', 0775 );

我們可以看出來官方爲了解決問題已經把權限改成775了,但是並沒有解決寫入的問題,因爲dreamhost的php-cgi模式屬於高安全性的,運行腳本建立文件夾的時候是使用你的ftp帳號或者dhapache這樣的用戶來創建的,所以我們必須在權限中給other+w的權限,於是我們修改0775為0777,試驗后發現徹底解決了問題了
2  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 06, 2005, 02:30:09 上午
thanks cateyes  開懷大笑
3  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 04, 2005, 09:27:02 下午
再catseyes的幫助下,終于好用了。 謝謝大家長久以來的支持,雖然我們還沒有搞定自訂網址:( 不過現在已經很滿意了!! 謝謝大家,謝謝mark的友情提示。


豆豆在這裡給大家鞠躬咯~~
4  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 04, 2005, 08:07:29 下午
aaaaa,我修改了還是不好用
5  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 04, 2005, 09:18:01 上午
我这里也可以建立目录,但是建立的目录都是755的属性。

在/class/tmplate/smart/smart.php里面有控制文件夹和文件建立是权限的变量,我修改了,但是没有用,似乎必须得在index.php加上某些语句才可以。
希望老大们好好帮忙研究一下:)
6  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 03, 2005, 10:27:46 下午
难道不能像修改index.php那样修改一下么?
7  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 03, 2005, 08:14:37 下午
我知道應該如何修改了。不過還得需要大家幫忙。

剛才我測試了一下,錯誤的原因是因爲是因爲在使用搜索引擎友好模式的時候,儅用戶訪問某個用戶的文件沒有被緩存的時候,系統會在./tmp下建立這個用戶的文件夾,但是建立的文件夾的屬性對other沒有寫權限,所以造成錯誤。

我剛才把./tmp下的3目錄屬性改成other可以寫,這時候我訪問3號用戶文件的時候就正常了。

所以現在需要改寫php文件讓它建立目錄的時候也要建立777的屬性。不知道如何修改,請大家幫忙
8  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 03, 2005, 08:07:41 下午
我是用cuteftp上传得
那三个目录我都设置成777了 疑惑

还是不好用55555

怎么办啊?
9  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 02, 2005, 11:07:17 下午
之后我又把./tmp清空了,错误提示变成了

Exception message: fopen(tmp/sql_error.log): failed to open stream: Permission denied
Error code: 2
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(57): fopen
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(43): fileappender.openfp
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(142): fileappender.fileappender
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(114): loggermanager.createappenderinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(87): loggermanager._loadloggerconfig
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(177): loggermanager.loggermanager
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(192): loggermanager.getinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/template.class.php(61): loggermanager.getlogger
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(30): cachedtemplate.template
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/templateservice.class.php(173): cachedtemplate.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(70): templateservice.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(39): blogview.smartyview
/home/.carisma/jsarmy/jsarmy.com/blog/class/action/viewalbumaction.class.php(56): blogview.blogview
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(309): viewalbumaction.perform
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: Cannot open log file: tmp/sql_error.log
Error code: 0
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(59): throw
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(43): fileappender.openfp
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(142): fileappender.fileappender
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(114): loggermanager.createappenderinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(87): loggermanager._loadloggerconfig
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(177): loggermanager.loggermanager
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(192): loggermanager.getinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/template.class.php(61): loggermanager.getlogger
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(30): cachedtemplate.template
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/templateservice.class.php(173): cachedtemplate.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(70): templateservice.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(39): blogview.smartyview
/home/.carisma/jsarmy/jsarmy.com/blog/class/action/viewalbumaction.class.php(56): blogview.blogview
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(309): viewalbumaction.perform
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once


怎么办啊?
10  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 02, 2005, 09:42:03 下午
沒錯,我說的就是我的ftp用戶。:)
不過現在有了一點點地進展,我剛才把
./templates/admin/menus.xml的屬性改稱了755,然後似乎把這個問題就解決了
因爲出錯提示變了,變成了
Exception message: Smarty error: unable to write to $cache_dir '/home/.carisma/jsarmy/jsarmy.com/blog/tmp/3'. Be sure $cache_dir is writable by the web server user.
Error code: 256
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1108): trigger_error
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/core/core.write_cache_file.php(58): cachedtemplate.trigger_error
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1297): smarty_core_write_cache_file
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(48): smarty.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(207): cachedtemplate.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(224): smartyview.render
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(329): blogview.render
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: Smarty error: unable to write to $compile_dir '/home/.carisma/jsarmy/jsarmy.com/blog/tmp/3'. Be sure $compile_dir is writable by the web server user.
Error code: 256
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1108): trigger_error
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/core/core.write_compiled_resource.php(24): cachedtemplate.trigger_error
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1450): smarty_core_write_compiled_resource
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1279): cachedtemplate._compile_resource
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(48): smarty.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(207): cachedtemplate.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(224): smartyview.render
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(329): blogview.render
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: fetch(./tmp/3/%%112^%%112534381^albums.template.php): failed to open stream: No such file or directory
Error code: 2
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1281): fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(48): smarty.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(207): cachedtemplate.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(224): smartyview.render
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(329): blogview.render
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: fetch(./tmp/3/%%112^%%112534381^albums.template.php): failed to open stream: No such file or directory
Error code: 2
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1281): fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(48): smarty.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(207): cachedtemplate.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(224): smartyview.render
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(329): blogview.render
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: fetch(): Failed opening './tmp/3/%%112^%%112534381^albums.template.php' for inclusion (include_path='.:/usr/local/lib/php')
Error code: 2
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/smarty/Smarty.class.php(1281): fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(48): smarty.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(207): cachedtemplate.fetch
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(224): smartyview.render
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(329): blogview.render
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once
11  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 02, 2005, 09:12:24 下午
我最開始的用戶就是Admin, 最早建立的那個。一直都是用這個賬號上傳得。

但是在./tmp中有些生成的sesssion文件的owner是apache,好像是系統用戶吧。
12  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 02, 2005, 05:10:21 下午
繼續哭泣.....

menu.xml本身就是644, tmp/sql_error.log是644,我改成777后還是不好用。


13  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 02, 2005, 12:01:44 下午
再次瘋掉了,按照你上面寫的内容修改后,從summary.php進入用戶的plog正常,但是再進入資源中心,就出現下面的出錯提示。我要訪問的地址是http://www.jsarmy.com/blog/album/3/0


錯誤信息如下:

Exception message: fopen(./templates/admin/menus.xml): failed to open stream: Permission denied
Error code: 2
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/xml/parser/Parser.php(386): fopen
/home/.carisma/jsarmy/jsarmy.com/blog/class/xml/tree/Tree.php(238): menu.setinputfile
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/menu/menu.class.php(44): menu.gettreefromfile
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/menu/menu.class.php(59): menu.menu
/home/.carisma/jsarmy/jsarmy.com/blog/plugins/dropcase/plugindropcase.class.php(31): menu.getmenu
/home/.carisma/jsarmy/jsarmy.com/blog/plugins/dropcase/plugindropcase.class.php(23): plugindropcase.init
/home/.carisma/jsarmy/jsarmy.com/blog/class/plugin/pluginmanager.class.php(169): plugindropcase.plugindropcase
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(43): pluginmanager.loadplugins
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: fopen(tmp/sql_error.log): failed to open stream: Permission denied
Error code: 2
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(57): fopen
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(43): fileappender.openfp
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(142): fileappender.fileappender
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(114): loggermanager.createappenderinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(87): loggermanager._loadloggerconfig
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(177): loggermanager.loggermanager
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(192): loggermanager.getinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/template.class.php(61): loggermanager.getlogger
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(30): cachedtemplate.template
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/templateservice.class.php(173): cachedtemplate.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(70): templateservice.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(39): blogview.smartyview
/home/.carisma/jsarmy/jsarmy.com/blog/class/action/viewalbumaction.class.php(56): blogview.blogview
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(309): viewalbumaction.perform
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

Exception message: Cannot open log file: tmp/sql_error.log
Error code: 0
-- Backtrace --
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(59): throw
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/appender/fileappender.class.php(43): fileappender.openfp
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(142): fileappender.fileappender
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(114): loggermanager.createappenderinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(87): loggermanager._loadloggerconfig
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(177): loggermanager.loggermanager
/home/.carisma/jsarmy/jsarmy.com/blog/class/logger/loggermanager.class.php(192): loggermanager.getinstance
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/template.class.php(61): loggermanager.getlogger
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/cachedtemplate.class.php(30): cachedtemplate.template
/home/.carisma/jsarmy/jsarmy.com/blog/class/template/templateservice.class.php(173): cachedtemplate.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/smartyview.class.php(70): templateservice.cachedtemplate
/home/.carisma/jsarmy/jsarmy.com/blog/class/view/blogview.class.php(39): blogview.smartyview
/home/.carisma/jsarmy/jsarmy.com/blog/class/action/viewalbumaction.class.php(56): blogview.blogview
/home/.carisma/jsarmy/jsarmy.com/blog/class/controller/controller.class.php(309): viewalbumaction.perform
/home/.carisma/jsarmy/jsarmy.com/blog/index.php(46): blogcontroller.process
/home/.carisma/jsarmy/jsarmy.com/blog/album(21): include_once

其實我覺得還是我們msn交流一下能更快的找到問題所在,然後我再發帖說一下具體是如何解決的問題,我覺得這樣更好。不過聼你的吧。希望你繼續幫助我。
14  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 01, 2005, 11:10:05 下午
非常感谢您的帮助,不知道您有没有msn呢?这样我们更方便交流
15  支援 / 安裝與設定 / Re: 我要瘋掉了,DreamHost架設plog1.02的問題 於: 十月 01, 2005, 08:45:17 下午
我現在已經恢復最開始的設定了,等待一個朋友幫我弄一下

加我的msn: kknddandy@hotmail.com

我給你ftp密碼
頁: [1] 2