Solved

Building Apache Modules in C on Windows

Posted on 2002-06-11
2
195 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
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…

751 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