coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Dfoolz on November 30, 2006, 05:14:34 AM

Title: Moved Servers
Post by: Dfoolz 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
Title: Re: Moved Servers
Post by: Joachim Müller 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.
Title: Re: Moved Servers
Post by: Abbas Ali 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.
Title: Re: Moved Servers
Post by: Dfoolz 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
Title: Re: Moved Servers
Post by: Nibbler 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.
Title: Re: Moved Servers
Post by: Dfoolz 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
Title: Re: Moved Servers
Post by: Nibbler on December 02, 2006, 12:15:37 AM
We know Coppermine better than you do, trust me.

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).
Title: Re: Moved Servers
Post by: Dfoolz on December 02, 2006, 12:35:44 AM
ahh then I dont have imageshack installed I thought it was a chmod error
Title: Re: Moved Servers
Post by: Joachim Müller on December 02, 2006, 06:45:06 AM
Quote from: Dfoolz on December 02, 2006, 12:35:44 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.
Title: Re: Moved Servers
Post by: Abbas Ali 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.
Title: Re: Moved Servers
Post by: Joachim Müller on December 02, 2006, 08:04:28 AM
Quote from: GauGau 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.
Title: Re: Moved Servers
Post by: Abbas Ali on December 02, 2006, 08:52:31 AM
Missed that. But after that post too, he was suspicious for file paths.