The book's talking about your own Apache server, which I'd prefer. My servers are already configured (e.g. authentication, firewalls, SSL).
I don't know if it matters, but I don't have any ZENDSVR* libraries. The library is ZENDPHP7. I downloaded it this week, and the menu shows " Zend Server 2018.0.0 for IBM i Management Menu (PHP 7.2)", so I assume it's current.
I'll try putting my sample script in in their DocumentRoot (/www/zendphp7/htdocs) and see what happens. Thank you
-----Original Message-----
From: Jon Paris [mailto:jon.paris@xxxxxxxxxxxxxx]
Sent: Thursday, July 12, 2018 3:29 PM
To: Web400@Midrange. Web400 <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] PHP code doesn't execute
If the
http://xxx:10080 brings up "Zend Server Test Page" URL brings up a page the server is working correctly. Where did you put your php test script? It has to be in the server's default doc root.
To find out where that is (just in case it is non-standard):
ADDLIBLE ZENDSVRn (Where n is 6 or 8 or whatever version you loaded - check with WRKLIBPDM ZENDSVR*)
GO ZSMENU
The take option 15 on the menu - that will show you the apache config file and if you take option 5 against that you should see a line like:
DocumentRoot /www/zendsvr6/htdocs
That is where the server is looking to find your script. I don't know why the book had you add all the stuff manually - that should only be needed to integrate the ZendServer with your regular port 80 web site. Normally when starting out you just stick with the default.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
As an Amazon Associate we earn from qualifying purchases.