Solved

Building Apache Modules in C on Windows

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
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 …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now