🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.linux.misc
1 messages
1 total messages Started by Michal Kolesar Thu, 18 Jan 2001 14:11
php running as cgi problem
#1015
Author: Michal Kolesar
Date: Thu, 18 Jan 2001 14:11
69 lines
2671 bytes
Hi all!


I have running php as cgi script.

file phpinfo.php:

!#/usr/local/bin/php.4
<? phpinfo(); ?>

my problem:
[root@quarto bin]# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
get http://www.vykysaly.cz/cgi-bin/vykysaly/phpinfo.php3 HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 18 Jan 2001 14:06:14 GMT
Server: Apache/1.3.6 (Unix)  (Red Hat/Linux) FrontPage/4.0.4.3
X-Powered-By: PHP/4.0.4pl1
Connection: close
Content-Type: text/html

#!/usr/local/bin/php.4
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head><STYLE TYPE="text/css"><!--
A { text-decoration: none; }


when I connect to web i get the string "#!/usr/local/bin/php.4" on first
row. Phpinfo.php site is OK (php translation works) .. but on every php page
is
this row on top of site.

I tried use "#!/usr/local/bin/php.4 -q" - quite mod...

but there is other problem:

[root@quarto bin]# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
get http://www.vykysaly.cz/cgi-bin/vykysaly/phpinfo.php3 HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 18 Jan 2001 14:02:19 GMT
Server: Apache/1.3.6 (Unix)  (Red Hat/Linux) FrontPage/4.0.4.3
X-Powered-By: PHP/4.0.4pl1
Connection: close
Content-Type: text/html

No input file specified.
Connection closed by foreign host.


I get "No input file specified" ...

Any idea?

Than You for help!
--

S pozdravem,
Michal Kolesar
kolisko@penguin.cz
http://www.egarden.cz
server of free unix services
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads