Location of Log Files (PHP Error log, Apache Error log, Apache Access Log, FCGI error log, and Log Maintenance)
cat /usr/local/zendphp7/var/log/php.log
cat /www/zendphp7/logs/error_log.Q117040600
cat /www/zendphp7/logs/access_log.Q117040600
cat /www/zendphp7/logs/error_zfcgi.Q117040600
cat /www/zendphp7/logs/maint.log
Document root
ls -l /www/zendphp7/htdocs
Before and after Changes
Job Name:
ZENDSVR -> ZENDPHP7
Server Type:
QIBM_HTTP_ZENDSVR – > QIBM_HTTP_ZENDPHP7
Job User is still the same!:
QTMHHTTP -> QTMHHTTP
Main SubSystem that does work on http requests is still the same!:
QHTTPSVR -> QHTTPSVR
PHP installation directory
/usr/local/zendsvr/ -> /usr/local/zendphp7/
Web Server Root
/www/zendsvr -> /www/zendphp7
Manage the Apache, and other PHP related tasks in 5250 session:
GO ZENDPHP7/ZSMENU
or
STRZS7
PHP,Apache, Configuration files
PHP Config file
/usr/local/zendphp7/etc/php.ini
Location of PHP Extension configuration files:
/usr/local/zendphp7/etc/conf.d/*.ini
/usr/local/zendphp7/etc/conf.d/ZendGlobalDirectives.ini
Apache Config file httpd.conf
/www/zendphp7/conf/httpd.conf
Fast CGI configuration (Process that sits between Apache and PHP-CGI)
/www/zendphp7/conf/fastcgi.conf
/www/zendphp7/conf/fastcgi_dynamic.conf
Included vhosts
/usr/local/zendphp7/etc/sites.d/globals-.conf
/usr/local/zendphp7/etc/sites.d/vhost_ .conf
Session Storage directory:
/usr/local/zendphp7/tmp
Default Include path
.:/usr/local/zendphp7/var/libraries/Zend_Framework_1/default/library:/usr/local/zendphp7/share/pear:/usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/default/library:/usr/local/zendphp7/share/ToolkitApi
PHP related Shared files – Toolkit 1.6.1, symfony 2.3.42, Zend_Framework_2/2.4.11, Zend_Framework_1/1.12.20
/usr/local/zendphp7/share/
ToolkitAPI/ UserServer/ ZendFramework/ ZendFramework2/ bugreport/ dist/ man/ pear/ scripts/ sdk/ zs-cli-tools/
Zend Server Pages serving up document root /www/zendphp7/htdocs/
Zend Server Example page
http://IBM_i_hostname:10080/dummy.php
http://IBM_i_hostname:10080/ZendServer
“Launch Zend Server” page
http://IBM_i_hostname:10081/ZendServer
Location of PHP related Binaries: (php,php-cgi,php-cli,phpize)
/usr/local/zendphp7/bin/*
Add this path to your PATH in your user’s home directory .profile file so we can run php, phpize without specify the whole path to our $PATH environment variable
echo “export PATH=/usr/local/zendphp7/bin/:$PATH” >> ~/.profile
MonitorNode clean_tmpfiles.sh java_bridge.sh monitornodei5.sh php-cgi.bin preunzip word-list-compress zs-client.sh
ZManifest create_cert.sh java_bridge_i5.sh pear php-cli prezip zdd zs-manage
aspell deploymenti5.sh jqd peardev php-config prezip-bin zdd.sh zsd
aspell-import gzip jqd.sh pecl php.bin pspell-config zdd5.sh zsd.sh
bugreport.sh i5_apache.sh jqd5.sh php phpize run-with-aspell zdpack
clean_semaphores.sh i5ipcrm_script.sh monitor-node.sh php-cgi precat watchdog zmd
verify php is working!
php -v
check what php extension modules are loaded
php -m
Included Libraries used by PHP or PHP Extensions
/usr/local/zendphp7/lib/
ImageMagick-6.5.9/ libaspell.la libicui18n52.1.a libicutest52.1.a liblber.la libodbc.a libsiculx.a libz.so.1.2.8
ZendExtensionManager.so libbz2.a libicui18n52.a libicutest52.a libldap-2.4.a libodm.a libsicutest.a libzmq.a
aspell-0.60/ libclntsh.a libicuio.a libicutu.a libldap.a libperfstat.a libsicutu.a libzmq.la
codetracing/ libclntsh.so libicuio52.1.a libicutu52.1.a libldap.la libpng.a libsicuuc.a loader/
datacache/ libclntsh.so.10.1 libicuio52.a libicutu52.a libldap_r-2.4.a libpng12.a libsqldrizzle.a monitor/
debugger/ libdrizzle.a libicule.a libicuuc.a libldap_r.a libpq.a libssh2.a monitor_ui/
jbridge/ libfreetype.a libicule52.1.a libicuuc52.1.a libldap_r.la libpspell.a libsybdb.a opcache/
jobqueue/ libgmp.a libicule52.a libicuuc52.a libmcrypt.a libpspell.la libtidy.a pagecache/
libMagickCore.a libicudata.a libiculx.a libintl.a libnnz10.so libsicudata.a libtiff.a php/
libMagickWand.a libicudata52.1.a libiculx52.1.a libjpeg.a libocci.a libsicui18n.a libxml2.a php_extensions/
libZendDevBarLib.so libicudata52.a libiculx52.a liblber-2.4.a libociei.so libsicuio.a libz.so statistics/
libaspell.a libicui18n.a libicutest.a liblber.a libocijdbc10.so libsicule.a libz.so.1 utils/
Included PHP Extensions:
/usr/local/zendphp7/lib/php_extensions/
bcmath.so fileinfo.so ibm_db2.so intl.so mysqli.so pdo_dblib.so pgsql.so redis.so sysvmsg.so tokenizer.so xmlwriter.so
bz2.so gd.so iconv.so ldap.so oci8.so pdo_ibm.so phar.so shmop.so sysvsem.so wddx.so xsl.so
calendar.so gettext.so imagick.so mbstring.so odbc.so pdo_mysql.so posix.so sockets.so sysvshm.so xdebug.so zip.so
exif.so gmp.so imap.so mcrypt.so pcntl.so pdo_pgsql.so pspell.so ssh2.so tidy.so xmlrpc.so
Binaries for Super user only
/usr/local/zendphp7/sbin
prngd random
Shared IBM i toolkit config file (toolkit.ini) and related files
/usr/local/zendphp7/share/ToolkitAPI/*
PHP Framework and other libraries
cat /usr/local/zendphp7/var/libraries/
PHPToolkitForIBMi-1.6.1-php7.zpk.bak Symfony_2.3/ ZendServerSDK/ Zend_Framework_2/
PHPToolkitForIBMi-1.6.1.zpk ZendFramework-1.12.20.zpk.bak ZendServerSDK-1.1.1a.zpk.bak symfony-2.3.42.zpk.bak
PHP_Toolkit_for_IBMI_i/ ZendFramework-2.4.11.zpk.bak Zend_Framework_1/
XML Toolkit http settings in httpd.conf
ScriptAlias /cgi-bin/ /QSYS.LIB/zendphp7.LIB/
<Directory /QSYS.LIB/zendphp7.LIB/>
AllowOverride None
order allow,deny
allow from all
SetHandler cgi-script
Options +ExecCGI
#End XML Toolkit http settings
Zend Server Propeitary SubSystem:
ZENDSVR -> ZENDPHP7
Other Notes
Version Differences
http://www.zend.com/en/products/server/editions-ibm-i
Get Latest PTFs for your IBM i before you install
http://www-01.ibm.com/support/docview.wss?uid=nas8N1021657#1
Download ZS9.1 w/ PHP 7.1.3: – Download,unzip and follow instructions in Installation_Instructions_for_IBM_i.txt (Create savf, FTP savf from zip to IBM i)
http://www.zend.com/en/products/server/downloads#IBM%20i
CRTSAVF FILE(QGPL/zendphp7) TEXT(‘Zend Server 9 product save file’)
put zendphp7.savf qgpl/zendphp7
Install Silent
SBMJOB CMD(RSTLICPGM LICPGM(7PHPZND) DEV(*SAVF) SAVF(QGPL/zendphp7))
or Install Interactive
RSTLICPGM LICPGM(7PHPZND) DEV(*SAVF) SAVF(QGPL/zendphp7)
Yips site info specific to Zend Server for IBM i
http://youngiprofessionals.com/wiki/index.php/FastCGI/FastCGI
Zend’s help Page on Installing ZS and required PTFs
http://files.zend.com/help/Zend-Server/content/i5_installing_zend_server.htm
Support Page
https://support.zend.com/hc/en-us/articles/115005546888
Access the UI
http://:10091