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: Possible to move themes et al  (Read 4693 times)

0 Members and 1 Guest are viewing this topic.

mikew

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Possible to move themes et al
« on: February 14, 2006, 04:59:17 am »

Hi there

I've just installed CPG143 and it looks ok, though I am running it from a cgi-bin folder (long story) so I had to move the non php stuff out of there, into another folder:

main code:
www.domain.com/cgi-bin/coppermine/index.php

nonphp stuff:
www.domain.com/coppermine/themes etc

However I can't get the php code to recognise the fact i've moved the themes, images etc folders away from the main coppermine subdirectory...

Is it clear what im trying to do?  From looking at the code, and having a poke around, it looks like im going to have to manually modify the templates? Or, is there a configuration setting somewhere that im missing?

Thanks
Mike
« Last Edit: February 15, 2006, 12:17:00 am by Nibbler »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Possible to move themes et al
« Reply #1 on: February 14, 2006, 05:18:47 am »

You should put the themes folder back. the files theme.php are PHP stuff.
Logged

mikew

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Possible to move themes et al
« Reply #2 on: February 14, 2006, 05:20:41 am »

You should put the themes folder back. the files theme.php are PHP stuff.


Er theme.php is, but style.css and template.html are not, unless you are suggesting these are not needed?

Maybe its not possible to run CPG from within a cgi-bin folder?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Possible to move themes et al
« Reply #3 on: February 14, 2006, 07:41:49 am »

Maybe its not possible to run CPG from within a cgi-bin folder?
Exactly, unless your webhost allows you to do so - this is a matter of server setup. If the server is yours to administer (not recommended), set the server up properly to parse PHP everywhere, not only in the cgi-bin and then move the entire coppermine folder out of the cgi-bin. When buying a car, you can't put the car on the street and leave the motor in the garage (or vice versa) - this is bound not to work. The structure of folders and files within coppermine has to remain intact.
Logged

mikew

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Possible to move themes et al
« Reply #4 on: February 14, 2006, 11:57:12 pm »

Exactly, unless your webhost allows you to do so - this is a matter of server setup. If the server is yours to administer (not recommended), set the server up properly to parse PHP everywhere, not only in the cgi-bin and then move the entire coppermine folder out of the cgi-bin. When buying a car, you can't put the car on the street and leave the motor in the garage (or vice versa) - this is bound not to work. The structure of folders and files within coppermine has to remain intact.

Right that clarifies thing then (the folder structure has to remain intact)! Thanks very much.

Btw I can't set php to run everywhere because a) its not my server b) i've JSP/Servlets running elsewhere and I'd like to keep things separate anyway. 

Anyone know of a more configurable gallery software? :)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Possible to move themes et al
« Reply #5 on: February 15, 2006, 12:03:40 am »

I think jalbum uses jsp.
Logged

mikew

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Possible to move themes et al
« Reply #6 on: February 15, 2006, 12:16:33 am »

I think jalbum uses jsp.

Great, thanks - i'll look into it.

:D
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.