歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 17, 2024, 11:22:40 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 29, 2005, 09:12:40 上午
引用自: lss
在威博達的 linux 虛擬主機規格的網頁上看到:
引用
2.嚴禁虛擬主機客戶安裝PLOG多用戶程式,欲裝PLOG請選擇專屬虛擬主機方案(即將推出)

看來,想找主機商技術支援也不可能了。即使能順利安裝,只怕用不了多久,就會被停用吧!
考慮一下,換個主機商。

謝謝lss的建議,
我就是被他們移到專屬虛擬主機的客戶,我想他們會設這個規定就是因為有我這個前車之鑑 害羞
其實這間主機商只是比較不喜歡我用beta版的,等1.0正式版的出來,他們倒是蠻支持我更新的,現在我已經移到專屬虛擬主機,也就是我一直說的半專屬主機,我被分配到128MB的記憶體可使用,他們告訴我這樣就綽綽有餘了,而我的plog也不會被停用的,因為現在的主機等於是由我自己在管理,跑什麼程式都無所謂,只要我沒用完自己的128MB記憶體,即使真的都用光我自己的份,也只是會導致我自己的網站速度變慢變不穩定而已


引用自: markwu
Hi ellenlee:

你有試過我最後的方式了嗎?可以試驗看看嗎?

另外,你可以聯絡你的虛擬主機廠商嗎?如果他們要把 pLog 包進服務中,有任何問題,我們會很樂意協助的。

Mark

這個方式我會等到升級到1.0正式版還有問題時再來試驗看看
到時候結果如何,我一定會再來向大家報告喔
另外我有一個額外的問題
究竟我要不要將mysql_pconnect 改成 mysql_connect呢?
據tomex_ou的說法,改成非保持連結會導致cpu耗用增加
但保持連結數又會讓我們的mysql資料庫的連結數暴增
究竟以我目前使用的專屬虛擬主機類型來說,我該怎麼設定呢?
2  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 26, 2005, 09:51:20 下午
引用自: lss
hi ellenlee:
請問你的主機商是那一家?請提供一下連結。
我想,雖然你可以改 httpd.conf 和 php.ini ,但是有一些設定值應該仍被主機商控制,是不能由虛擬主機覆寫的。

……難道………,改了設定值,必需重新啟動 apache ,……

先看看那家主機商提供什麼樣的環境吧!

我使用的是威博達http://www.webdsn.net/所提供的半專屬主機,他們上游的主機好像是在美國,我沒問過

我若改了apache組態設定值,那就一定得重新啟動它
可是我都還沒因為plog而改過httpd.conf 和 php.ini,所以應該不必重新啟動它吧
我租用的主機是有點類似專屬主機的那種,就是那種我可以自己裝設軟體在主機上的,還有幾乎所有設定管理等都要自己動手



引用自: markwu
sigh ....

完全不知你的主機怎麼設定的!我只能用很賤的方法:

你把上面那個檔案的

引用
$_ini_include_path = ini_get('include_path');


改為

引用
// $_ini_include_path = ini_get('include_path');
$_ini_include_path = ".";


我相信應該就可以了!但這是治標並非治本。

Mark

謝謝Mark與lss這兩天的幫忙
我已經有點累累的了,實在是佩服兩位的熱心與耐心
我打算等四月一日過後正式版出來再更新到1.0
到時候應該又有一段漫長的修改的路要走
謝謝兩位了 眨眼睛
3  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 26, 2005, 02:13:06 下午
hi markwu,我的php.ini裡沒有/usr/share/pear這些敘述

需要我整個php.ini寄給你看看嗎??
4  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 26, 2005, 11:50:19 上午
Array (
  • => . [1] => /usr/share/pear )
Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/plugins/compiler.cycle.php) is not within the allowed path(s): (/home/httpd/vhosts/我的帳號/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(37): is_readable
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.assemble_plugin_filepath.php(54): smarty_core_get_include_path
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1378): smarty_core_assemble_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(588): smarty_compiler._get_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(544): smarty_compiler._compile_compiler_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(298): smarty_compiler._compile_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1498): smarty_compiler._compile_file
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._compile_source
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1271): template._compile_resource
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/template.class.php(83): smarty.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(179): template.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/controller/controller.class.php(118): summaryview.render
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(190): controller.process
Array (
  • => . [1] => /usr/share/pear )
Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/plugins/block.cycle.php) is not within the allowed path(s): (/home/httpd/vhosts/我的帳號/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(37): is_readable
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.assemble_plugin_filepath.php(54): smarty_core_get_include_path
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1378): smarty_core_assemble_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(663): smarty_compiler._get_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(546): smarty_compiler._compile_block_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(298): smarty_compiler._compile_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1498): smarty_compiler._compile_file
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._compile_source
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1271): template._compile_resource
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/template.class.php(83): smarty.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(179): template.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/controller/controller.class.php(118): summaryview.render
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(190): controller.process


to mark, 以上是我在0.32版本的summary.php執行後的結果
我剛才又發現,會員新發表的文章會在summary的最新發表文章出現
但我自己的plog不行(是第一個建立的)
5  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 26, 2005, 10:55:28 上午
引用自: lss
open_basedir 的預設值應該是沒有限制,而且你的 php.ini 裡沒有設定,那應該是主機商在 httpd.conf 裡設定了。

我是還沒找到 httpd.conf 裡的設定和 php.ini 裡的設定衝突時,那個設定是優先的?由此看來,似乎 httpd.conf 的設定值優先了。

找主機商解決吧!

謝謝lss的回答
我租用的主機是半專屬主機,它可以讓我使用ssh自行更改php.ini以及 httpd.conf 等等apache組態檔
我之前看過httpd.conf,這檔裡面就完全沒有open_basedir這個設定喔
6  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 25, 2005, 11:21:29 下午
我的php.ini裡是顯示如下的
;open_basedir =

