PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 5th, 2005, 08:32 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 40
Unable to backup

Hi,

I tried to do a backup from the PhotoPost Database Backup but get the following errors...

Warning: filesize(): open_basedir restriction in effect. File(/pp_admingroups.sql) is not within the allowed path(s): (/home/lighter/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/lighter/public_html/gallery/adm-backup.php on line 76
Warning: pp_admingroups.sql is 0 bytes or did not get created.
Warning: filesize(): open_basedir restriction in effect. File(/pp_admlog.sql) is not within the allowed path(s): (/home/lighter/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/lighter/public_html/gallery/adm-backup.php on line 76
Warning: pp_admlog.sql is 0 bytes or did not get created.
lighterrr is offline   Reply With Quote
Old February 5th, 2005, 10:34 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
What is the backup path in the admin global options set to?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 5th, 2005, 10:41 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 40
The Directory for backups is empty, should i put something there?
lighterrr is offline   Reply With Quote
Old February 5th, 2005, 10:59 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Yes you need to put the server path to the backup directory and make sure its 777
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 5th, 2005, 11:05 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 40
Thanks, i manage to get pass that, but while doing the backup i got this instead...

Results:

Warning: pp_admingroups.sql is 0 bytes or did not get created.Warning: pp_admlog.sql is 0 bytes or did not get created.Warning: pp_categories.sql is 0 bytes or did not get created.Warning: pp_comments.sql is 0 bytes or did not get created.Warning: pp_ecards.sql is 0 bytes or did not get created.Warning: pp_exif.sql is 0 bytes or did not get created.Warning: pp_favorites.sql is 0 bytes or did not get created.Warning: pp_ipcache.sql is 0 bytes or did not get created.Warning: pp_iponline.sql is 0 bytes or did not get created.Warning: pp_laston.sql is 0 bytes or did not get created.Warning: pp_notify.sql is 0 bytes or did not get created.Warning: pp_photos.sql is 0 bytes or did not get created.Warning: pp_settings.sql is 0 bytes or did not get created.Warning: pp_sort.sql is 0 bytes or did not get created.Warning: pp_sortmemb.sql is 0 bytes or did not get created.Warning: pp_usergroups.sql is 0 bytes or did not get created.Warning: pp_users.sql is 0 bytes or did not get created.

You should double-check your .sql files to be sure the backup completed successfully.
lighterrr is offline   Reply With Quote
Old February 5th, 2005, 11:22 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Did you specify the path to mysqldump in the admin options as well and verify that the path is correct on the server?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 5th, 2005, 11:30 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 40
Yes i have verify with my host that the mysqldump is /usr/bin/mysqldump

For the server path i have /home/name/public_html/gallery/backup

Are those correct?
lighterrr is offline   Reply With Quote
Old February 6th, 2005, 06:41 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Only you would know if those are correct.

There is also another thread where I posted this bug fix for adm-backup.php

find this line

$dumpcmd = "$mysqldumppath --opt -h $host -u$mysql_user -p$mysql_password $database ";

replace with

$dumpcmd = "{$Gbobals['mysqldumppath']} --opt -h $host -u$mysql_user -p$mysql_password $database ";
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 28th, 2005, 02:33 PM   #9 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Hi,

I just upgraded from PP4.8.2 to 4.8.6. Everything worked fine. It is still in "closed" modus.

I tried now to backup this new upgrade. I get the same warnings as described above.

My backup directors is set to 777. The paths to the backup directory is also o.k. But I am not sure what you mean with "path to mysqldump". Should there be a file called "mysqldump"? If yes and I do not find it on my server, how to create one?

Thanks in advance
snoopy5 is offline   Reply With Quote
Old February 28th, 2005, 02:35 PM   #10 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by omegatron
Only you would know if those are correct.

There is also another thread where I posted this bug fix for adm-backup.php

find this line

$dumpcmd = "$mysqldumppath --opt -h $host -u$mysql_user -p$mysql_password $database ";

replace with

$dumpcmd = "{$Gbobals['mysqldumppath']} --opt -h $host -u$mysql_user -p$mysql_password $database ";
Forgot to mention, I made also already this change dscribed above in the adm-backup.php file
snoopy5 is offline   Reply With Quote
Old February 28th, 2005, 04:58 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Does the backup path exist and 777?

Are you sure of the path to mysqldump

Just an FYI mysql on external servers wont work with this if thats the case
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 1st, 2005, 02:02 AM   #12 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
mmmmhhh,

I am not sure whether I understand you correctly...

I have on one server a couple of photopost installations, although some share the same database). I now only upgraded one of them as a test-upgrade. The back up functionality worked fine before the upgrade. Only after the upgrade it causes these messages:
--------------
Warning: hassydePP_admingroups.sql is 0 bytes or did not get created.Warning: hassydePP_admlog.sql is 0 bytes or did not get created.Warning: hassydePP_categories.sql is 0 bytes or did not get created.Warning: hassydePP_comments.sql is 0 bytes or did not get created.Warning: hassydePP_ecards.sql is 0 bytes or did not get created.Warning: hassydePP_exif.sql is 0 bytes or did not get created.Warning: hassydePP_favorites.sql is 0 bytes or did not get created.Warning: hassydePP_ipcache.sql is 0 bytes or did not get created.Warning: hassydePP_iponline.sql is 0 bytes or did not get created.Warning: hassydePP_laston.sql is 0 bytes or did not get created.Warning: hassydePP_notify.sql is 0 bytes or did not get created.Warning: hassydePP_photos.sql is 0 bytes or did not get created.Warning: hassydePP_settings.sql is 0 bytes or did not get created.Warning: hassydePP_sort.sql is 0 bytes or did not get created.Warning: hassydePP_sortmemb.sql is 0 bytes or did not get created.Warning: hassydePP_usergroups.sql is 0 bytes or did not get created.Warning: hassydePP_users.sql is 0 bytes or did not get created.Warning: leicade_admingroups.sql is 0 bytes or did not get created.Warning: leicade_admlog.sql is 0 bytes or did not get created.Warning: leicade_categories.sql is 0 bytes or did not get created.Warning: leicade_comments.sql is 0 bytes or did not get created.Warning: leicade_ecards.sql is 0 bytes or did not get created.Warning: leicade_exif.sql is 0 bytes or did not get created.Warning: leicade_favorites.sql is 0 bytes or did not get created.Warning: leicade_ipcache.sql is 0 bytes or did not get created.Warning: leicade_iponline.sql is 0 bytes or did not get created.Warning: leicade_laston.sql is 0 bytes or did not get created.Warning: leicade_notify.sql is 0 bytes or did not get created.Warning: leicade_photos.sql is 0 bytes or did not get created.Warning: leicade_settings.sql is 0 bytes or did not get created.Warning: leicade_sort.sql is 0 bytes or did not get created.Warning: leicade_sortmemb.sql is 0 bytes or did not get created.Warning: leicade_usergroups.sql is 0 bytes or did not get created.Warning: leicade_users.sql is 0 bytes or did not get created.



---------------

Backup works fine with all other installations on the same server, which have not yet been upgraded.

In admin panel of the upgrade installation, I can see the right path to the "backup" folder. I also see sql files with the right datestamp in that folder after I did the back-up. This is why I find those messages strange.

In admin panel, I also can see the path to mysqldump "/usr/bin/mysqldump"

OH, maybe it has something to do with a non-upgraded version, which is using the same database, but different prefixes?

Is it safe to upgade versions that sare the same database but use different prefixes? Or does this destroy something in the not-yet upgraded version/database settings?

photo-uploads work by the way in the upgraded version...
snoopy5 is offline   Reply With Quote
Old March 1st, 2005, 02:05 AM   #13 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
FYI

... I just checked in the backup folder. The files have the right datestamps, but the file-size is always 0.
snoopy5 is offline   Reply With Quote
Old March 1st, 2005, 02:27 AM   #14 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
... more information:

I called my webhoster. It is a dedicated server. They say, the path would be : usr/lib/mysqldump

I changed that in the admin/options, but the result is the same

My webhoster sais, I have no access to this mysqldump and can neither see it on my server. But it would work correctly.
snoopy5 is offline   Reply With Quote
Old March 1st, 2005, 08:37 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
Thats why it wont work then. Backup things like this only work when mysql is on the same server and you have access to use mysqldump

Of all the installations I have done I would say only 50% of users can use the backup utility
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 1st, 2005, 09:13 AM   #16 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by omegatron
Thats why it wont work then. Backup things like this only work when mysql is on the same server and you have access to use mysqldump

Of all the installations I have done I would say only 50% of users can use the backup utility
But why it does work with my other photopost installations on the same server?

Therefore the problem must be somewhere else.

I saw in the 4.8.5 and 4.8.6 announcemets, that you changed the upgrade script. Since I did an upgrade from 4.82 directly to 4.8.6 with the 4.8.6 upgrade script, could that have caused the problem?

Is the old 4.8.5 file anywhere for download to test this?
snoopy5 is offline   Reply With Quote
Old March 1st, 2005, 09:34 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
The change I made to 4.8.6 is well documented. I beleive you stated you made this change to the adm-backup file.

If your global option mysqldump command is entered right and the file is indeed altered accordingly it should work fine.

You would need to post your command when backing up here. I know you posted the 0 table error here but where is the line that shows the mysqldump command? This is what I would have to see to see whats going on.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; March 1st, 2005 at 09:36 AM.
Chuck S is offline   Reply With Quote
Old March 1st, 2005, 09:40 AM   #18 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
Quote:
Originally Posted by omegatron
The change I made to 4.8.6 is well documented. I beleive you stated you made this change to the adm-backup file.

If your global option mysqldump command is entered right and the file is indeed altered accordingly it should work fine.
no, I did not mean the īcode change in the adm-backup file. I mean the original upgrade script of PP4.85 which is in the original zip file of 4.8.5

In the announcement of version 4.8.6 it was mentioned, that you replaced various upgrade scripts with only one:

"There is a new upgrade.php script which can be used for all future upgrades; however, the upgrade from 4.85 to 4.86 does not require any database changes."

PhotoPost 4.86 Update posted

So if I could download the original 4.8.5 zip file, I could try to upgrade first to 4.8.5 to see whether the problem exists already there.

Again, all my other installations on the same server do not have this backup problem. But they are all version 4.8.2.
snoopy5 is offline   Reply With Quote
Old March 1st, 2005, 09:45 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,945
This should be a working adm-backup.php file if your running 4.8.6

The backup dir and backup command are in the database options

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old March 1st, 2005, 09:51 AM   #20 (permalink)
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,217
I investigated further. If looked at the text when doing successfully a backup on another (not yet upgraded) photopost 4.8.2 installation.

it shows me this in the first 2 lines:
------------
Command being used to execute dumps (specific tables are executed individually):

/usr/bin/mysqldump --opt -h localhost -uxxxxx -pyyyyy dbzzzz
-----------

after that the normal backup files.

If I compare this to the backup-screen of the upgraded installation, it is missing the path in line 2 in the upgraded version. See below:

------------
Command being used to execute dumps (specific tables are executed individually):

--opt -h localhost -uxxxx -pyyyy dbzzzz
-----------

So this could be a hint to the problem...
snoopy5 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to backup - then upgrade kimber89 General Discussion 2 September 21st, 2005 12:23 PM
How to backup a gallery? 0ptima How Do I? - vBulletin 3.0.X 3 May 21st, 2005 05:15 PM
gallery backup clearchannel How Do I? - vBulletin 3.0.X 1 May 1st, 2005 10:12 AM
Backup was lost.... how do I spiceman General Discussion 1 January 30th, 2005 08:25 AM


All times are GMT -5. The time now is 05:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0