Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add the following lines to the end of your httpd.conf.  Change the “/www/[instance-name]/htdocs”, below to the directory to the name of your Profound UI instance (/www/profoundui/htdocs by default).
Code Block

# Start of code to enable Zend Server
LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
AddType application/x-httpd-php .php
<Directory /www/[instance-name]/htdocs>
  AllowOverride All
  AddHandler fastcgi-script .php
  order allow,deny
  allow from all
</Directory>
# End Zend Server Code
  • Create a /www/[instance-name]/conf/fastcgi.conf file for your instance.  In that file, put the following directives.  Where it says /usr/local/zendsvr6, use the directory where Zend Server has been installed.   Where it says /www/profoundui, use the directory where Profound UI has been installed.  The first line (the "DynamicServer" directive) should all be on one very long line, even though it "wraps" on the display,.below.
Code Block

; Static PHP servers for default user -- THE FOLLOWING SHOULD BE ON ALL ONE LINE
DynamicServer type="application/x-httpd-php" MinProcesses=5 MaxProcesses=100
CommandLine="/usr/local/zendsvr6/bin/php-cgi.bin" SetEnv="LIBPATH=/usr/local/zendsvr6/lib"
SetEnv="PHPRC=/usr/local/zendsvr6/etc/" SetEnv="PHP_FCGI_CHILDREN=10"
SetEnv="PHP_FCGI_MAX_REQUESTS=0" ConnectionTimeout="60" RequestTimeout="60"
SetEnv="CCSID=819" SetEnv="LANG=en_US" SetEnv="INSTALLATION_UID=100313092601"
SetEnv="LDR_CNTRL=MAXDATA=0x40000000" SetEnv="TZ=<EST>5<EDT>,M3.2.0,M11.1.0"

; Where to place socket files
IpcDir /www/profoundui/logs

;Minimum and Maximum of dynamic servers
MinDynamicServers 5
MaxDynamicServers 100

...