Solved

Building Apache Modules in C on Windows

Posted on 2002-06-11
2
186 Views
Last Modified: 2010-03-04
I'm new to building Apache modules in C on Windows. It seems that most of the examples out there require something called "APXS", which doesn't seem to be available on Windows.

Does anyone know if there is a port or if there is something else that I can use? I'm sure I can get the code to compile and generate a .dll (although apache for windows uses .so files), but I'm not sure it would even work.

Thanks,
Frank
0
Comment
Question by:magenta
2 Comments
 
LVL 15

Accepted Solution

by:
samri earned 50 total points
ID: 7072298
Frank,

Unfortunately, there is not that straight forward.  I personally haven't try to do that on Win32 platform.  I would suspect that you could do that with with Cygwin  tools.

Some information at Cygwin's website;

http://www.cygwin.com/ported.html

Some stuff that is related to Apache;
http://apache.dev.wapme.net/

Other than that, I would suspect that you need to have you favorite C compiler (or use the Cygwin stuff), and grab the source code for apache from;
http://www.apache.org/dist/httpd/

And build the stuff.
http://httpd.apache.org/docs/

More links;
http://httpd.apache.org/docs/cygwin.html
http://httpd.apache.org/docs/dso.html

Bottom line is, the default Win32 Apache doesn't come with apxs to build DSO modules.  Most of the steps the I proposed would get you the apxs, but still the Cygwin tools (gcc and libs), or C compiler is required to buildl the modules.

One quick fix is to totally work in Unix environment, or hunt for precompiled modules that is is lying around on the net.  http://modules.apache.org/ would be a good place to start.

cheers.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 9690951
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:

Answered by Samri

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

periwinkle
EE Cleanup Volunteer
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question