Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

"The version of Apache 2.0 that ships with some operating systems, including some versions of Solaris and Linux, is compiled with the following flags: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 "

How can i detect this ? Is there a way to query Solaris that installed apache is compiled in that way or not ?


share|improve this question
Why do you need to know this? – Iain May 13 '12 at 7:59
I have istalled weblogic ,created a cluster and weblogic provides a plugin for apache in order to have some kind of software loadbalancer...there are tow versions of plugins for largefile support and the docs they specify to use one of them according to your needs ,system... – Cris May 13 '12 at 8:02
now i tried both and the plugin for that supports large file works only but that was trial and error like not a way of detecting how it was compiled – Cris May 13 '12 at 8:03
up vote 2 down vote accepted

You could try running apache with the -V option which will print the build options this may contain what you want e.g. on an old Solaris 10 vm I have to hand it would be

/usr/apache2/bin/httpd -V
share|improve this answer
response is : no sign of large file support ..but if tha works i used that one.However I hate "belive and do not research" thing..:) – Cris May 13 '12 at 8:48
as info this is how i star apache : svcadm -v enable /network/http:apache2 and thios is how i stop: svcadm disable /network/http:apache2 is there any better way ? cheers. – Cris May 13 '12 at 8:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.