Chapter 3. Installing JBoss Core Services Apache HTTP Server on Microsoft Windows
3.1. Download and Extract Apache HTTP Server Copy linkLink copied to clipboard!
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
C:\Program Files
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
.
3.2. Configuring the Apache HTTP Server Installation Copy linkLink copied to clipboard!
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
-
At the Command Prompt as an administrative user, change to the
HTTPD_HOME\etc
directory. Run the following command:
call postinstall.httpd.bat
call postinstall.httpd.bat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Installing the Apache HTTP Server Service
By default, Apache HTTP Server is configured to use port 80. If you have Microsoft IIS installed, ensure that you disable or reconfigure it to avoid port conflicts:
-
Stop the
World Wide Web…
service, and change theStartup Type
toManual
. - Configure IIS to use different ports.
Alternatively, you can edit httpd.conf
before installing the Apache HTTP Server service and change Listen
to a port that does not conflict with the IIS ports.
-
At the Command Prompt as an administrative user, change to the
HTTPD_HOME\bin
directory. Install the Apache HTTP Server service with the following command:
httpd -k install
httpd -k install
Copy to Clipboard Copied! Toggle word wrap Toggle overflow A Firewall security dialog prompt may appear asking for networking access for Apache HTTP Server. Click Allow to access this service from the network.
Configuring Folder Permissions for the Apache HTTP Server Service
Follow this procedure to ensure that the account used to run the service has full control over the HTTPD_HOME
folder and all of its subfolders:
-
Right-click the
HTTPD_HOME
folder and click Properties. - Select the Security tab.
- Click the Edit button.
- Click the Add button.
-
In the text box, enter
LOCAL SERVICE
. -
Select the Full Control check box for the
LOCAL SERVICE
account. - Click OK.
- Click the Advanced button.
- Inside the Advanced Security Settings dialog, select LOCAL SERVICE and click Edit.
- Select the check box next to the Replace all existing inheritable permissions on all descendants with inheritable permissions from this object option.
- Click OK through all the open folder property windows to apply the settings.
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.conf
tossl.conf.disabled
. -
To re-enable SSL, rename
ssl.conf.disabled
tossl.conf
.
-
To disable SSL, rename
3.3. Starting Apache HTTP Server Copy linkLink copied to clipboard!
You can start the Apache HTTP Server service from the Command Prompt, or with the Computer Management tool.
Starting Apache HTTP Server Using the Command Prompt
At the Command Prompt as an administrative user, start the Apache HTTP Server service with the following command:
net start Apache2.4
net start Apache2.4
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Starting Apache HTTP Server Using the Computer Management Tool
-
Go to Start
Administrative Tools Services. -
In the Services list, right-click the
httpd
service and click Start.
3.4. Stopping Apache HTTP Server Copy linkLink copied to clipboard!
You can stop the Apache HTTP Server service from the Command Prompt, or with the Computer Management tool.
Stopping Apache HTTP Server Using the Command Prompt
At the Command Prompt as an administrative user, stop the Apache HTTP Server service with the following command:
net stop Apache2.4
net stop Apache2.4
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Stopping Apache HTTP Server Using the Computer Management Tool
-
Go to Start
Administrative Tools Services. -
In the Services list, right-click the
httpd
service and click Stop.