Este contenido no está disponible en el idioma seleccionado.
Chapter 4. Installing Apache HTTP Server on Solaris
4.1. Download and Extract Apache HTTP Server Copiar enlaceEnlace copiado en el portapapeles!
To install Apache HTTP Server, download and extract the installation ZIP files. Installation can be performed by non-root users if the user account has write access to the intended installation directory.
- Open a browser and log in to the Red Hat Customer Portal JBoss Software Downloads page.
- Select Apache HTTP Server in the Product drop-down menu.
- Select the correct JBoss Core Services version from the Version drop-down menu.
- Find Red Hat JBoss Core Services Apache HTTP Server in the list, ensuring that you select the correct platform and architecture for your system, and click the Download link.
Extract the downloaded ZIP file to your installation directory.
NoteWe recommend that you install Apache HTTP Server in the
/opt/directory.
The jbcs-httpd24-2.4 directory created by extracting the ZIP archive is the top-level directory for Apache HTTP Server. This is referred to in this documentation as HTTPD_HOME.
4.2. Configuring the Apache HTTP Server Installation Copiar enlaceEnlace copiado en el portapapeles!
Some configuration is required before running JBoss Core Services Apache HTTP Server. This section includes the following configuration procedures:
Running the Apache HTTP Server Post-Installation Script
-
On a command line as the root user, change to the
HTTPD_HOME/etcdirectory. Run the following command:
sh .postinstall.httpd
# sh .postinstall.httpdCopy to Clipboard Copied! Toggle word wrap Toggle overflow The post-installation script creates the Apache user and group.
Disabling/Enabling SSL Support
Apache HTTP Server supports SSL by default, but it can be disabled. Follow this procedure to disable or re-enable SSL support.
Go to the
HTTPD_HOME/conf.d/directory and rename the SSL configuration file:-
To disable SSL, rename
ssl.conftossl.conf.disabled. -
To re-enable SSL, rename
ssl.conf.disabledtossl.conf.
-
To disable SSL, rename
4.3. Starting Apache HTTP Server Copiar enlaceEnlace copiado en el portapapeles!
To start Apache HTTP Server, on a command line as root user, change to HTTPD_HOME/sbin/ and issue the following command:
./apachectl start
./apachectl start
4.4. Stopping Apache HTTP Server Copiar enlaceEnlace copiado en el portapapeles!
To stop Apache HTTP Server, on a command line as root user, change to HTTPD_HOME/sbin/, and issue the following command:
./apachectl stop
./apachectl stop
4.5. Running Apache HTTP Server without root access on Solaris (ZIP installation) Copiar enlaceEnlace copiado en el portapapeles!
To run Apache HTTP Server as a non-root user, such as the apache user:
Stop all instances of Apache HTTP Server:
pkill httpd
pkill httpdCopy to Clipboard Copied! Toggle word wrap Toggle overflow Set the
httplisten port to higher than 1024 inHTTPD_HOME/conf/httpd.conf:Listen 2080 ServerName <hostname>:2080
Listen 2080 ServerName <hostname>:2080Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set the
httpslisten port to higher than 1024 inHTTPD_HOME/conf.d/ssl.conf:Listen 2443
Listen 2443Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the ownership of the
logsdirectory:chown -R apache:apache HTTPD_HOME/logs/
chown -R apache:apache HTTPD_HOME/logs/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the ownership of the
rundirectory:chown -R apache:apache HTTPD_HOME/var/run/
chown -R apache:apache HTTPD_HOME/var/run/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that
httpdis only running under theapacheuser, not therootandapacheusers:Copy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantTo prevent unauthorized access or modification of files and directories by website users and to prevent unwanted changes to Apache HTTP Server configuration files, limit the file permissions of the
apacheuser .