P.Z. Low Cost CPanel Web Hosting  

Go Back   P.Z. Low Cost CPanel Web Hosting > Reseller Only Forums > CPanel Control Panel

CPanel Control Panel Cpanel, questions, observations....

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Fantastico Update of Mambo
Old
  (#1 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 68
Fantastico Update of Mambo - 06-23-2007, 10:48 AM

I tried the fantastico update of Mambo, and it created a mess. I'm following the instructions to restore:
Code:
1- delete all the files listed in /home/xxxxxxxx/public_html/fantastico_fileslist.txt
2- delete /home/xxxxxxxx/public_html/fantastico_fileslist.txt
3- Untar /home/xxxxxxxx/fantastico_backups/.backup.1182556126.tgz
4- Empty the database xxxxxxxx_mamb1
5- Import the file /home/xxxxxxxx/fantastico_backups//backup.sql into the database xxxxxxxx_mamb1
6- Move /home/xxxxxxxx/fantastico_backups/ to /home/xxxxxxxx/public_html
I'm stuck on #4. How do I empty a database? Through php MyAdmin?

Then, how would I restore from my backup?


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#2 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 77
06-23-2007, 05:36 PM

use phpmyadmin
select the database of choice

#4
drop all tables
note: do not delete the database, just drop the tables

#5
use the function under the import tab to "file to import"(that is the sql file you untared) If you run into time out problems ftp the sql file to your root and use ssh with the mysql monitor, or you may split the sql file into chunks by CREATE_TABLE sections.

standard disclaimer
YMMV
not responsible if your computer blows up, blah,blah.

HTH


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#3 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 68
06-24-2007, 10:21 AM

Quote:
Originally Posted by midwest View Post
use phpmyadmin
select the database of choice

#4
drop all tables
note: do not delete the database, just drop the tables

#5
use the function under the import tab to "file to import"(that is the sql file you untared) If you run into time out problems ftp the sql file to your root and use ssh with the mysql monitor, or you may split the sql file into chunks by CREATE_TABLE sections.
Are we sure about DROP instead of EMPTY?


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#4 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 68
06-24-2007, 11:17 AM

I went ahead and used EMPTY. If that doesn't work, I can go back and use DROP.

At the command line, how do I move the contents of:

/home/fantastico_backups/home/xxxxxxxx/public_html/

to:

/home/public_html/

I'll keep reading.

Edit 1:
mv fantastico_backups/home/xxxxxxxx/public_html/ public_html/
(this creates a new public_html within existing web public_html -- not a great idea.)

Edit 2:
mv fantastico_backups/home/xxxxxxxx/public_html/ public_html
(this also creates a new public_html within existing web public_html)


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#5 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 68
06-24-2007, 03:10 PM

Quote:
Originally Posted by edwurster View Post
At the command line, how do I move the contents of:

/home/fantastico_backups/home/xxxxxxxx/public_html/

to:

/home/public_html/
Seems that this is not possible from the ssh command line. Surprises me. This would be a very easy thing to do with Windows, whether gui or cmd.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#6 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 68
06-24-2007, 03:54 PM

Easy way to move files:

Login to CPANEL and run FILE MANAGER.

There is a MOVE command there, but you have to be a little careful. Once you find a way to select the files and/or subdirectories you want to move, look at the very bottom of the list of files. There is an innocuous edit box, with just a home icon. This is the destination you want to move your files to, and you'll have to carefully edit the path.

I was able to reverse the mumbo jumbo that resulted from the "upgrade", and if anyone needs help with similar, I can probably add a few tips.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
Reply With Quote
Old
  (#7 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 77
06-25-2007, 09:44 AM

/home/fantastico_backups/home/xxxxxxxx/public_html/

to:

/home/public_html/


cp -r /home/fantastico_backups/home/xxxxxxxx/public_html/* /home/public_html/

-r = recursive directories
man cp


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#8 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 77
06-25-2007, 09:49 AM

Quote:
Originally Posted by edwurster View Post
I went ahead and used EMPTY. If that doesn't work, I can go back and use DROP.

At the command line, how do I move the contents of:

/home/fantastico_backups/home/xxxxxxxx/public_html/

to:

/home/public_html/

I'll keep reading.

Edit 1:
mv fantastico_backups/home/xxxxxxxx/public_html/ public_html/
(this creates a new public_html within existing web public_html -- not a great idea.)

Edit 2:
mv fantastico_backups/home/xxxxxxxx/public_html/ public_html
(this also creates a new public_html within existing web public_html)
mv makes new
cp copies to existing


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#9 (permalink))
midwest
blink and it's over
midwest will become famous soon enough
 
midwest's Avatar
 
Status: Offline
Posts: 802
Join Date: Oct 2002
Location: Big Sky, MT
Rep Power: 77
06-25-2007, 09:54 AM

Quote:
Originally Posted by edwurster View Post
Are we sure about DROP instead of EMPTY?
look at the sql file, it should tell you all you need to know. but the sql file should make all the tables needed and populate them as the directions say to empty the database not empty the tables.


Ronnie Gauthier
www.instaguide.com

======================
for official page-zone support please visit
www.page-zone.com/support.shtml
   
Reply With Quote
Old
  (#10 (permalink))
Jim
of Page-Zone
Jim will become famous soon enoughJim will become famous soon enough
 
Status: Offline
Posts: 1,130
Join Date: Jun 2002
Location: Wauseon, Ohio
Rep Power: 97
My location
06-25-2007, 11:53 PM

If the site hasn't changed we have backups. One from yesterday which is after the problem, and one from the day before

Jun 22, 2007

Probably some older ones lying around as well. The monthly was on one of the other servers in Sac that was shut off, but there's most likely a bunch spanning the last year somewhere around here.

The email warning being sent out is something new added to Fantastico.


--
Thank You,
Jim Snape
Page-Zone
--
   
Reply With Quote
Old
  (#11 (permalink))
edwurster
green side up, please!
edwurster will become famous soon enoughedwurster will become famous soon enough
 
edwurster's Avatar
 
Status: Offline
Posts: 660
Join Date: May 2003
Location: Voorhees, NJ
Rep Power: 68
06-26-2007, 06:07 AM

Quote:
Originally Posted by Jim View Post
If the site hasn't changed we have backups. One from yesterday which is after the problem, and one from the day before.
Thanks Jim. I was able to restore things using the fantastico backup.


Ed Wurster - sacts92 (old root10)

...CPANEL Docs
......P-Z Server Status
  Send a message via AIM to edwurster  
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
Fantastico/Mambo Install edwurster CPanel Control Panel 3 01-24-2007 06:51 AM
Fantastico-Mambo-mySQL Error taosbat General Questions and Comments 4 09-07-2005 02:49 PM
Fantastico update brings new templates Jim Announcements 0 03-03-2005 10:20 AM
Fantastico Update & Super PZ Support! stratplan CPanel Control Panel 6 05-02-2004 07:12 PM
fantastico update daver General Questions and Comments 4 10-07-2003 09:30 AM


Live Help



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC6
vBulletin Skin developed by: vBStyles.com
Copyright © 2002 Page-Zone Web Hosting. All rights reserved.
Smilies provided by Crack's Smilies http://www.mysmilies.com