1 頁 (共 1 頁)

AutoMOD安裝外掛碰到檔案權限的問題

發表於 : 2009-01-31 17:54
krab
不曉得是不是發表在這個版面,如果版面不恰當的話,請心靈捕手老師處置囉 :-D

*******************************************************************************************************************************

今天安裝了automod之後,嘗試安裝外掛,碰到了檔案權限的問題,我是使用automod的ftp方式來安裝外掛的,連結測試ftp沒有問題,可是安裝過程中,只要碰到檔案權限就發生錯誤如下例:
圖檔

只要是automod新增的目錄都沒有寫入的權限,主要是_edited
圖檔

必須要進入shell去把權限改成0777

但是下一批檔案權限還是會被改掉,只好一次一次進去把權限改成0777

此外,雖然automod設定的時候,已經預設檔案權限644,但是所有新增到論壇目錄下的新檔案幾乎都是500,也必須自己動手改檔案權限。

雖然因為檔案權限的困擾,還要費一番手腳,不過,基本上automod方便外掛的管理,值得讚揚,期待檔案權限的處理將來能更完善。

備註:
phpbb 3.0.4
automod 1.0.2
使用automod安裝的外掛:
ACP_Announcement_Centre 1.0.3a以及1.1.4
Activity_stats_mod 1.0.0

Re: AutoMOD安裝外掛碰到檔案權限的問題

發表於 : 2009-02-01 08:46
心靈捕手
您是對的! 這個版面就是提供 "AutoMOD 安裝或使用" 上的問題討論.

建議您:
參考新出爐的修正方法, 再試試.

開啟
includes/editor.php

找到

代碼: 選擇全部

      $has_chmod = @function_exists('ftp_chmod');

      // Use the permissions settings specified in the AutoMOD configuration
      // The $has_chmod variable codes around an incompatibility with phpBB's transfer class
      $this->transfer->dir_perms = ($has_chmod) ? hexec($config['am_dir_perms']) : $config['am_dir_perms'];
      $this->transfer->file_perms = ($has_chmod) ? hexdec($config['am_file_perms']) : $config['am_file_perms'];
取代成

代碼: 選擇全部

      
      // Use the permissions settings specified in the AutoMOD configuration
      $this->transfer->dir_perms = octdec($config['am_dir_perms']);
      $this->transfer->file_perms = octdec($config['am_file_perms']);
參考連結:
http://www.phpbb.com/community/viewtopi ... 5#p8575645

Re: AutoMOD安裝外掛碰到檔案權限的問題

發表於 : 2009-02-01 09:06
krab
謝謝指引方向,修改後繼續會測試其餘的外掛並回報。 :-D

Re: AutoMOD安裝外掛碰到檔案權限的問題

發表於 : 2009-03-30 15:41
~Babbit~
大大們好
小弟在安裝的時候
也碰到相同的問題
但是我無論是修改FTP的檔案權限
還是根據心靈捕手大大的方式改
都無效耶??

Re: AutoMOD安裝外掛碰到檔案權限的問題

發表於 : 2009-03-30 15:48
小竹子
請按照公告格式提供您的安裝環境資料以利判讀,謝謝^^

~Babbit~ 寫:大大們好
小弟在安裝的時候
也碰到相同的問題
但是我無論是修改FTP的檔案權限
還是根據心靈捕手大大的方式改
都無效耶??

Re: AutoMOD安裝外掛碰到檔案權限的問題

發表於 : 2009-06-21 20:37
猴子
第一次用AutoMOD,一直出現『連線失敗,無法變更資料夾』讓人很挫折』

我也碰應該是相同的問題,可以幫忙排除問題根源嗎?感謝

●主機作業系統:Linux
●上網方式:ADSL
●安裝的程式:Apache 2.2.11 (Unix) + php 5.2.9 + MySql 5.0.81
●phpBB 版本:phpBB 3.0.5
●domain (網域名稱) : spiritmonger.com
●phpBB 連結網址: http://www.spiritmonger.com/bbs/

AutoMOD安裝論壇上提供的最新版本:automod_1.0.0-rc1

安裝過程順利,並且上傳外掛至store/mods中

但是當安裝時,卻出現:連線失敗。無法變更資料夾。

我確定FTP帳號密碼都打對,我還特地因為錯誤,再建立一個ftp account(試過FileZilla Client可以連入),但是還是呈現一樣的錯誤...


怎麼會這樣呢?

主機管理是用一般通用的cPanel,我常是用另一空間(也是cPanel),發生同樣的問題... :-(
ready to connect ftp
ready to connect ftp
error message
error message