PDA

View Full Version : Problem with Php running as CGI


ping
05-28-2006, 03:51 PM
I've been trying out 3.11 on my new hosting account and there seems to be a problem with the script.
It seems that the way php is configured in cgi mode,so when you run this small script in the root :
Content visible to registered users only.
you end up with Content visible to registered users only. This is weird since the file is run from the root and there is no cgi-bin directory at all.

As far is newstopica is concerned it installed but when I bring up the main page is doesnt seems to manage to include any of the files. Also all links have the /cgi-bin/ in their url thus giving me an error when clicking as they are actually in the root /.

I believe that Newstopica relies on a similar variable and since the server outputs /cgi-bin/ instead of / or /cgi-bin/1 instead of /1 therefore messing everything up.
Is this the case ?
Is there a way to manually define the base url so that this doesnt happen ( I managed to do so with punbb) ?

I also searched in the forum and it seems someone else has the same problem
http://www.phplinkdirectory.com/forum/showthread.php?t=2040&highlight=cgi-bin I get exactly the same result as on the screenshots.

Content visible to registered users only.

Thanks in advance,

ping
05-29-2006, 06:00 PM
Anybody else got the same kind of problem ?