Starting and stopping the IBM HTTP Server
Perform the following steps to start or stop your IBM HTTP Server.
Before you begin
- For more information about configuring IBM HTTP Server for WebSphere Commerce, see IBM HTTP Server tasks.
- For more information about configuring IBM HTTP Server for WebSphere Commerce Search, see Configuring the WebSphere Commerce Search web server.
Procedure
-
To start your web server:
Option Description - 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,
whereHTTPServer_installdir/bin/apache.exe -k start -f Remote_configuration_dir/httpconf/httpd.conf
- 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.- 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,
whereHTTPServer_installdir/bin/apachectl -k start -f Remote_configuration_dir/httpconf/httpd.conf
- 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.
Run the following command from an IBM i command line:
STRTCPSVR SERVER(*HTTP) HTTPSVR(instance_name)
- On local IHS, run the following
command,
-
To stop your Web server:
Option Description - 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,
whereHTTPServer_installdir/bin/apache.exe -k stop -f Remote_configuration_dir/httpconf/httpd.conf
- 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.- 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,
whereHTTPServer_installdir/bin/apachectl -k stop -f Remote_configuration_dir/httpconf/httpd.conf
- 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.
Run the following command from an IBM i command line:
ENDTCPSVR SERVER(*HTTP) HTTPSVR(instance_name)
- On local IHS, run the following
command,