Advanced search  

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]

Pages: [1]   Go Down

Author Topic: 2 galleries on one server  (Read 3135 times)

0 Members and 1 Guest are viewing this topic.

snowflow

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
2 galleries on one server
« 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
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: 2 galleries on one server
« Reply #1 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.
Logged

snowflow

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: 2 galleries on one server
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: 2 galleries on one server
« Reply #3 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
Code: [Select]
$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.
Logged
Pages: [1]   Go Up
 

Page created in 0.104 seconds with 19 queries.