Changing directory of album Changing directory of album
 

News:

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

Main Menu

Changing directory of album

Started by krimata, December 16, 2004, 10:02:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

krimata

How do you change the directory of location of where you install coppermine for a photo album that has already been set up?

krimata

nevermind! it was a lot simplier than i though...

djjava

This is the exact question I am looking for an answer for.  I can see the location in db that defines the directory location but am wondering if there is an easier way.....is there some kind of config file that i am missing?  Not a huge php/or mysql guru so any help would be much obliged.

G

Joachim Müller

coppermine stores the path to the files/pics as relative paths to the albums folder, so you're able to rename your coppermine folder (or move it around on the server) to anything you like. You only have to reflect your changes by visiting coppermine config after you have renamed and change the "target for ecards link" to the new folder name.
Example: if your coppermine gallery currently resides in http://www.yoursite.tld/coppermine/, just FTP to your site and change the name of the folder "coppermine" to "photos" -> your coppermine gallery will then be accessible by entereing the url http://www.yoursite.tld/photos/. That's all.
If you want to change the name of the albums folder, just go to coppermine config and change the name there (there's a text field for this purpose), but understand that you mustn't do that once pics/files exist in your coppermine database, you can only do so if you're doing a fresh install. If you already have files/pics in your db, you have to reflect the changes in your database entries as well by running a query (e.g. in phpMyAdmin) - not recommended for newbies. There's a bug in cpg1.3.2 (that has been ironed out only in the most recent files in the stable branch of the cvs) that has the word "albums" hardcoded (instead of respecting the setting you chose in coppermine's config), so you'll have to get the most recent checkout from the cvs.
In short terms: don't rename the albums folder, there's little point in that, as your users won't notice the difference, and you'll have to go through some hassles for apparently no reason at all.

Joachim

kegobeer

If ou want to rename the /albums directory, rename it in your config page (The album directory), then rename the directory with your ftp program.

Oops, Joachim beat me to it.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

djjava

Thank u very much, that was extremely informative! But what if I dont want to change the install dir of Cmine or the name of the albums directory.  If i have the \albums dir and subfolders underneath called \Paris, \Italy, \Spain and the corresponding albums already created in Cmine......but I then create a new folder under the \albums dir called \Newest Pix and I want to move \Paris, \Italy and \Spain under \Newest Pix......then what?  Would I still have run a query that would alter something in the DB?

G

kegobeer

What you are describing is totally unnecessary, as Coppermine doesn't care where your files are physically located.  Moving files to a "newest pics" directory would be a never ending quest, because each time you upload pics, they are of course the newest.  When would you move files out to a "not so newest pics" directory?

I understand wanting to keep things neat and tidy on your server, but at some point you have to just create a heirarchy of directories that won't change (vacations, countries, family, friends, etc) and upload your files to the approrpriate directory.

If you did decide to physically move your directories around, you would indeed have to run a query that would change a directory based on a where clause.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots