Demo

討論

保持飢餓,保持愚笨 (Stay hungry, stay foolish)。 史蒂夫·賈伯斯

公告

本網站已取消討論區的討論方式,如果您有問題請至LINE群行動條碼圖片網址,或Facebook社團

安裝joomla出現Session save path Unwriteable主機商lunarforums回文協助

  • foxking
  • foxking 的個人頭像 Topic Author
  • Offline
  • 新手上路
  • 新手上路
More
2008-01-04 17:22 #9011 來自 foxking
foxking created the topic: 安裝joomla出現Session save path Unwriteable主機商lunarforums回文協助
英文太差了這是lunarforums主機商給我的回文,只看懂一半不太了解全文請求協助.
以下為回覆原文

Hello,

You may edit the settings for session.save_path via your php.ini file.

Because we use suPHP to parse php files, you have the option of using a custom php.ini file.

Your account can have multiple php.ini files on your account in different folders so you can customize the php processing in different folders should your script require it. A php.ini file will not inherit down into subfolders, however, you can create a .htaccess file in the same folder as the php.ini file and place the following code into it:

suPHP_ConfigPath /home/username/public_html/

where "username" is your cPanel username. This will cause the php.ini file to affect all subfolders, unless a php.ini file is in a subfolder, at which point the php.ini in the subfolder takes precedence.

In php.ini, you will need to use the actual php.ini syntax instead of the php_value or php_flag syntax you would normally use in .htaccess (Which should not be used at all):

setting_name = setting_value

So, this means if you move the settings from .htaccess to php.ini, you must convert the format. Let's say you have the following line in your .htaccess file:

php_value register_globals 0

the corresponding php.ini format is as follows:

register_globals = Off

Notice how the value 0 becomes Off and 1 becomes On. Now if your php_value has quotes like the following, for example:

php_value include_path ".:/home/user/lib"

The corresponding php.ini format is:

include_path = ".:/home/user/lib"

and so on. You should only use the settings you need to change in your php.ini.

For the PHP settings you do not have in your php.ini file, PHP will use our default configurations.

--
Feel free to contact us if you have any questions or need additional assistance.

Best regards,
Flora Lui
support@lunarpages.com

Phone: 1-714-521-8150
Fax: 1-714-521-8195
24 hour Network Status Line: 1-562-697-8106
Website - http://lunarpages.com
Online Community - http://lunarforums.com
Online Tutorials - http://lunarpages.com/tutorials

E-Trader World 交易世界
http://www.e-traderworld.com.tw/

Please 登入 to join the conversation.

More
2008-01-05 00:03 #9017 來自 Eddy
Eddy replied the topic: 安裝joomla出現Session save path Unwriteable主機商lunarforums回文協助
叫你改php.ini裡的設定。不過suPHP這個東西倒是沒用過:

suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

應該要找個專業的人士(主機商之類的工程師來問看看)
不然用會說中文的主機商吧…貴了點還是值得一點的。

Eddy

知之者不如好之者,好之者不如樂之者

Please 登入 to join the conversation.

More
2008-01-05 09:11 #9020 來自 kochin
kochin replied the topic: 安裝joomla出現Session save path Unwriteable主機商lunarforums回文協助
1. 在你伺服器的目錄(例如:/home/<username>/public_html/,<username>是你在cPanel的用戶名稱)下建立一個.htaccess檔案,裡面放下面這行指令:

suPHP_ConfigPath /home/<username>/public_html/

這告訴PHP到哪裡找php.ini。

2. 同樣在你伺服器的目錄(/home/<username>/public_html/)下建立一個php.ini檔案,裡面放你要設定的PHP設定值。
例如:要設定session save path,你可以放

session.save_path = "/home/<username>/public_html/session"

(你必須在/home/<username>/public_html/下建立一個目錄叫session。)
例如:要將register globals關閉,你可以放

register_globals = Off


別忘了以上的<username>都必須用你的用戶名稱來取代。

Please 登入 to join the conversation.

  • foxking
  • foxking 的個人頭像 Topic Author
  • Offline
  • 新手上路
  • 新手上路
More
2008-01-06 01:13 #9025 來自 foxking
foxking replied the topic: 安裝joomla出現Session save path Unwriteable主機商lunarforums回文協助
感謝回文,最後解決還在是joomla台灣官網結束.
希望網站管理員能將此文標記留給後進初學者,減少類似像我這種案例.

E-Trader World 交易世界
http://www.e-traderworld.com.tw/

Please 登入 to join the conversation.