【发布时间】:2015-09-21 13:12:47
【问题描述】:
我一直在建立一个 phpbb 论坛,并且在许多页面重定向中遇到了错误。例如,当有人登录时,它会转到:your domain.com:34543/index.php?sid=6bcf305366b67a83a882c2323d9ee967.
当我删除 :34543 时,它加载得很好。如何防止这种情况发生?
【问题讨论】:
-
您的站点配置 (config.php) 是什么样的(取出数据库配置字符串等)?你能用那个更新你的帖子吗?
-
这一定是端口配置问题,你必须定义这是默认端口
-
@CDrosos 所以默认端口需要是34543?
-
@samlev 我现在无法访问它,因为我现在在另一个网络上,但一旦我可以访问它,我会告诉你。
-
<?php // phpBB 3.1.x auto-generated configuration file // Do not change anything in this file! $dbms = 'phpbb\\db\\driver\\mysql'; $dbhost = '127.0.0.1'; $dbport = '3306'; $dbname = 'phpbb_forum'; 'code' $dbuser = 'root'; $dbpasswd = 'I won't give the password'; $table_prefix = 'phpbb_'; $phpbb_adm_relative_path = 'adm/'; $acm_type = 'phpbb\\cache\\driver\\file'; @define('PHPBB_INSTALLED', true); // @define('PHPBB_DISPLAY_LOAD_TIME', true); // @define('DEBUG', true); // @define('DEBUG_CONTAINER', true);
标签: php mysql phpbb osx-server