Re: Atualização versão 3.1.6 para 3.1.8
Enviado: 31 Mar 2016, 08:12
Sindo do ptblogs (gratuito) e indo para hostgator (pago)
Suporte com ética e seriedade
https://suportephpbb.com.br/
Código: Selecionar todos
General Error
SQL ERROR [ mysqli ]
Can't connect to MySQL server on 'sql302.byetcluster.com' (110) [2003]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Código: Selecionar todos
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = 'localhost';
Código: Selecionar todos
<?php
// phpBB 3.1.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = 'localhost';
$dbport = '';
$dbname = 'megah_phpbb';
$dbuser = '***';
$dbpasswd = '****';
$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);
Código: Selecionar todos
General Error
SQL ERROR [ mysqli ]
Can't connect to MySQL server on 'sql302.byetcluster.com' (110) [2003]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Código: Selecionar todos
agora o detalhe é que eu tive que mudar o endereço do site antigo para o meu atual do localhost, que é meu IP, ja que o recurso do DNS não se enquadra na configuração do servidor apache
eu tive que alterar um valor na tabela php_config do banco de dados, o "cookie_domain"
para mudar o endereço do site onli para apontar o endereço do localhost
Código: Selecionar todos
<?php
/**
*
* @package phpBB3
* @copyright (c) 2009 3Di - delete_cache.php v. 0001 - 2009-2-28
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// Purges the tmp cache files based on time-frame
function delete_cache()
{
global $phpbb_root_path;
$phpbb_cache = ($phpbb_root_path . 'cache');
// time in seconds the files are allowed to last into the cache dir
$seconds_old = 1;
// directory check-in first
if (is_dir("$phpbb_cache"))
{
$handle=opendir($phpbb_cache);
while (false!==($tmp_phpbb_cache_files = readdir($handle)))
{
// we delete everything but index.htm, .htaccess and sub-folders
if ($tmp_phpbb_cache_files != "." && $tmp_phpbb_cache_files != ".." && $tmp_phpbb_cache_files != "index.htm" && $tmp_phpbb_cache_files != ".htaccess")
{
$diff = (time() - filectime("$phpbb_cache/$tmp_phpbb_cache_files"));
if ($diff > $seconds_old)
{
unlink("$phpbb_cache/$tmp_phpbb_cache_files");
}
}
}
closedir($handle);
}
// that should never happen..
else
{
trigger_error('CACHE_DIR_ERROR');
}
}
delete_cache();
?>
Código: Selecionar todos
General Error
SQL ERROR [ mysqli ]
Can't connect to MySQL server on 'sql302.byetcluster.com' (110) [2003]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
Código: Selecionar todos
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './'; // Relative to your phpBB installation path
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$cache->purge();
$auth->acl_clear_prefetch();
die( 'done' );