Php as CGI

m4xwell

Joined: 2008-10-07
Posts: 2
Posted: Tue, 2008-10-07 19:15

Hello there!

My webhost runs PHP as CGI, meaning i have to run all php scripts from the cgi-bin, this means i need to install Gallery into my cgi-bin.

which is fine, i have no technical errors. except you cannot access anything but scripts in the cgi-bin, meaning i have no images (skins etc) so my page is just basic text+my album images (placed outside the cgi-bin)

i had a look through the config file for a global i could set to change the image locations (then id manually move the required files), no success.. plus in most of the files the image locations are not a variable but a set path (so this would mean going through a million files and changing the paths)

i was wondering if there was another solution?

sorry i didnt include any technical info as requested.. but that stuff all works, this is more a compatibility issue.

thanks for your time

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2008-10-07 20:24

Hello Maxwell,

i don't get it.
What IS the problem?

The URL to your Gallery could help.
Also the Version number is VERY important.

Jens
--
Gallery Developer

 
m4xwell

Joined: 2008-10-07
Posts: 2
Posted: Tue, 2008-10-07 23:10

the problem is that you cant access anything but php/cgi files from my cgi-bin.
and php files wont run anywhere but the cgi-bin.

meaning images/css/etc files cant be accessed (no matter what chmod)

http://jinx.woaf.net/cgi-bin/gallery1/index.php

version is latest stable release 1.5.9

i realise the simplest solution is to use a webhost without php installed in this way, but alas this is not possible :)

so in short:
* i want all the php files in /www/cgi-bin/
* and everything else in /www/html/
* and was wondering if there is a file/global variable which contains the path to skin images

ive noticed manifest.inc has alot, possibly this could be a solution for me?
ive not checked to see if its actually used as an include in other files, as i thought asking here would be easier than reverse engineering Gallery :P

thanks for the quick response above :)

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2008-10-08 08:34

Can you PM me your email address?

Jens
--
Gallery Developer