The support team at Zend has written a knowledge base of tips for configuring and administering Zend Server for IBM i. The tips, written chiefly by Rod Flohr, are accurate and thorough. Recommended is the site’s option to notify registered users when new articles are posted. URL: https://support.zend.com/hc/en-us/sections/200554323-Zend-Server-for-IBM-i
IBM i computer, formerly named AS/400, iSeries, i5
The 2015 COMMON annual meeting and expo, now in its first day, is helping speakers and attendees create innovation through IBM i integration: open source, closed source, IBM and vendor solutions. For example, of my six presentations during this conference, two are collaborations:
The Art of Performance Diagnostics, with IBM’s Dawn May, allows us to show, among other topics, how IBM i’s integrated performance tools complement green-screen tools and third-party tools (in this case, Zend Server) to pinpoint and solve performance issues (here, PHP-and DB2-based applications).
PHP Tricks for RPG Developers, a talk jointly created by RPG and SQL expert Birgitta Hauser and me, combines RPG, PHP, and DB2, allowing RPG to achieve graphical (charts and graphs, PDF and Excel files) and internet (json-based web services, flexible email) functionality using native functions.
Conferences such as COMMON serve a need that’s difficult to replicate back at the office—brainstorming and sharing possibilities among interdisciplinary peers, or sitting side-by-side with like-minded colleagues who work for different employers, to try something new. This week, for example, some of us plan to share knowledge on compiling binaries in PASE and to further the potential of open source on IBM i. I’m looking forward to presenting my talks (both joint and solo) and helping to realize new ideas with forward-looking colleagues during the conference.
Rational Developer for i (RDi), the modern editor for IBM i RPG, COBOL and other languages, runs on Windows and Linux, but not Mac.
IBM has shown some willingness to port the product to Mac. They have posted a poll to allow users to vote for this enhancement or to comment on the proposal: https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=13454
Those wishing to vote will find a “vote” link near the bottom of the poll page.
By default, IBM i’s Secure Shell (SSH) rejects connection attempts from user profiles longer than eight (8) characters. When long user profiles are rejected, error messages will vary, but users of Zend Studio, for example, will see “Failed to connect sshd on “<some ip address>.”
Since IBM i release 6.1, IBM i has supported an SSH setting, ibmpaseforienv PASE_USRGRP_LIMITED=N, to permit user profiles longer than 8 characters. IBM i 7.2 brought improved support for this capability.
- IBM i 6.1 and 7.1 require a PTF and the new setting.
- IBM i 7.2 and higher require only the setting.
For details, see Zend Support specialist Rod Flohr’s article about how to remove the 8-character limit on user profiles when connecting via SSH.
(Dec. 3, 2017) Update for IBM i 7.3 and beyond: The path of sshd_config remains /QOpenSys/QIBM/UserData/SC1/OpenSSH/etc, unchanged from the IBM i 7.2 path in Rod’s article.
Starting January 27, 2015, I’ll be giving three free Tuesday webinars:
- January 27: Strategic Modernization with PHP
- February 17: Bring RPG/COBOL business logic to the web with the PHP Toolkit
- March 10: Speedy PHP on IBM i
All three one-hour webinars will be held at 14:00 Central European Time (CET). That’s 8 AM Eastern Standard Time (EST). The registration page includes a time zone converter.
Details and to register: http://www.data3.se/?p=5287
Thanks to Torbjörn Appehl of Data3 (COMMON Sweden) for organizing these.
I’ve recorded a special message about my upcoming presentations at the Toronto Users Group for Power Systems evening meeting on January 21, 2015:
In the video, I discuss the two sessions I’ll be presenting:
- Bring RPG/COBOL business logic to the web with the PHP Toolkit
- PHP Tricks for RPG Developers
Hope you can make it to the Toronto meeting, Jan. 21, 2015, Markham, Ontario. Details: http://tug.ca
I’ve been hearing from people confused about Zend Server editions on IBM i. Yes, Community Edition was removed with Zend Server 7/8, but Zend replaced that with the no-charge “Basic” edition. The Basic edition exists only on IBM i. It requires registration but at no cost. Zend Server for IBM i can be downloaded here.
While I often recommend the Professional or Enterprise editions of Zend Server for the value-added tools and for Zend’s professional support, rest assured that free PHP still exists, with the Basic edition.
For more information, here is the current list of Zend Server editions for IBM i.
[Update: See PHP 7 and Free Basic Zend Server Edition for IBM i ]
Zend Framework 2 (ZF2) provides optimization techniques that are often overlooked by published performance tests. One excellent source for such techniques is a presentation by Gary Hockin. I was thrilled when my client and friend King Harrison IV of K3S began testing the effect of these techniques on his ZF2 application running on IBM i.
King’s initial tests produced a 600ms reduction in load time, obtaining respectable performance for his database-heavy application. He plans to update his blog post with further speed improvements as he implements them.
In Batch PHP I showed how to call PHP from a command line. For example, with Zend Server 6 or 7 on IBM i, one would launch a PASE command line using the command CALL QP2TERM, or launch QShell using QSH, then type a command such as this:
For those of us who use PHP-CLI often, the above command can be a finger-buster. Let’s shorten the path by creating a symbolic link:
cd /usr/bin ln -s /usr/local/zendsvr6/bin/php-cli phpc
I created the symbolic link in /usr/bin, a directory that is likely to be in any user’s path.
Now try the shortened command:
To test the shortcut without a PHP script, use the -v switch, which requests version information (‘v’ for version) about your PHP installation.
The above command will return version information that starts out something like this:
PHP 5.3.6 (cli) (built: Apr 7 2011 09:37:14) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with Zend Extension Manager v5.1, Copyright (c) 2003-2010, by Zend Techno logies - with Zend Data Cache v4.0, Copyright (c) 2004-2010, by Zend Technologie s [loaded] [licensed] [disabled] - with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technolog ies [loaded] [licensed] [enabled] - with Zend Job Queue v4.0, Copyright (c) 2004-2010, by Zend Technologies [loaded] [not licensed] [disabled]
By creating a symbolic link to the PHP-CLI binary, practitioners of PHP can speed their work while saving their fingers.
For more about symbolic links, see my article Link up with QShell.