2 galleries on one server 2 galleries on one server
 

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

Main Menu

2 galleries on one server

Started by snowflow, July 18, 2005, 10:46:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

snowflow

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

donnoman

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.

snowflow

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

Joachim Müller

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.