Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Alex'a X Spirit
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi, All

OS: 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-


Closed Thread


Similar PHP bytes