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: Install two instances of coppermine ?  (Read 8137 times)

0 Members and 1 Guest are viewing this topic.

bsky92

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • http://www.jag-en-ligne.com
Install two instances of coppermine ?
« on: October 14, 2003, 06:42:57 pm »

Hi

I have thousands of screencaps from a TV show on my site, and I'm having trouble uploading them after a while, as my host does not allow scripts which need longer than 10 seconds.
I get the error running the searchnew.php, just browsing the files on the server, it seems with more than 8000 pictures, the script needs more than 10 seconds on my host ... and I'm not even halfway of the uploading right now ...

I tried differents solutions since Friday, did a lot of searches here, but as my host provides only one database, with as many tables I need, I'm running short on solutions - the last one being to install Coppermine outside phpnuke too, but I'd have to rebuild the theme  :roll:

So here is my question : is there a way to install coppermine inside the modules twice, referring to different sql tables, ie cpg2_

Here is the link to the Coppermine module on my site

http://www.jag-en-ligne.com/modules.php?name=coppermine

Displaying of albums is just great and easy, only the uploading is not working any more

I'm not sure I made myself really clear, sorry  :?
Logged

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Install two instances of coppermine ?
« Reply #1 on: October 14, 2003, 07:08:40 pm »

I can't see why not.  As long as you are working in two seperate directories also.  Then with a cpg_1 and a cpg_2 prefix to the tables, you should be able to.  In fact, I know you can because I have a 1.1.0 and several 1.2 development installations all on the same machine.

But, this begs the question, "do we need to start looking at some stonger indexing?"   :?:
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

bsky92

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • http://www.jag-en-ligne.com
Install two instances of coppermine ?
« Reply #2 on: October 14, 2003, 07:18:11 pm »

ok, I'm going to rephrase my question  :wink:

I just tried, and I'm still working with the first tables

This is what I did

- make a new coppermine.sql, changing all cpg_ in cpg2_
- change in the include/config.inc.php the table prefix from cpg_ to cpg2_
- upload coppermine in the module folder, creating a new module coppermine2
- activate the coppermine2 module


and it's not working, my new coppermine2 is still using the cpg_ tables .......  :?

I'm pretty new at all this php coding, and trying to figure out what to do next ... or what to make better for it to work .... :roll:
Logged

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
Install two instances of coppermine ?
« Reply #3 on: October 15, 2003, 09:05:35 pm »

one of the first things coppermin does is
Code: [Select]

iinclude("header.php");
include('modules/coppermine/include/init.inc.php');



so you should go through each and every file in your second coppermine and search and replace all such code ....
Logged
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

bsky92

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • http://www.jag-en-ligne.com
Install two instances of coppermine ?
« Reply #4 on: October 15, 2003, 09:32:53 pm »

Thanks

it's what I did , changing all ../coppermine/.. in ../coppermine2/.. but I do run now in a critical error : can't find template file, while my default directory is there, with changes made ....

any idea?

I've installed Coppermine outside phpnuke and will then have one part of my picutres inside phpnuke, and this other part outside ... :?
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Install two instances of coppermine ?
« Reply #5 on: October 16, 2003, 01:47:26 am »

The script is probably looking for the nuke_user table which is not in the second db you'll have to code the second instance of coppermine to look in the other data base for the userdata...

bsky92

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • http://www.jag-en-ligne.com
Install two instances of coppermine ?
« Reply #6 on: October 17, 2003, 10:34:01 pm »

Thanks a lot, I'll try this .... but I installed Coppermine outside phpnuke for one half of my pictures, made some changes to the theme to fit my site  and it seems to be working just fine ...... and now, version 1.2 is out  :wink: I guess I know how to spend my week end  :wink:
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Install two instances of coppermine ?
« Reply #7 on: October 19, 2003, 06:45:50 am »

Why not Dev. the CPG for nuke to use the global "$name" from phpNuke then you can have as many coppermine galleries as you want without a hassle in phpNuke?
{note by dev done but it's called $CONFIG[module_name] in the next version}

Code: [Select]
include('modules/'.$name.'/include/init.inc.php');

Or even configure it to a special init.inc.php file and albums directory which is described in the init.inc.php. for example:
/modules.php?name=coppermine&cfg=init2

index.php:
Code: [Select]
include('modules/'.$name.'/include/'.$cfg.'.inc.php');
no need for this it would be in a separate module seperate config file

$cfg.'.inc.php:
Code: [Select]
$CONFIG['fullpath'] = '/modules/'.$name.'/Albums2/';
$CONFIG['TABLE_PREFIX'] = "cpg2_";


But the last option is a lot of work since you need to edit all links to modules.php?name=coppermine and add: modules.php?name=coppermine&cfg=$cfg
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Install two instances of coppermine ?
« Reply #8 on: October 19, 2003, 07:50:21 pm »

OK i changed coppermine 1.1D so you can have many coppermine modules as you want.

It only has the modified "default" theme to intergrate more in phpNuke.
Also only dutch and english language are included.

download http://www.mp3tunes.nl/coppermine/coppermine.zip
extract to your phpNuke directory.
Copy the coppermine directory to something like modules/Coppermine2 or modules/Album2.
(You may use any name you want but be aware that also modules/coppermine exists or you get theme errors)

Edit config.inc.php param:
$CONFIG['TABLE_PREFIX'] =                "cpg_";
To the new prefixed tables in your database like: cpg2_ or alb2_

Then go to module in webpage view and config the album and album/userpic paths. (ex. modules/Coppermine2/albums)

[size=18]WARNING![/size] It's almost fully tested so there could be a bug in it.
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 14 queries.