Oracle B12255-01 Manuale Utente

Pagina di 224
Oracle HTTP Server Processing Model
4-2
Oracle HTTP Server Administrator’s Guide
Oracle HTTP Server Processing Model
Once Oracle HTTP Server is started, the system is ready to listen for and respond to
http(s) requests. The request processing model is different on UNIX and Windows.
After installation, the main httpd parent process, as well as the child processes, run
as the user who installed Oracle Database. The
 and
 directive are used
to set the privileges for the child processes. These directives are ignored if you are
not running as root.The child processes must be able to read all the content that
will be served.
Running Oracle HTTP Server as Root
On UNIX, you will hare to run as root if you want to run on ports less than 1024.
In order to run Oracle HTTP Server as root, perform the following steps:
1.
Shutdown Oracle HTTP Server using the following command:
UNIX: ORACLE_HOME/opmn/bin> opmnctl [verbose] stopproc
ias-component=HTTP_Server
Windows: ORACLE_HOME\opmn\bin> opmnctl [verbose] stopproc
ias-component=HTTP_Server
2.
Change to root user. Navigate to ORACLE_HOME/Apache/Apache/bin on
UNIX or ORACLE_HOME\Apache\Apache\bin on Windows and execute the
following command:
chown root .apachectl
chmod 6750 .apachectl
3.
Exit root.
4.
Restart Oracle HTTP Server using the following command:
UNIX: ORACLE_HOME/opmn/bin> opmnctl [verbose] restartproc
ias-component=HTTP_Server
Windows: ORACLE_HOME\opmn\bin> opmnctl [verbose]
restartproc ias-component=HTTP_Server
On Windows, Oracle HTTP Server launches a single parent process and one child
process. The child process creates multiple threads that listen and respond to client
requests.
You must decide how you want to set Oracle HTTP Server to handle processes or
threads.