Posted: Wed Apr 12, 2006 2:43 pm Post subject: Does Backup DB work on Windows servers?
Hi
I am trying to get BackupDB working. I have version 1.11 installed on a Windows 2003 server. It's has PHP v4 and Perl installed. I have hopefully updated the config files correctly with the DB hostname, ID, password and path to the backups directory etc. but when I click on List Databases, nothing happens.
I am a novice when it comes to things like this and the config files have Unix paths in them. Does this program work on Windows?
Yes, it should work on your server. Getting it to interface with the command line for the backup/restore processes can be tricky with some setups, but your issue is with the PHP/MySQL interface itself.
Are you getting just a blank screen or an error message of some sort? Check your error logs to see if anything is being reported there.
I'll be out for a few hours, but I'll check back in this evening for an update.
I don't think this tells us anything other than the pages that are being called. There are no BackupDB log files so I assume you may be referring to a PHP log which I won't have access to directly.
Maybe you could check my files. I have created a db directory under the root:
---------------------------------------------------
lib.php:
// set the path to the backup directory; no trailing slash
$bu_dir = "/db/backups";
// TRUE or FALSE. if FALSE, then the PHP backup/restore files are
// used instead of the Perl (CGI) ones.
$use_cgi = TRUE;
// if $use_cgi is set to FALSE, ignore the $cgi_url variable and move to the next section.
// set the URL to mysql_backup.cgi and mysql_restore.cgi; no trailing slash.
$cgi_url = "http://www.thecandlenut.co.uk/db/cgi-bin";
// if $use_cgi is set to FALSE, then set the 3 variables below for your MySQL info.
$mysqldump = "/usr/local/mysql/bin/mysqldump";
$mysql = "/usr/local/mysql/bin/mysql";
$gzip = "/usr/bin/gzip";
$dbConnect = "/db/includes/dbConnect.inc"; // connect to MySQL
include($dbConnect);
---------------------------------------------
DBConnect.inc
<?php
$mysql_hostname = "mysql.active-ns.com";
$mysql_username = "removed for security reasons";
$mysql_password = "removed for security reasons";
$dbcnx = @mysql_connect($mysql_hostname, $mysql_username, $mysql_password); // connect to MySQL and silence default error messages (@...)
if (!$dbcnx) {
echo( "<P>Unable to connect to the database server at this time.</P>" );
exit();
}
Yeah, those access logs don't help much. Can you ask your host if they'll provide access to the server error logs? It's a good thing to have available for regular troubleshooting.
Quote:
$dbConnect = "/db/includes/dbConnect.inc";
Being on a Windows server, I'm thinking your path settings are incorrect. It would typically be something like "d:\usr\www\db\..." That would definitely cause the presumed error which you aren't seeing.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum