z/OS Tools & Language

Expand all | Collapse all

PHP 5.4.4 build 5 getting "no input found" when running cgi

  • 1.  PHP 5.4.4 build 5 getting "no input found" when running cgi

    Posted 12-01-2016 11:29

    I am testing out php 5.4.4-b00005 under IHS 8.5.5.10, and am getting the message “no input file found”. I run the php using the cgi script

    #!/bin/sh
    /usr/local/php/bin/php-cgi “$@”

    I did try to go to B00006, that build will not run on our z9 processor.

    Thanks,
    Peter



  • 2.  RE: PHP 5.4.4 build 5 getting "no input found" when running cgi

    Posted 12-02-2016 02:54

    Not sure what you are after. But shouldn’t the php-cgi make the shebang?

    Something like this?

    #! /usr/local/php/bin/phg-cgi

    <?php phpinfo(); ?>


  • 3.  RE: PHP 5.4.4 build 5 getting "no input found" when running cgi

    Posted 12-02-2016 02:56

    Hm, I didn’t pay attention to formatting.

    #! /usr/local/php/bin/phg-cgi
    ?php
    phpinfo();
    ?>


  • 4.  RE: PHP 5.4.4 build 5 getting "no input found" when running cgi

    Posted 12-02-2016 13:48

    Got the same problem and don’t resolve it using “CGI”…
    Resolved with “FastCGI” : loot at PHP 5.4.4 not working under IHS 8.5.5.9

    Denis