'No input file specified' - dumps php cgi with thttpd

From: Alex'a X Spirit (sword_at_bonbon.net)
Date: 08/28/04


Date: 28 Aug 2004 01:05:01 -0700

Hi, All
 
FreeBSD 4.9
php cgi 5.0
thttpd 2.25b
 
PHP was compiled with options:
 --enable-discard-path
 --prefix=/usr/local/soft/php
 --without-pear
 --disable-safe-mode
 --with-mysql
 --disable-libxml
 --disable-maintainer-zts
 --without-sqlite
 
Suppose I have file 'hello' with permissions '-rwxr-xr-x root wheel'.
In php.ini directive cgi.force_redirect is set to 0
 
% pwd
/usr/local/data/www/cgi-bin/php
% cat hello
#!/usr/local/soft/php/bin/php
<html>
<body>
<?php
echo "Hello <b>World!</b>";
?>
</body>
</html>
 
This script works if I run it from command line, but under thttpd I
receive message: "No input file specified."
 
Except this trouble with php thttpd works fine and executes other cgi
scripts written on tcl or sh as expected (i.e. normal)
 
% cat /usr/local/etc/thttpd.conf
dir=/usr/local/www/data
nochroot
cgipat=/cgi-bin/**|/alex/cgi-bin/**
logfile=/usr/local/www/logs/thttpd.log
pidfile=/var/run/thttpd.pid
max_age=10
 
PS
Sorry for my terrible english
 
-Alex'a X Spirit-



Relevant Pages

  • No input file specified - dumps php cgi with thttpd
    ... php cgi 5.0 ... PHP was compiled with options: ... Suppose I have file 'hello' with permissions '-rwxr-xr-x root wheel'. ... This script works if I run it from command line, but under thttpd I ...
    (comp.lang.php)
  • Re: Thttpd and PHP
    ... How about using PHP with another non-Apache ... I'm afraid I'm not familiar with thttpd, but here are some things I ... Is there anything in the config file that tells thttpd what file ...
    (Debian-User)
  • Re: Thttpd and PHP
    ... >>I'm afraid I'm not familiar with thttpd, but here are some things I ... >>1) Is there anything in the config file that tells thttpd what file ... I don't think that php can run as cgi. ...
    (Debian-User)
  • PHP, thttpd, & SCRIPT_FILENAME
    ... I'm getting the dreaded "No input file specified" when I try to invoke PHP ... from thttpd. ... I've included the dumped environment variables below. ...
    (comp.lang.php)
  • Re: [PHP] Hidden include_path Fall Back?
    ... imacat@atlas /tmp/phpinc % cat inc/inc01.php ... have a lot of scripts that "accidently" works because of this, ... do not know whether I should fix it or not. ...
    (php.general)