coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: snowflow on July 18, 2005, 10:46:47 AM

Title: 2 galleries on one server
Post by: snowflow on July 18, 2005, 10:46:47 AM
hi,

I've got a question. I want to run two coppermine-galleries on one server, but on two different accounts and domains.
is something like that possible. i've got no problems with the database, but I have some with images-folders.

how can I realize this?

many thanks

flo
Title: Re: 2 galleries on one server
Post by: donnoman on July 19, 2005, 04:41:15 AM
you can run as many galleries as you want, if you are using the same mysql database to hold the tables then you want to make sure you use a different table prefix in config.inc.php for each of the galleries.
Title: Re: 2 galleries on one server
Post by: snowflow on July 19, 2005, 09:42:23 AM
yes, thats correct. but i want to realize another thing. i want to have to galleries with the same database (also the same prefix) and the same pictures on one server, but on two different accounts. i that possible?

flo
Title: Re: 2 galleries on one server
Post by: Joachim Müller on July 19, 2005, 10:45:17 AM
yes, that's possible, but what for? Just use two different themes and you should be fine.
Anyway, if you want two coppermine galleries sharing one database and display the same pics, then do one "regular" install. Then do the second install (coppermine in another dir) and after the install, change the path to the albums folder for the second install's config to point to the album folder of the first install. Next, edit include/init.inc.php of the second install, find$CONFIG['TABLE_PICTURES']        = $CONFIG['TABLE_PREFIX']."pictures";
$CONFIG['TABLE_ALBUMS']                = $CONFIG['TABLE_PREFIX']."albums";
$CONFIG['TABLE_COMMENTS']        = $CONFIG['TABLE_PREFIX']."comments";
$CONFIG['TABLE_CATEGORIES']        = $CONFIG['TABLE_PREFIX']."categories";
$CONFIG['TABLE_CONFIG']                = $CONFIG['TABLE_PREFIX']."config";
$CONFIG['TABLE_USERGROUPS']        = $CONFIG['TABLE_PREFIX']."usergroups";
$CONFIG['TABLE_VOTES']                = $CONFIG['TABLE_PREFIX']."votes";
$CONFIG['TABLE_USERS']                = $CONFIG['TABLE_PREFIX']."users";
$CONFIG['TABLE_BANNED']                = $CONFIG['TABLE_PREFIX']."banned";
$CONFIG['TABLE_EXIF']                = $CONFIG['TABLE_PREFIX']."exif";
$CONFIG['TABLE_FILETYPES']          = $CONFIG['TABLE_PREFIX']."filetypes";
$CONFIG['TABLE_ECARDS']          = $CONFIG['TABLE_PREFIX']."ecards";
$CONFIG['TABLE_TEMPDATA']        = $CONFIG['TABLE_PREFIX']."temp_data";
and change accordingly by hardcoding the table names of all tables but the config table. Please understand that this requires some understanding how coppermine works and that this method is not recommended. If you just want installs that differ visually, do as I suggested above and use different themes with one install.