Starting and stopping the IBM HTTP Server

Perform the following steps to start or stop your IBM HTTP Server.

Before you begin

Ensure that you configured the IBM HTTP Server properly or you might encounter errors when you attempt to start the server.

Procedure

  • To start your web server:
    OptionDescription
    Windows
    • On local IHS, run the following command,
      HTTPServer_installdir/bin/apache.exe -k start -f Path_to_httpd.conf_file
    • On remote IHS, run the following command,
      HTTPServer_installdir/bin/apache.exe -k start -f Remote_configuration_dir/httpconf/httpd.conf
      where
      Path_to_httpd.conf_file
      The path to your WebSphere Commerce or WebSphere Commerce Search httpd.conf file:
      • For WebSphere Commerce: WC_installdir/instances/instance_name/httpconf/httpd.conf
      • For WebSphere Commerce Search: WC_installdir/instances/instance_name/search/solr/home/httpconf/httpd.conf.
      Remote_configuration_dir
      • For WebSphere Commerce: The directory that is specified during instance creation by using the remote IHS option.
      • For WebSphere Commerce Search: If you used either the searchIsConfigViaFTP or searchIsConfigViaNFS option to copy the file to the remote server, the httpd.conf file is copied to the searchRemoteConfigPath path that you specified.
    Important: If you started your IBM HTTP Server through the Windows Services menu, you must stop the IBM HTTP Server through the Windows Services menu. Alternatively, if you started your IBM HTTP Server through the command line, you must stop it through the command line.
    LinuxAIX
    • On local IHS, log in as the root user by using the su - root command and run the following command,
      HTTPServer_installdir/bin/apachectl -k start -f Path_to_httpd.conf_file
    • On remote IHS, log in as the root user by using the su - root command and run the following command,
      HTTPServer_installdir/bin/apachectl -k start -f Remote_configuration_dir/httpconf/httpd.conf
      where
      Path_to_httpd.conf_file
      The path to your WebSphere Commerce or WebSphere Commerce Search httpd.conf file:
      • For WebSphere Commerce: WC_installdir/instances/instance_name/httpconf/httpd.conf
      • For WebSphere Commerce Search: WC_installdir/instances/instance_name/search/solr/home/httpconf/httpd.conf.
      Remote_configuration_dir
      • For WebSphere Commerce: The directory that is specified during instance creation by using the remote IHS option.
      • For WebSphere Commerce Search: If you used either the searchIsConfigViaFTP or searchIsConfigViaNFS option to copy the file to the remote server, the httpd.conf file is copied to the searchRemoteConfigPath path that you specified.
    For IBM i OS operating systemFor IBM i OS operating system For IBM i OS operating system

    Run the following command from an IBM i command line:

    STRTCPSVR SERVER(*HTTP) HTTPSVR(instance_name)
  • To stop your Web server:
    OptionDescription
    Windows
    • On local IHS, run the following command,
      HTTPServer_installdir/bin/apache.exe -k stop -f Path_to_httpd.conf_file
    • On remote IHS, run the following command,
      HTTPServer_installdir/bin/apache.exe -k stop -f Remote_configuration_dir/httpconf/httpd.conf
      where
      Path_to_httpd.conf_file
      The path to your WebSphere Commerce or WebSphere Commerce Search httpd.conf file:
      • For WebSphere Commerce: WC_installdir/instances/instance_name/httpconf/httpd.conf
      • For WebSphere Commerce Search: WC_installdir/instances/instance_name/search/solr/home/httpconf/httpd.conf.
      Remote_configuration_dir
      • For WebSphere Commerce: The directory that is specified during instance creation by using the remote IHS option.
      • For WebSphere Commerce Search: If you used either the searchIsConfigViaFTP or searchIsConfigViaNFS option to copy the file to the remote server, the httpd.conf file is copied to the searchRemoteConfigPath path that you specified.
    Important: If you started your IBM HTTP Server through the Windows Services menu, you must stop the IBM HTTP Server through the Windows Services menu. Alternatively, if you started your IBM HTTP Server through the command line, you must stop it through the command line.
    LinuxAIX
    • On local IHS, log in as the root user by using the su - root command and run the following command,
      HTTPServer_installdir/bin/apachectl -k stop -f Path_to_httpd.conf_file
    • On remote IHS, log in as the root user by using the su - root command and run the following command,
      HTTPServer_installdir/bin/apachectl -k stop -f Remote_configuration_dir/httpconf/httpd.conf
      where
      Path_to_httpd.conf_file
      The path to your WebSphere Commerce or WebSphere Commerce Search httpd.conf file:
      • For WebSphere Commerce: WC_installdir/instances/instance_name/httpconf/httpd.conf
      • For WebSphere Commerce Search: WC_installdir/instances/instance_name/search/solr/home/httpconf/httpd.conf.
      Remote_configuration_dir
      • For WebSphere Commerce: The directory that is specified during instance creation by using the remote IHS option.
      • For WebSphere Commerce Search: If you used either the searchIsConfigViaFTP or searchIsConfigViaNFS option to copy the file to the remote server, the httpd.conf file is copied to the searchRemoteConfigPath path that you specified.
    For IBM i OS operating systemFor IBM i OS operating system For IBM i OS operating system

    Run the following command from an IBM i command line:

    ENDTCPSVR SERVER(*HTTP) HTTPSVR(instance_name)