Current time: 06-02-2024, 08:17 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Update 1.0.2 > 1.0.3 issue, db update fail
Author Message
Ignas Galuskinas Offline
Junior Member
*

Posts: 22
Joined: Dec 2009
Reputation: 0
Post: #6
RE: Update 1.0.2 > 1.0.3 issue, db update fail
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?
(This post was last modified: 12-21-2009 02:58 AM by Ignas Galuskinas.)
12-21-2009 02:24 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Update 1.0.2 > 1.0.3 issue, db update fail - Ignas Galuskinas - 12-21-2009 02:24 AM
RE: Update 1.0.2 > 1.0.3 issue, db update fail - Nuxwin - 12-21-2009, 04:40 AM
RE: Update 1.0.2 > 1.0.3 issue, db update fail - Nuxwin - 12-21-2009, 05:04 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)