Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Moved Servers  (Read 5099 times)

0 Members and 1 Guest are viewing this topic.

Dfoolz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Moved Servers
« on: November 30, 2006, 05:14:34 am »

Hey I setup coppermine for a friend a while back and it all went perfectly but now that I moved the site to a new server I have no idea where the configs are for the file paths etc... and I dont wanna reinstall the whole site so can anyone help me out?
Best Regards,
Dfoolz
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Moved Servers
« Reply #1 on: November 30, 2006, 05:18:13 am »

The file paths in the database are stored as relative paths, seen from the albums folder you specified in the config. You don't have to edit them. All you have to to is edit the setting "URL of your coppermine gallery folder (no 'index.php' or similar at the end)" in coppermine's config.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moved Servers
« Reply #2 on: November 30, 2006, 10:59:07 am »

Also edit include/config.inc.php if the database connection details for the new server are different then the old one.
Logged
Chief Geek at Ranium Systems

Dfoolz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Moved Servers
« Reply #3 on: December 01, 2006, 05:11:49 pm »

no I updated the config file to the new sql im not that stupid what im asking is where does it store the file_paths for uploading images. I chmod on albums folder and I keep getting

The file 'albums/userpics/10002/_at_the_office.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127


which im guessing is because its still trying to use the old file_paths since this is a new server and a diff OS their not the same
Logged

Nibbler

  • Guest
Re: Moved Servers
« Reply #4 on: December 01, 2006, 06:05:53 pm »

If it's a different OS then the path to ImageMagick is probably different... change it in config.
Logged

Dfoolz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Moved Servers
« Reply #5 on: December 01, 2006, 11:29:00 pm »

Alrite if you didnt understand me the first 2 times I dont know where in the php the image_path is at its NOT in config.php all thats in that is the sql info nothing else
Logged

Nibbler

  • Guest
Re: Moved Servers
« Reply #6 on: December 02, 2006, 12:15:37 am »

We know Coppermine better than you do, trust me.

Code: [Select]
Error executing ImageMagick - Return value: 127
That means you have the path to ImageMagick set incorrectly on your config page (or you don't have imagemagick installed at all).
Logged

Dfoolz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Moved Servers
« Reply #7 on: December 02, 2006, 12:35:44 am »

ahh then I dont have imageshack installed I thought it was a chmod error
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Moved Servers
« Reply #8 on: December 02, 2006, 06:45:06 am »

imageshack
It's actually named ImageMagick. Try switching "method to resize images" to GD2 instead in coppermine's config. Relative paths to your images are an entirely different animal. Changing permissions (CHMOD) is something different as well.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moved Servers
« Reply #9 on: December 02, 2006, 07:57:29 am »

And just fyi: image paths which are stored in database for all your pictures and files are relative and they don't need to be changed when you move to another server.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Moved Servers
« Reply #10 on: December 02, 2006, 08:04:28 am »

The file paths in the database are stored as relative paths, seen from the albums folder you specified in the config. You don't have to edit them. All you have to to is edit the setting "URL of your coppermine gallery folder (no 'index.php' or similar at the end)" in coppermine's config.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Moved Servers
« Reply #11 on: December 02, 2006, 08:52:31 am »

Missed that. But after that post too, he was suspicious for file paths.
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.