Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Help with rebuilding installation?  (Read 1397 times)

0 Members and 1 Guest are viewing this topic.

lancemcvay

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Help with rebuilding installation?
« on: November 07, 2015, 12:58:28 am »

Years ago, I put in Coppermine 1.4.8 on my website and had it running well.  Then my hosting company upped the version of MySQL that was required, and my Coppermine installation no longer works.  I still have all the files and everything in place, but I do not know how to rebuild it from the MySQL 4.x to MySQL 5.1.   

What steps would I take to transform the database to 5.1 or should I do a totally new install?  I had thousands of photos that were done in albums that I would like to keep.    If that can't be done, is there a way to build a new instance of the install that would rebuild itself from all the files still in place?
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4456
    • Windsurf.me
Re: Help with rebuilding installation?
« Reply #1 on: November 07, 2015, 01:14:03 am »

Simply upgrade to the latest release, 1.5.38. Make sure you back up both your files and database first to mitigate any small risk.

http://documentation.coppermine-gallery.net/en/upgrading.htm
Logged
It is a mistake to think you can solve any major problems just with potatoes.

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 721
    • GMC Design Photo Gallery
Re: Help with rebuilding installation?
« Reply #2 on: November 07, 2015, 01:44:49 pm »

I do not know how to rebuild it from the MySQL 4.x to MySQL 5.1.   

While the CPG upgrade Phil indicates is needed, I read your question differently.
The change from MySQL 4 to 5 is handled outside of Coppermine... In my experience, your ISP host should have a migration utility to copy the data, and then provide you with new connection information.
CPG's config file then needs to be updated with new database information:
In include/config.inc.PHP:
Code: [Select]
$CONFIG['dbserver'] = '';
$CONFIG['dbuser'] = '';
$CONFIG['dbpass'] = '';
$CONFIG['dbname'] = '';
are the values that likely will change.

While the change in MySQL versions shouldn't affect Coppermine, other changes (like PHP version) will break CPG V4.
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4456
    • Windsurf.me
Re: Help with rebuilding installation?
« Reply #3 on: November 07, 2015, 04:51:05 pm »

Some hosts do the MySQL version behind the scenes leaving you to wake up one morning with a headache and a dead site. Had it happen a few times to me. I was guessing this is what has happened to the OP.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 21 queries.