Update -database.log:
Code:
Warning: require_once(): open_basedir restriction in effect. File(/var/www/ispcp/gui/include/ispcp-lib.php) is not within the allowed path(s): (/var/www/$
Warning: require_once(/var/www/ispcp/gui/include/ispcp-lib.php): failed to open stream: Operation not permitted in /var/www/ispcp/engine/setup/updDB.php $
Fatal error: require_once(): Failed opening required '/var/www/ispcp/gui/include/ispcp-lib.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var$
ok, fixed with open_basedir restrictions. Now only one log entry:
Connection failed: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
Code:
sub update_database_schema {
push_el(\@main::el, 'update_database_schema()', 'Starting...');
my ($rs, $cmd, $php, $rdata) = (undef, undef, undef, undef);
# File preparation - Begin
($rs, $rdata) = get_file("$main::cfg{'ROOT_DIR'}/engine/setup/updDB.php");
return $rs if($rs != 0);
if($rdata =~ s/{GUI_ROOT_DIR}/$main::cfg{'GUI_ROOT_DIR'}/) {
# Saving the modified file
$rs = save_file("$main::cfg{'ROOT_DIR'}/engine/setup/updDB.php", $rdata);
return $rs if($rs != 0);
}
# File preparation - End
[b] $main::db_pwd =~ s/([\'\"])/\\$1/g;
[/b]
$cmd = "$main::cfg{'CMD_PHP'} $main::cfg{'ROOT_DIR'}/engine/setup/updDB.php &>/tmp/ispcp-update-database.log";
$rs = sys_command_rs($cmd);
return $rs if($rs !=0);
push_el(\@main::el, 'update_database_schema()', 'Ending...');
0;
}
what is this?