|
If you install WebSmart 6.51 or higher AFTER previously installing Zend Core or Zend Server, your WebSmart Apache HTTP server configuration will be automatically set up to handle PHP programs.
However, if you install Zend Core or Zend Server afterwards (or at least didn’t have /www/zendcore/htdocs when the install was run) you need to make some configuration changes after installing Zend Core.
Required Directory
Add the directory below after you install Zend Core, using this command:
CRTDIR DIR('/www/zendcore/htdocs/wsphp/')
The CRTDIR creates the deployment directory for PHW scripts and is the target of the first symbolic link.
Symbolic Links
Add the following symbolic links, using these commands:
ADDLNK OBJ('/www/zendcore/htdocs/wsphp/') NEWLNK('/www/websmart/htdocs/wsphp/') LNKTYPE(*SYMBOLIC)
ADDLNK OBJ('/esdi/websmart/') NEWLNK('/www/websmart/htdocs/wsphp/websmart’) LNKTYPE(*SYMBOLIC)
The first link associates the deployment directory for PHW scripts that we recommend with the deployment directory for the Zend Core. The second link makes the IFS resources referenced in the template available to scripts executing out of wsphp. WEBSMART Apache HTTP Server Configuration Changes
Here are the configuration directives that are required for the HTTP server to run WebSmart PHP. If you initially installed an older version of WebSmart, or you installed WebSmart BEFORE installing the required components from Zend, you will need to add these directives to the WebSmart server instance manually:
These statements need to be added at the very top of your configuration:
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
These directives need to added at the end of the general configuration section, just before the directory entries:
|