Httpd Installation: Difference between revisions
Jump to navigation
Jump to search
(→Mac) |
|||
Line 58: | Line 58: | ||
brew install ? | brew install ? | ||
</pre> | </pre> | ||
=Windows= | =Windows= |
Revision as of 00:06, 2 January 2017
Internal
RHEL
Compilation
Installation
yum install httpd
Post-Installation
Make httpd dependent on network services
For systemd, it is possible that httpd starts before the network, so the process does not find the network interfaces it needs. Symptoms are similar to:
Jan 06 21:09:04 now510.local httpd[806]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 1.2.3.4:80 Jan 06 21:09:04 now510.local httpd[806]: no listening sockets available, shutting down
The solution is to declare httpd's dependency on network services. For details on how to do that, see how to declare a service dependency.
Prevent Access to the cgi-bin Script
Specify Require all denied in:
<Directory "/var/www/cgi-bin"> AllowOverride None Options None Require all denied </Directory>
Configure httpd to Start at Boot
systemctl enable httpd
Start and Smoke
Start the instance and make sure it starts fine with the default configuration.
Mac
brew install ?
Windows
- Download the installer
- Install on port 80, as a service
- Install in C:/httpd-2.2.22 ...
- Configure the service to start manually (by default it starts automatically)
- Manually start/stop the service