httpd is the Apache HyperText Transfer Protocol (HTTP) server program. In order to find out apache version login to server using ssh. Once logged in type the following command to print the version of httpd, and then exit:
Sample output:
Code: Select all
Server version: Apache/2.2.3
Server built: Oct 28 2008 07:22:45
Output a list of modules compiled into the server:
This will not list dynamically loaded modules included using the LoadModule directive. To dump a list of loaded Static and Shared Modules:
Print the version and build parameters of httpd, and then exit
To view other configuration settings open httpd.conf file (usually located in /etc/httpd directory). Red hat, CentOS and Fedora stores httpd at the following location:
Debian and Ubuntu stores httpd.conf in apache2.conf file at the following location:
FreeBSD stores apache2.2 configuration at the following location:
Code: Select all
# vi /usr/local/etc/apache22/httpd.conf
If you made any changes to httpd.conf, check httpd syntax for error using the -t option: