Coppermine modded to run properly under cgi



Recently upgraded to CPG 1.3.3 (security update) from a much older version and noticed that I can’t use several features - they spit this error

[code]Warning: Unexpected character in input: ’ ’ (ASCII=12)
state=1 in /usr/local/dh/cgi-system/php.cgi on line 2966

Parse error: parse error, unexpected T_STRING in
/usr/local/dh/cgi-system/php.cgi on line 2966[/code]
which google tells me crops up a lot here a DH, due to some setups related to running php as cgi. This kb article offers some advice that makes my hair hurt. (I sort of get the drift, but don’t know the particulars of how to implement it.) I saw in the comments that several folks had found ways to patch specific scripts, so I’m wondering if anyone’s solved the problem for Coppermine?

On the CPG forum I got an acknowledgement at least:

… but other simply locating $PHP_SELF in and hardcoding in a URL in the one line that sets PHP_SELF (didn’t help - and $_SERVER[‘PHP_SELF’] didn’t exist in that file ) I’m not clueful enough to know what actual steps to take to implement the various suggestions.

Update: heh, my attempt to take the advice literally earned me this:

True enough.