🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #1015

php running as cgi problem

#1015
From: 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
Technical Details
Message-ID: <3a66fa44@news.cvut.cz>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.algonet.se!algonet!news.tele.dk!195.250.128.40!news.vol.cz!news.cesnet.cz!news.cvut.cz!pc13.datac.cz

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1156bd,f30b901f8821832f,start
X-Google-Attributes: gid1156bd,public
X-Google-Thread: 112ebc,f30b901f8821832f,start
X-Google-Attributes: gid112ebc,public
X-Google-Thread: 1103af,f30b901f8821832f,start
X-Google-Attributes: gid1103af,public
X-Google-ArrivalTime: 2001-01-18 06:46:09 PST
From: "Michal Kolesar" <kolisko@penguin.cz>
Newsgroups: comp.os.linux.misc,cz.comp.linux,cz.comp.lang.php
Subject: php running as cgi problem
Date: Thu, 18 Jan 2001 15:11:32 +0100
Lines: 72
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: pc13.datac.cz
X-Original-NNTP-Posting-Host: pc13.datac.cz
Message-ID: <3a66fa44@news.cvut.cz>
X-Trace: 18 Jan 2001 15:14:28 +0100, pc13.datac.cz
X-Original-Trace: 18 Jan 2001 15:14:28 +0100, pc13.datac.cz
Organization: Ceske Vysoke Uceni Technicke, Praha
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.algonet.se!algonet!news.tele.dk!195.250.128.40!news.vol.cz!news.cesnet.cz!news.cvut.cz!pc13.datac.cz