phpbb3 cookie setting

สมมุติว่า url ของ board คือ http://cc.sci.com
ต้องตั้งค่า Cookie กับ Server ในหน้า admin ดังรูป
phpbb3_cookie_setting

phpbb3_server_setting

หรือใช้คำสั่ง SQL ตรง ๆ ดังนี้

1
2
3
4
5
6
7
8
9
UPDATE `phpbb_config` SET `config_value` = 'cc.sci.com' WHERE config_name = 'cookie_domain';
UPDATE `phpbb_config` SET `config_value` = 'phpbb3_pxstg' WHERE config_name = 'cookie_name';
UPDATE `phpbb_config` SET `config_value` = '/' WHERE config_name = 'cookie_path';
UPDATE `phpbb_config` SET `config_value` = '0' WHERE config_name = 'cookie_secure';

UPDATE `phpbb_config` SET `config_value` = '/' WHERE config_name = 'script_path'; //ตั้งค่า virtualhost ไว้แล้วเลยไม่ต้องใส่ path อีก
UPDATE `phpbb_config` SET `config_value` = 'cc.sci.com' WHERE config_name = 'server_name';
UPDATE `phpbb_config` SET `config_value` = '80' WHERE config_name = 'server_port';
UPDATE `phpbb_config` SET `config_value` = 'http://' WHERE config_name = 'server_protocol';


Written by Komkid on August 10th, 2009 with no comments.
Read more articles on Admin.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:

You have to be identified to write a comment.