Seiden Group
Modern Development & Open Source for IBM i
  • Link to LinkedIn
  • Link to Mail
  • Home
  • Seiden PHP+
    • Seiden PHP+
    • Install & Learn
    • SmartSupport
    • PHP Migrations & Upgrades
    • Success Stories
    • Free PHP Assessment
    • Documentation
    • What’s New (Changelog)
  • IBM i Services
    • Development
    • Training & Mentoring
    • Open Source Setup & Upgrades
    • SSL/TLS Install & Learn
    • Performance
  • Support
    • Open Source & PHP
    • VS Code for i
    • Developer Support
    • Support Success Stories
  • VS Code for i
    • Support
    • Training
    • Code for i Resource Guide
    • Getting Started Videos
    • Code for IBM i Fridays
  • Free Stuff
    • IBM i Strategy & Tips
    • PHP Upgrade Assessment
    • CNX Valence Assessment
    • VS Code for IBM i Resources
    • Code for IBM i Fridays
    • QCachegrind Download
    • PHP Toolkit for IBM i Resources
    • Qshell on i Library
  • Blog
  • About
    • About Our Team
    • About Alan Seiden
    • Speakers & Sessions
    • In the News
  • Contact
  • 201.447.2437
  • Search
  • Menu Menu

Seiden Group Blog

Add apachectl to IBM i for Controlling Apache Web Instances

December 3, 2017/0 Comments/in IBM i, Open Source, PHP /by Joshua Hall

sobo.redHere at Seiden Group, we seek ways to make IBM i systems more congenial for developers accustomed to other platforms, such as Linux.

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):

1
2
3
$ apachectl.sh stop zendphp7
$ apachectl.sh start zendphp7
$ apachectl.sh restart zendphp7

Although BASH isn’t installed by default on IBM i, it is included in the 5733-OPS licensed program product. Once BASH is installed, give the apachetcl shell script for IBM i a try.

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.

Tags: Apache, BASH, IBM i, IBMi, IBMiOSS, PHP, shell script
Share this entry
  • Share on Facebook
  • Share on X
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Reddit
  • Share by Mail
https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png 0 0 Joshua Hall https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png Joshua Hall2017-12-03 19:21:162017-12-04 12:39:08Add apachectl to IBM i for Controlling Apache Web Instances
Joshua Hall

About Joshua Hall

Josh specializes in optimizing the IBM i user experience for both business users and IT professionals. As a consultant with Seiden Group, he draws on ...Read More

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SUBSCRIBE
Open Thinking
Monthly IBM i Strategy & Tips
  • This field is for validation purposes and should be left unchanged.

IBM i Development

  • RPG, COBOL, SQL, Node,
    PHP, Python, Valance, etc.
  • Modernization. Integration.
  • Web and API Solutions
  • Legacy Maintenance
    ...
LET'S GET IT DONE!

Recent Posts

  • Still Running Net.Data on IBM i? We Can Help
  • Mitigating the eMudhra Intermediate CA Compromise with IBM i
  • Critical php2shell Security Update Available in Seiden PHP+ Server
  • Moving to IBM i 7.6? An SDA Alternative with VS Code and IBM Bob
  • What’s New with Mapepire Database Connector for IBM i
  • Do You Need IBM i Observability?
  • PHP 8.6 is Coming Soon to IBM i
  • Safer npm installation is on the way for Node.js (and all JavaScript)
  • Protecting IBM i and Web Applications from Modern Threats
  • IBM i: A Natural Platform for Agentic AI

SEIDEN GROUP: Modern Development & Open Source for IBM i

Home   |   Seiden PHP+   |   IBM i Services  |   Support   |   VS Code for i   |   Free Stuff   |   Blog  |   Privacy Policy  |   Contact         201.447.2437

© 2026 Seiden Group, LLC
  • Link to LinkedIn
  • Link to Mail
Link to: Steph’s Sanity Checks for Programmers Link to: Steph’s Sanity Checks for Programmers Steph’s Sanity Checks for Programmers Link to: With a Lot of Help from My i Link to: With a Lot of Help from My i With a Lot of Help from My i
Scroll to top Scroll to top Scroll to top