php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7282 "No input file specified." when run as a CGI
Submitted: 2000-10-17 11:49 UTC Modified: 2001-12-18 07:14 UTC
From: weunice at acm dot org Assigned:
Status: Closed Package: Other web server
PHP Version: 4.0.3pl1 OS: HP-UX 10.20
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: weunice at acm dot org
New email:
PHP Version: OS:

 

 [2000-10-17 11:49 UTC] weunice at acm dot org
I am using Netscape FastTrack 3.01 and HP-UX 10.20 and I am attempting to compile PHP as a CGI (PHP 4.0.3pl1). My problem is getting:

"No input file specified." 

when I try to run PHP in conjunction with my web server.  

I can manage to get PHP 3.0.17 to work fine with my web server, but I am having a hard time getting the XML (expat) stuff working with that (I keep getting unresolved references). In order to solve my need for the XML support I decided to try PHP 4.0.3pl1. I would prefer PHP4 anyway since this is what I have at home. I can get other CGI programs to work with my web server, just not PHP. PHP also works fine from the command line.  

I have tried the following configure setups:

CFLAGS=+e ./configure --without-mysql --enable-discard-path --with-xml
CFLAGS=+e ./configure --without-mysql --with-xml
CFLAGS=+e ./configure --without-mysql --enable-discard-path
CFLAGS=+e ./configure --without-mysql

I am pretty sure the --with-xml doesn't help or hurt the situation.

I simply type make after the configure.  I have copied the default php.ini file to the /usr/local/lib directory.

I get a few problems during the make process, but typing make again seems to resolve them.  The problems during make are (with the subsequent makes). The executable seems to work OK: 

        /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE  -I. -I/usr/local/myusername
/php/php_compile/php-4.0.3pl1/ -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/main -I/u
sr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.
0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_compile/ph
p-4.0.3pl1/TSRM  -DXML_BYTE_ORDER=21 +e   -o php -export-dynamic         stub.lo libphp4.la
/usr/ccs/bin/ld: Unsatisfied symbols:
   DL_UNLOAD (code)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
[mymachinename:myusername] (ttypc) $ make
Making all in Zend
Making all in main
Making all in ext
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
Making all in xml
Making all in expat
Making all in xmltok
Making all in xmlparse
Making all in sapi
Making all in cgi
        /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE  -I. -I/usr/local/myusername
/php/php_compile/php-4.0.3pl1/sapi/cgi -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/m
ain -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compil
e/php-4.0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_co
mpile/php-4.0.3pl1/TSRM  -DXML_BYTE_ORDER=21 +e   -o libsapi.la  cgi_main.lo getopt.lo  
Making all in TSRM
Making all in regex
Making all in .
        /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE  -I. -I/usr/local/myusername
/php/php_compile/php-4.0.3pl1/ -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/main -I/u
sr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.
0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_compile/ph
p-4.0.3pl1/TSRM  -DXML_BYTE_ORDER=21 +e   -o libphp4.la -rpath /usr/local/myusername/php/php_compile/php-4.0.3pl1/libs    stub.lo  Zend/lib
Zend.la  sapi/cgi/libsapi.la  main/libmain.la  regex/libregex.la  ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.l
a ext/standard/libstandard.la ext/xml/libxml.la  TSRM/libtsrm.la -lm -lcrypt
        /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE  -I. -I/usr/local/myusername
/php/php_compile/php-4.0.3pl1/ -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/main -I/u
sr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.
0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_compile/ph
p-4.0.3pl1/TSRM  -DXML_BYTE_ORDER=21 +e   -o php -export-dynamic         stub.lo libphp4.la
/usr/ccs/bin/ld: Unsatisfied symbols:
   DL_UNLOAD (code)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
[mymachinename:myusername] (ttypc) $ make
Making all in Zend
Making all in main
Making all in ext
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
Making all in xml
Making all in expat
Making all in xmltok
Making all in xmlparse
Making all in sapi
Making all in cgi
Making all in TSRM
Making all in regex
Making all in .
Making all in pear
[mymachinename:myusername] (ttypc) $ 

I have also tried the following, which I discovered in previous posts related to the same issue:

In sapi/cgi/cgi_main.c

if (getenv("SCRIPT_FILENAME")) 
   SG(request_info).path_translated = estrdup(getenv("SCRIPT_FILENAME")); 
else /* CNC Web server doesn`t use SCRIPT_FILENAME, so... */ { SG(request_info).path_translated = estrdup(SG(request_info).argv0); } 

Any info would be GREATLY appreciated

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-17 14:18 UTC] weunice at acm dot org
I modified php.ini to add

doc_root = /usr/local/php/cgi-bin/

and I get an HTTP 500 error ... the server log gives this:

[17/Oct/2000:13:10:45] failure: for host 192.168.xx.xx trying to GET /cgi-bin/4.cgi, cgi-parse-output reports: the CGI program /usr/
local/php/cgi-bin/4.cgi did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other 
abnormal termination)

Different error.  I do not know if this helps or not. 
 [2001-11-27 05:41 UTC] sander@php.net
Does this problem still occurs with the latest version (4.0.6) or the latest RC (http://download.php.net/~zeev/php-4.1.0RC3.tar.gz) or the latest CVS?
 [2001-12-18 07:14 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 16:01:26 2024 UTC