× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm not sure if this would help your installation but this is how we have it configured.

In fastcgi.conf:
Server type="application/x-httpd-php" CommandLine="/usr/local/zendphp7/bin/php-cgi.bin" StartProcesses="1" SetEnv="LIBPATH=/usr/local/zendphp7/lib" SetEnv="PHPRC=/usr/local/zendphp7/etc/" SetEnv="PHP_FCGI_CHILDREN=0" SetEnv="PHP_FCGI_MAX_REQUESTS=0" ConnectionTimeout="30" RequestTimeout="60" SetEnv="CCSID=819" SetEnv="LANG=C"

In httpd.conf:
LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM

AddType application/x-httpd-php .php
AddHandler fastcgi-script .php

Good luck (bone thrown!),
Matt

-----Original Message-----
From: WEB400 <web400-bounces@xxxxxxxxxxxx> On Behalf Of Justin Taylor
Sent: Wednesday, July 11, 2018 1:49 PM
To: WEB400 (web400@xxxxxxxxxxxx) <web400@xxxxxxxxxxxx>
Subject: [WEB400] PHP code doesn't execute

I've installed Zend PHP and configure my Apache server per the book Open Source Starter Guide for IBM i Developers. The server starts, and the log shows it loaded "Zend Enabler". When I point my browser to a simple PHP file, it downloads the source. If I browse to an HTML file that contains embedded PHP, it sends the PHP code down as comments in the HTML.

I'm sure I'm overlooking the obvious, but I can't see it. Can anyone throw me a bone?

TIA
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.