Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Building Apache Modules in C on Windows

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
magenta
Asked:
magenta
1 Solution
 
samriCommented:
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
 
periwinkleCommented:
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now