On Tue, Feb 05, 2002 at 09:49:05PM +0000, Gavin McCullagh wrote:
>> Hi all,
>> I wonder could I get some help. I have php running as a cgi (don't ask).
It's common enough, makes sense sometimes, especially with suexec, or
if you need an extra bloated php with stuff like gd that you dont
want in a mod_php that has to be that little bit extra fast
> For whatever reason unless I put
>> #!/path_to_php_binary
>> at the top of each script, nothing will work ("Internal Server
> Error"). This would be fine
how is an internal server error fine ? is the file extension properly
added as a cgi, as in
AddHandler cgi-script [previous contents, .cgi .. etc] .php
also worth doing
DirectoryIndex [previous contents, .html .. etc] index.php
or whataver extension you use, does the script have execute permissions, and readable
and stuff ? does it work from cmdline ?
> except
> that PHP echoes this path onto the webpage.
an old problem with some of php3 and some of php4, fixed with the
latest php binaries, at least for us :) it also happens if mod_php
runs the scripts, that could be it too, above will fix it.
unless this is happening because apache thinks it's plaintext,
see above
> How can I
>> a) remove the path? I'm guessing it's something configured wrong in
> apache.
could be that up there :)
>> or
>> b) get it not to echo it
same again :)
--
colmmacc at redbrick.dcu.iewebmaster at redbrick.dcu.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!