Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

finding apache build options

Tags:

apache

I need to rebuild an apache server, but the original source is no longer available. Is there any way ( command line switch to httpd? ) to get the build options which were originally used?

like image 203
Matthew Watson Avatar asked Sep 26 '08 00:09

Matthew Watson


2 Answers

Try -V which "Print the version and build parameters of httpd, and then exit."

httpd -V

Also, you can see the options for httpd via:

httpd -h
like image 200
David Schlosnagle Avatar answered Oct 13 '22 10:10

David Schlosnagle


I found previous configure options in the build directory of apache root.

I'm a Centos 5/6 user.

Apache ver. is 2.2.27.

apachedir/build/config.nice

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr/local/apache2" \
"--enable-so" \
"--enable-mods-shared=most" \
"--enable-ssl" \
"--with-mpm=worker" \
"--enable-cgi" \
"$@"
like image 39
kyle Avatar answered Oct 13 '22 08:10

kyle