Developers coming from a non-IBM i background know how to run the apachectl command to start, restart, and end an Apache web server instance. Instead of apachectl, however, IBM i provides a web-based graphical interface and the commands STRTCPSVR and ENDTCPSVR (be sure to prompt those for parameters using F4).
To supply the “missing” apachectl command for IBM i, I have written a BASH shell script that simulates apachectl on IBM i.
My apachectl scripts can be run like the following, for example, to stop, start, and restart a ZENDPHP7 instance (Zend Server 9):
$ apachectl.sh stop zendphp7 $ apachectl.sh start zendphp7 $ apachectl.sh restart zendphp7
If you work with developers or others from a non-IBM i (e.g. Linux) background, contact us for guidance and tools to make them comfortable and successful working with IBM i.