Solved

Building Apache Modules in C on Windows

Posted on 2002-06-11
2
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

622 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