Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: apxs.bat can not find httpd.exe |
|
Author |
|
bajaexplorer
Joined: 05 Oct 2010 Posts: 7
|
Posted: Tue 05 Oct '10 18:12 Post subject: apxs.bat can not find httpd.exe |
|
|
win - xampp sys configuration.
path to bin is correct: c:\xampp\apache\bin (it finds apxs.bat)
trying to install mod via: apxs -c -i -a mod_httpbl.c
httpd.exe is in bin and exe... Server is running.
----
error (exactily as shown on screen, including quotes):
apxs:Error: "C:\xampp\apache\bin\"\httpd.exe not found or not executable. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 05 Oct '10 21:39 Post subject: |
|
|
I hate apxs
however, during install (Configure.pl), it looks like you may have given it a trailing backslash in path to httpd.exe
Everything should be stored in
c:\xampp\apache\build\config_vars.mk
open it and look at everything that points to
c:\xampp\apache\bin
make sure there are no trailing backslashes
as far as building mod_httpbl .... I wish you luck. |
|
Back to top |
|
bajaexplorer
Joined: 05 Oct 2010 Posts: 7
|
Posted: Tue 05 Oct '10 22:09 Post subject: |
|
|
No, none of the paths defined in config_vars.mk have a trailing slash and speficaly "c:\xampp\apache\bin" does not.
From the way you sound, will have trouble building mod_httpbl.c
Should I even try? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 05 Oct '10 23:26 Post subject: |
|
|
not unless you are very good at C and know how to work around unix/win compatibility problems. Then again there may be no problems using MinGW, I was using MS VC++.
I'm not very good at C therefore not very good at unix/win compatibility, I tried and I died I was bummed till I started thinking about the implications of the module checking a BL on some server somewhere all the time and how much it could slow down responses.
as far as apxs, looking at the code in apxs.bat, $httpd variable is made up of sbindir & progname in config_vars.mk. so does maybe ... ahah
are the lines in config_vars.mk quoted? I do not see how the quotes got in the error message unless they, or one is. looking at your error I would tend to think that sbindir was quoted and does have a trailing slash tho maybe the quotes freaked out File::Spec->catfile to retrn a value in such a way.
if
sbindir = "C:\xampp\apache\bin\"
and
progname = httpd.exe
catfile them together in perl would produce a result of
"C:\xampp\apache\bin\"\httpd.exe
exactly as the error shows.
Not sure if you still care to get apxs working tho. |
|
Back to top |
|
bajaexplorer
Joined: 05 Oct 2010 Posts: 7
|
Posted: Wed 06 Oct '10 0:55 Post subject: |
|
|
Just quick response... will look at what you mentioned.
30yrs of c++ programing on QNX. Saying that I have not really programmed in 10yrs.
Will still try, but I really do not care to get to deep into it code. |
|
Back to top |
|
|
|
|
|
|