Using opmnctl to Start Oracle HTTP Server

Getting Started with Oracle HTTP Server 4-5

4.1.4 Restarting Oracle HTTP Server

Restarting Oracle HTTP Server causes the Apache parent process to advise its child processes to exit after their current request or to exit immediately if they are not serving any requests. Upon restarting, the parent process re-reads its configuration files and reopens its log files. As each child process exits, the parent replaces it with a child process from the new generation of the configuration file, which begins serving new requests immediately. The following sections describe how to restart Oracle HTTP Server using Fusion Middleware Control and opmnctl.

4.1.4.1 Using Fusion Middleware Control to Restart Oracle HTTP Server

To restart Oracle HTTP Server using Fusion Middleware Control: 1. Navigate to the Oracle HTTP Server home page.

2. Select the Control from the Oracle HTTP Server menu.

3. Select Restart from the Control menu.

4.1.4.2 Using opmnctl to Restart Oracle HTTP Server

To restart all Oracle HTTP Server components in an Oracle instance using opmnctl: opmnctl restartproc process-type=OHS To restart a specific Oracle HTTP Server component, such as ohs_name, using opmnctl: opmnctl restartproc ias-component=ohs_name To get detailed information about the start process, include the verbose option with the command, as follows: opmnctl verbose restartproc ias-component=ohs_name

4.2 Creating a New Oracle HTTP Server Component

Oracle HTTP Server is not automatically created during installation unless it was selected as a component to be installed. This section describes how to create an Oracle HTTP Server component using opmnctl. You cannot create an Oracle HTTP Server component using Fusion Middleware Control. To create a new Oracle HTTP Server component using opmnctl, use the following command: Note: If your configuration file contains errors, when you issue a restart command, the Apache parent process will not restart; it will exit with an error but it will also leave child processes running when it exits. These are the children that are gracefully exiting by handling their last request. This will cause problems if you attempt to restart Oracle HTTP Server because it will not be able to bind to its listening ports. Therefore, before restarting a server, make sure there are no syntax or semantics errors in the configuration files. 4-6 Oracle Fusion Middleware Administrators Guide for Oracle HTTP Server opmnctl createcomponent -componentType OHS -componentName name For example, to create an Oracle HTTP Server instance named ohs2, use the following command: opmnctl createcomponent -componentType OHS -componentName ohs2 When you create the Oracle HTTP Server component ports are automatically assigned. However, you can use the following parameters to specify the ports of your choice: ■ -listenPort – HTTP listening port ■ -sslPort – HTTPS SSL listening port ■ -proxyPort – Proxy MBean port internally used by Oracle HTTP Server to communicate with Fusion Middleware Control

4.3 Specifying Server Properties

Server properties for Oracle HTTP Server can be set using Fusion Middleware Control or direct editing of the Oracle HTTP Server configuration files. You cannot specify the server properties using opmnctl commands. ■ Using Fusion Middleware Control to Specify Server Properties ■ Editing the httpd.conf File to Specify Server Properties

4.3.1 Using Fusion Middleware Control to Specify Server Properties

To specify the server properties using the Fusion Middleware Control:

1. Select Administration from the Oracle HTTP Server menu.

2. Select Server Configuration from the Administration menu. The Server

Configuration page appears.