Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How is Apache currently compiled?

Status
Not open for further replies.

jongag1

Technical User
Feb 1, 2002
65
NL
Is it somehow possible to find out how my current Apache (version 2.0.40) is compiled/installed?

I want to upgrade to the latest version and was hoping there might be something like php has with phpinfo() which displays the current config.

I looked at and unfortunately I don't have the source tree from my last installation for the config.nice file. I tried upgrading with only the configure command and it installed Apache in a different folder and I guess it is not a good idea to have 2 apaches running at the same time (for testing by the way it is okay!).

Regards,
Age de Jong
 
You can find out what modules have been compiled in by typing "httpd -l" or get a little more info with "httpd -V".
 
Tnx RhythmAce! I now have some more information.
Unfortunately I am not ablo to upgrade the running version.
There are many (symbolic) links to other paths, which is making it unclear for me what to do...

I extracted the latest Apache version in /tmp/httpd-2.0.48
I know I am not good at this... As mentioned above I was able to get the new version running at a different location but there php isn't working.

Why is it so hard to upgrade... In other words is somebody willing to give me some guidelines (step by step because I am a newbie)?

httpd -l gave me:
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

httpd -V gave me:
Server version: Apache/2.0.40
Server built: Jul 31 2003 11:36:14
Server's Module Magic Number: 20020628:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

If more information is needed please let me know.

Regards,
Age de Jong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top