z/OS Tools & Language

RE: Customization server apache and php (Z/os V2r2)

  • 1.  RE: Customization server apache and php (Z/os V2r2)

    Posted 06-15-2017 10:30

    Hello
    I also have some difficulty to get php running on z/OS.
    I’ve installed php on a different PATH as Default -> /php
    I’ve just ran following command on my OMVS:
    /php/bin/php-cgi --php-ini /etc/ihsapach/cgi-bin/php/php.ini /etc/ihsapach/cgi-bin/php/myphp.php
    Status: 404 Not Found
    X-Powered-By: PHP/5.4.4
    Content-type: text/html

    No input file specified.

    I’ve set cgi.fix_pathinfo=0 within php.ini and myphp.php looks very simple:

    My first PHP page

    <?php echo "Hello World!"; ?>

    I see within /php/bin/php-config the default paths and I’m not sure if this could influence my problem?

    Any help is highly appreciated.

    thx, Patrik