473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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-

Jul 17 '05 #1
0 2071

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ajay | last post by:
hi! How do i create and stream a file? On a webpage i have a link to a file. Next to it i would like link, which, when pressed, runs a script that calculates the signature of the file, pickles...
13
by: darkhorse | last post by:
Hi all, While doing a quite big "set of programs" for a university subject I've found myself in the middle of a problem someone surely has had before, so I'm looking for some help. At one...
2
by: sam | last post by:
Hi, I've been buried in xsl and xslt articles for several days now, and am still unsure as to what I need to do... Basically, my vb.net app loads up an XML file from an external source...
6
by: John Dann | last post by:
I need to check whether there are _any_ (ie one or more) files of a specified file type in a folder. Will: if file.exists(path & "*.typ") then ... work reliably? If not then what's the best...
2
by: Robert | last post by:
I'm getting the dreaded "No input file specified" when I try to invoke PHP from thttpd (nochroot). I wrote a C program to dump environment variables before trying to invoke PHP. I've included...
10
by: ircmaxell | last post by:
Ok, I have a program that reads the contents of a file (1 line, 5 '|' seperated items). Every so often (between twice a day, and 200 times a day), it rewrites the contents of that file. I also do...
4
by: SammyBar | last post by:
Hi all, I wonder is it possible to upload the content of an <imgfield to a server. The content of the <imgwas downloaded from a web site different from the one it should be uploaded. The image...
8
by: Victor Kryukov | last post by:
Hello list, I've found the following strange behavior of cPickle. Do you think it's a bug, or is it by design? Best regards, Victor. from pickle import dumps from cPickle import dumps as...
0
by: ksuralta | last post by:
Hi, Is there a SAPI module for PHP 5 for supporting the thttpd web server? Oddly, the one included on PHP 5.2.6 source is for PHP 4.x.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.