install Zend platform:

CRTSAVF FILE(QGPL/Z6ZS0011)
# put via ftp in qgpl, mode binary
LODPTF LICPGM(6ZSVRPI) DEV(*SAVF) SAVF(QGPL/Z6ZS0011)

Compatibility Wrapper (CW):

  1. "Download latest CW PHP Code" from the YiPS site
  2. cpy to application vendor
  3. Read the readme included
  4. In toolkit.ini, change XMLServiceLib = ZENDSVR if it isn't there already

include the wrapper in the application:

// /usr/local/zendsvr6/share/ToolkitApi/CW/cw.php
if (!function_exists('i5_connect)){
    require_once('
CW/cw.php');
}
// legge risultati dopo call
if (function_exists('
i5_output')) extract(i5_output());

php include_path:

/usr/local/zendsvr6/share/ToolkitApi
/usr/local/zendsvr6/var/libraries/PHP_Toolkit_for_IBMI_i/default/library
/usr/local/zendsvr6/var/libraries/
/usr/local/zendsvr6/share/pear

XMLSERVICE log

/usr/local/zendsvr6/var/log/debug.log
/usr/local/zendsvr6/var/log/toolkit.log

administration Apache V7R1:

#Stop the Zend Server subsystem:
GO ZENDSVR6/ZSMENU ->option 5 ->option 2
GO ZENDPHP7/ZSMENU ->option 5 ->option 2
 
# Check PTF was applied:
GO ZENDSVR6/ZSMENU ->option 2
 
# Start the Zend Server Subsystem using the Zend Server Setup Menu
GO ZENDSVR6/ZSMENU ->option 5 ->option 1
QSYS/STRTCPSVR SERVER(*HTTP) RESTART(*HTTP) HTTPSVR(ZENDSVR6)
/usr/local/zendsvr6/etc/php.ini
/usr/local/zendsvr6/var/log/php.log
/www/zendsvr6/logs/
/www/zendphp7/conf
/www/zendphp7/logs
/usr/local/zendphp7/etc/php.ini

Apache versioni V4R4+

# comando breve, non funziona con tutte le versioni
QSYS/STRTCPSVR SERVER(*HTTP) RESTART(*HTTP) HTTPSVR(ZENDAPP)
 
# sequenza lunga, talvolta necessaria
QSYS/ENDTCPSVR SERVER(*HTTP) HTTPSVR(ZENDAPP)
QSYS/STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDAPP)
 
# test is running
WRKACTJOB SBS(ZEND)

ATTENZIONE: ENDTCPSVR *ALL stoppa tutti i terminali e mette la macchina fuori rete

/www/zendapp/conf/httpd.conf

versione V4R4:

go ZENDCORE/ZCMENU
e dare
  5. Service Management menu
  5. Stop Apache server instances
  4. Start Apache server instances

versione V5R1

/usr/local/Zend/apache2/conf
 
/www/zendcore/logs
/www/zendcore/htdocs

zend console: http://as400:89/ZendCore/