Zen Cart Logo
Forums / All Other Contributions/Addons / Backup MySQL Plug-in - install problem

Backup MySQL Plug-in - install problem

Locked

Views: 2,947

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
29 Apr 2009, 3:11 PM
#1
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Backup MySQL Plug-in - install problem

I just uploaded the Backup MySQL plug-in files to the proper folders on my server.

When, in the admin panel I go to Tools, there is no listing for Database Backup.

I checked the permissions in the different folders - no problem there.

Do I have to go into the Backup MYSQL files and change references to the admin folder (as I have renamed it for security purposes) ?

Ideas?

TIA for your help.

29 Apr 2009, 3:13 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Backup MySQL Plug-in - install problem

pixelwrangler:

When, in the admin panel I go to Tools, there is no listing for Database Backup.
That indicates that you missed uploading some files to the /admin/includes/boxes/extra_boxes folder, and maybe others too.

29 Apr 2009, 3:30 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Backup MySQL Plug-in - install problem

NOTE: when loading the files to your server, be sure you are loading it into your "renamed" /admin and not into the actual /admin directory ... :smile:

29 Apr 2009, 3:30 PM
#4
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

This was the first thing I checked. All of the files are on the server, in their proper folders. I had to first create a admin/boxes/extraboxes structure, as there was no "boxes" folder off of admin/

I just rechecked the server, and all of the files are present.

The downloaded ZIP archive of the Backup MYSQL plug in consists of:

admin readme.txt
includes/ backup_mysql.php
boxes languages
extra_boxes english
backup_mysqltools_dhtml.php backup_mysql.php

      extra_datafiles
              backup_mysql.php
29 Apr 2009, 3:49 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Backup MySQL Plug-in - install problem

pixelwrangler:

I had to first create a admin/boxes/extraboxes structure, as there was no "boxes" folder off of admin/
It should be /admin/includes/boxes/extra_boxes ... note the "/includes/" part in there.

All your menu options are prepared from the /admin/includes/boxes (and extra_boxes) folders. So, there should have been no need to create any new folders.

29 Apr 2009, 4:03 PM
#6
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

Sorry - my attempt to format my message didn't quite work out.

I checked and the paths are correct.

There's got to be a simple explanation, but for now, I don't see it.

Thanks for your help.

30 Apr 2009, 3:28 PM
#7
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

On a seperate note, I have installed the plugin and it worked, however since I moved the site to another domain the button for "backup" doesn't show up.

Also when I click delete and confirm deletion the db remains listed. Any help appreciated!

30 Apr 2009, 3:50 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Backup MySQL Plug-in - install problem

Check that the directory:
/admin/backups

has the right permissions ...

30 Apr 2009, 4:09 PM
#9
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

It's set to 777, is that the correct value?

30 Apr 2009, 4:14 PM
#10
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

My install, which doesn't work, did not create an admin/backups folder. Should I create one manually and CHMOD to 777?

30 Apr 2009, 5:20 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Backup MySQL Plug-in - install problem

/admin/backups/ should have been created when you installed Zen Cart and it should contain an index.php file ...

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
//  $Id: index.php 1111 2005-04-05 01:51:19Z drbyte $
//

// send to domain root
    session_write_close();
    header('Location: ' . 'http://' . $_SERVER['HTTP_HOST']);
    exit();
?>

The permissions on the /backups should be 777 ...

30 Apr 2009, 5:54 PM
#12
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

Thanks for the code. I added the folder and the index.php file, but there has been no change AFAIK.

30 Apr 2009, 6:42 PM
#13
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

Thanks - I've uploaded the files again however when I click on Tools -> Database Backup all I see is as follows (no backup button):

Database Backup Manager - MySQL
Title Date Size Action Backup

Directory: /usr/local/psa/home/vhosts/iamhappie.com/httpdocs/admin/backups/
RESTORE BUTTON

Any thing else I could try? DrByte? There are a few others who have had the same problem without a resolution. Thanks as ever!

30 Apr 2009, 10:12 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Backup MySQL Plug-in - install problem

An /admin/backups/ folder is required. If the folder is not found to be writable, the backup button will not show.

1 May 2009, 7:47 AM
#15
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

That's really strange as I have a admin/backup folder which is 777. Could it be anything else?

1 May 2009, 11:58 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Backup MySQL Plug-in - install problem

Could also happen if the server has the PHP configured to disallow the use of the exec() function. Normally a message would appear on the admin screen saying that's the case though.

1 May 2009, 1:49 PM
#17
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

I just uploaded the files again, and made sure that I have the admin/backups folder. Still no entry for this feature in the Tools menu.

Ideas?

1 May 2009, 3:24 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Backup MySQL Plug-in - install problem

Just to be clear ...

You have your /admin directory renamed, for example, /fred

and you are loading these files based on:
/fred

and not /admin so you see:
/fred/backups (permissions set to 777)
/fred/backup_mysql.php
/fred/includes/boxes/extra_boxes/backup_mysql_tools_dhtml.php
/fred/includes/extra_datafiles/backup_mysql.php
/fred/includes/languages/english/backup_mysql.php

correct?

3 May 2009, 3:48 PM
#19
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

Thanks DrByte - I asked my hosts and they confirmed that the exec() function is disallowed. Apparently I can use PHPCGI to allow this.

4 May 2009, 6:07 PM
#20
pixelwrangler avatar

pixelwrangler

New Zenner

Join Date:
Mar 2009
Posts:
59
Plugin Contributions:
0

Re: Backup MySQL Plug-in - install problem

Just to let you know and to thank you for your help: I successfully untangled my installation, fixed the corrupted folders, and I'm back in business! Got to love CSS for keeping the customization all within the custom template structures.

Backup now working properly.