open_basedir應該也是關起來的
也就是說我的safe mode與open_basedir都是關起來的

我將0.32的plog整個移到現在的半專屬主機之後,summary裡的「最新發表的文章」就無法再更新
但整個plog其他功能都是正確的
如果我刪去tmp這資料夾裡所有暫存的資料,若執行到summary.php或admin.php時
第一次執行時它就會出現像Blowfish 所說的
Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/plugins/compiler.cycle.php) is not within the allowed path(s): (/home/httpd/vhosts/我的帳號/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(34): is_readable
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.assemble_plugin_filepath.php(54): smarty_core_get_include_path
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1378): smarty_core_assemble_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(588): smarty_compiler._get_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(544): smarty_compiler._compile_compiler_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(298): smarty_compiler._compile_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1498): smarty_compiler._compile_file
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._compile_source
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1271): template._compile_resource
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/template.class.php(83): smarty.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(179): template.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/controller/controller.class.php(118): summaryview.render
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(190): controller.process

Exception message: is_readable(): open_basedir restriction in effect. File(/usr/share/pear/plugins/block.cycle.php) is not within the allowed path(s): (/home/httpd/vhosts/我的帳號/httpdocs:/tmp)
Error code: 2
-- Backtrace --
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.get_include_path.php(34): is_readable
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/core/core.assemble_plugin_filepath.php(54): smarty_core_get_include_path
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1378): smarty_core_assemble_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(663): smarty_compiler._get_plugin_filepath
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(546): smarty_compiler._compile_block_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty_Compiler.class.php(298): smarty_compiler._compile_tag
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1498): smarty_compiler._compile_file
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1433): template._compile_source
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/smarty/Smarty.class.php(1271): template._compile_resource
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/template/template.class.php(83): smarty.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(179): template.fetch
/home/httpd/vhosts/我的帳號/httpdocs/plog/class/controller/controller.class.php(118): summaryview.render
/home/httpd/vhosts/我的帳號/httpdocs/plog/summary.php(190): controller.process

可是當我發表完一篇文章後,它自動在tmp裡又生出了檔案就好了,執行到summary.php不會再有問題,但在執行有些admin.php的功能時則會再出現上頭的那些錯誤訊息
而且那summary裡的「最新發表的文章」無法再更新

其實我原本是要升級到1.0的,而我也真的那麼做了三次
但沒有一次成功,至少我每次的問題都嘗試著去解決了
最後一次就是出現在這個tmp,以及使用者的模版執行錯誤(因為我預設都是用reic的,然後我也沒辦法請每個人都去改回grey)
呼~真的是要經歷好幾次失敗呢
於是我看到四月一日會有正式版出來,我就想說先恢復到0.32好了,等4/1之後再一次去解決會出現的問題
沒想到,我搬個主機,連0.32的summary裡的「最新發表的文章」都出了問題 嚎啕大哭
7  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 25, 2005, 05:43:57 下午
引用自: markwu
如果沒記錯,應該是把

程式碼:
safe_mode = On
open_basedir = "/home/xxxx.com.tw/"


加到 php.ini 就可以了。

Mark

cody說的意思好像是要把
php_admin_value safe_mode 1
php_admin_value open_base_dir /home/xxxx.com.tw/

這兩條關起來
那意思應該是要safe_mode = off 吧
而不是Mark你說的 On
可是其實我的本來就是 off 的狀態
因為用On的話會限制許多php函式無法執行
另一個open_basedir要關起來
怎麼關我就不會了
麻煩懂得的大大了
8  支援 / 安裝與設定 / 在虛擬主機安裝的問題(open_basedir restrict) 於: 三月 24, 2005, 07:45:37 下午
我昨晚試著從0.32升級到1.0
結果發生跟樓主相同的情形
可是我到我的php.ini去看, safe mode是off的
而用phpinfo()看到的php的系統資料顯示open_basedir
Local Value是顯示為/home/httpd/vhosts/我的帳號/httpdocs:/tmp
Master Value是顯示為no value

我的主機是半專屬主機,可以由我自己去改php.ini
請問我應該將phpini如何改呢??
9  測試 / LifeType 1.0 測試 / 分享Dabu網誌pLog 0.32升1.0 Beta 0318的經驗 於: 三月 23, 2005, 09:34:15 下午
給tomex_ou,
謝謝你的解說,讓我這個文章總數超過1000的使用者成功地轉換了版本
雖然轉換後plog還是無法使用,問題還有一堆,但我再慢慢問問題來解決
為了感謝你,我是想先跟你提一點關於db連結數的問題
我曾經在Pesty Rationnel問過保持連結與非保持連結的問題,他的回答讓我的資料庫連結數降低許多,也讓我的主機公司願意讓我擺plog程式
Pesty說的是:
class/database/adodb/drivers/adodb-mysql.inc.php 這個檔裡面有出現過兩次mysql_pconnect 改成 mysql_connect
改掉就可以降低許多資料庫連結數
此討論來自
http://pesty.yichi.org/plog/post/1/155

不好意思我不懂程式,如果有說錯還請見諒
10  支援 / 安裝與設定 / 我的blog 0.32升级到plog-devel-20050310 的过程 於: 三月 12, 2005, 04:03:04 下午
我照著樓主的步驟
卻停在執行wizard.php來update裡的第二個步驟
就停在那兒不動了
一直說著它在轉換我1114篇文章的頭500篇,一共要有3次的轉換等等文字的那個步驟
然後停了好久
不動

升級失敗 嚎啕大哭

請問有人可以告訴我這是什麼問題嗎
我的plog是多用戶的,用戶大概有200多位,文章應該就是轉換過程它所說的1114篇
頁: [1]