IAC 2024 - IA Fast Track to Search Focused AI Solutions
Apache
1. Webserver Maintenance & Security
Apache httpd v2.2.21 released 9-13-2011
Httpd stands for: Hypertext Transfer Protocol Daemon
Apache 2.3.11-alpha is available for testing
License: Apache License, Version 2.0 similar to GPL (General Public License)
538 Apache modules available to customize your installation
Apache.org
Available Web Servere Software
#1 - Apache
#2 - Microsoft Internet Information Services (IIS)
Sun Microsystems' Sun Java System Web Server (now Oracle)
Zeus Web Server
Others...
Is Apache already installed?
httpd -v
OR
/usr/sbin/httpd -v
Install Apache
su
yum install httpd
Is Apache running?
/sbin/service httpd status
Start Apache
/sbin/service httpd start
Having trouble? Try this: setsebool -P allow_execstack on
How to disable SELinux
Start Apache automatically at system boot
/sbin/chkconfig --level 3 httpd on
If that doesn't work (didn't work for me), add these lines to the /etc/rc.local file:
# Startup Apache at system startup
/sbin/service httpd start
Automating Program Startup
Test Apache
IP address: 127.0.0.1
Basic Apache Configuration
Edit /etc/httpd/conf/httpd.conf - Step by step
Admin email address:
ServerAdmin admin@example.com
Domain Name
ServerName example.com
Location of webpage files
DocumentRoot /var/www/example.com
Network Time Protocol (NTP)
Restart Apache to read the new settings
su -
/sbin/service httpd restart
Modules - 538 to choose from
Two types:
Built-in - compiled into the Apache build.
Loadable - can be loaded on and off as required
View currently used modules
httpd -l
LoadModule command
508 Apache modules
Installed modules: /usr/lib/httpd/modules
Secure Apache Server
Authentication
.htpasswd
.htaccess
See additional authentication modules HERE
yum install mod_ssl
Install SSL - Security Certificates for secure connections
yum install openss
Certificate Signing - Verisign.com, GoDaddy.com, Digicert.com, others...
Secure a virtual host
Online Apache tutorials
Official Apache HTTP Server Documentation Version 2.2
XenoCafe.com
Getting Started with Apache
Upgrade
A little extra:
Best webserver stuff - video
Analytics - from Google
Splunk.com - Real time security monitor
Dedoimedo.com - Apache text