php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51988 No input file specfied when trying to exec any PHP script from Web Server
Submitted: 2010-06-03 14:03 UTC Modified: 2010-06-22 07:59 UTC
From: pedro dot galan at cscamaras dot es Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.13 OS: SunOS 5.8 sparc
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pedro dot galan at cscamaras dot es
New email:
PHP Version: OS:

 

 [2010-06-03 14:03 UTC] pedro dot galan at cscamaras dot es
Description:
------------
When trying to run any PHP script from my Web Server (Sun Java System Web Server 6.1) as CGI always get "No input file specified".

Configure options:

./configure  --with-curl --with-mysql=/usr/local/mysql --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/lib
-enable-force-cgi-redirect

Changed PUTS("No input file specifiedddddd.\n"); by PUTS(zend_printf("%s",file_handle.filename)); at line 1947 in cgi_main.c and what i can see at the browser is (null) so the problem is with path_translated for sure.

I've a lot of PHPP4.1 scripts running at the same Web server so the configurantion is the same. It is not too probalbe that the problem is at the Web Server.

Thanks a lot.

Test script:
---------------
matrix /data/web_html/publicado/empresafamiliar/php5 425 #more phpinfo5.php
#!/usr/local/bin/php5

<?php phpinfo(); ?>


Expected result:
----------------
I expect an HTML page with the result of the phpinfo function.

Actual result:
--------------
No input file specified


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-10 21:47 UTC] pedro dot galan at cscamaras dot es
I've verfied that scripts using PHP Cli executable work fine with my Web Server but the problem with PHP Cgi executable ramain the same.

So, PHP Cli allows to execute PHP scripts across Sun Java System Web Server 6.1 but PHP Cgi products "no input file specified".
 [2010-06-14 22:38 UTC] srinatar@php.net
-Status: Open +Status: Bogus
 [2010-06-14 22:38 UTC] srinatar@php.net
This is not a PHP bug but a configuration issue.

Please contact the appppriate web server forum in this case http://forums.sun.com/forum.jspa?forumID=759 and post your question there.
 [2010-06-22 07:59 UTC] pedro dot galan at cscamaras dot es
PHP 5.2.13 is configured exactly as it is said at the Web Server forum. 

Surprisingly PHP 5.2.13 is working fine as FASTCGI but I get "no input file specified" everytime I tray to execute any PHP script as CGI.

The same thing happens with PHP 5.3.2. It works fine as FASTCGI but It doesn't do it as CGI ("no input file specified").

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 30 06:01:28 2024 UTC