Possible to move themes et al Possible to move themes et al
 

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

Possible to move themes et al

Started by mikew, February 14, 2006, 04:59:17 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mikew

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

Tranz

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

mikew

Quote from: TranzNDance on February 14, 2006, 05:18:47 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?

Joachim Müller

Quote from: mikew on February 14, 2006, 05:20:41 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.

mikew

Quote from: GauGau on February 14, 2006, 07:41:49 AM
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? :)

Tranz


mikew