IBM HTTP Server – Start and Stop command line

Starting and stopping IBM HTTP Server (IHS) involves using the provided command-line scripts. Below are the basic commands for starting and stopping IBM HTTP Server:

Starting and Stopping IBM HTTP Server:

  1. Start IBM HTTP Server:
    • On Unix/Linux:<IHS_HOME>/bin/apachectl start
    • On Windows:<IHS_HOME>\bin\httpd.exe or use the Windows Services.
  2. Stop IBM HTTP Server:
    • On Unix/Linux:<IHS_HOME>/bin/apachectl stop
    • On Windows:<IHS_HOME>\bin\httpd.exe -k shutdown or use the Windows Services.

Note:

  • Replace <IHS_HOME> with the actual path to your IBM HTTP Server installation directory.

Example Usage:

Assuming your IBM HTTP Server is installed in /opt/IBM/HTTPServer:

  1. Start IBM HTTP Server on Unix/Linux:/opt/IBM/HTTPServer/bin/apachectl start
  2. Start IBM HTTP Server on Windows:
    • Run the httpd.exe executable directly from the command prompt or use the Windows Services.
  3. Stop IBM HTTP Server on Unix/Linux:/opt/IBM/HTTPServer/bin/apachectl stop
  4. Stop IBM HTTP Server on Windows:/opt/IBM/HTTPServer/bin/httpd.exe -k shutdown or use the Windows Services.

Additional Considerations:

  • Ensure that the necessary environment variables are set before running the commands.
  • For Windows, you may need to run the command prompt as an administrator to start and stop services.
  • You may use the -k option with httpd.exe on Windows for additional control options. For example:<IHS_HOME>\bin\httpd.exe -k restart This will restart the IBM HTTP Server.

Always refer to the official IBM documentation specific to your version of IBM HTTP Server for the most accurate and up-to-date information. The commands and paths might vary based on the version of IBM HTTP Server you are using.

Leave a comment