[us...@httpd] Hot to write/deploy my Service under httpd

2009-05-15 Thread Zheng, Wenxing (NSN - CN/Beijing)
 
Hello all,

I am a newbie to httpd.
I wanna write my service based on the xml over https and deploy it 
under the httpd. 

can anyone give me some hints.
BTW, my service is written in C++.

Best regards, 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Configuration Apache2.2, tomcat 5.5 and servlets

2009-05-15 Thread Hracek, Petr
Hello *,
 
When the servlet is stored in /srv/www/tomcat55/base/webapps/
and I am inserting in to the
http://localhost:8080/SecM/servlet/DatumServlet then it works.
The same servlet is stored in directory /opt/secm/servlet
but when I used to https://localhost/SecM/servlet/DatumServlet but it is
not working.
 
Output of mod_jk.log is:
 
init_ws_service::mod_jk.c (932): Service protocol=HTTP/1.1 method=GET
host=(null) addr=10.6.254.18 name=10.6.4.20 port=443 auth=(null)
user=(null) laddr=10.6.4.20 raddr=10.6.254.18
uri=/SecM/servlet/DatumServlet
ajp_get_endpoint::jk_ajp_common.c (2922): acquired connection pool
slot=0 after 0 retries
ajp_marshal_into_msgb::jk_ajp_common.c (605): ajp marshaling done
ajp_service::jk_ajp_common.c (2246): processing ajp13 with 2 retries
ajp_send_request::jk_ajp_common.c (1461): (ajp13) all endpoints are
disconnected.
jk_open_socket::jk_connect.c (451): socket TCP_NODELAY set to On
jk_open_socket::jk_connect.c (575): trying to connect socket 18 to
127.0.0.1:8009
jk_open_socket::jk_connect.c (601): socket 18 connected to
127.0.0.1:8009
ajp_unmarshal_response::jk_ajp_common.c (660): status = 404
ajp_unmarshal_response::jk_ajp_common.c (667): Number of headers is = 2
ajp_unmarshal_response::jk_ajp_common.c (723): Header[0] [Content-Type]
= [text/html;charset=utf-8]
ajp_unmarshal_response::jk_ajp_common.c (723): Header[1]
[Content-Length] = [1030]
ajp_process_callback::jk_ajp_common.c (1806): AJP13 protocol: Reuse is
OK
ajp_reset_endpoint::jk_ajp_common.c (743): (ajp13) resetting endpoint
with sd = 18
ajp_done::jk_ajp_common.c (2850): recycling connection pool slot=0 for
worker ajp13
jk_handler::mod_jk.c (2460): Service finished with status=404 for
worker=ajp13
 
server.xml file is:



 

 


 





When I am enabling port 443 than in /var/log/tomcat55/catalina.out is
shown that /usr/share/tomcat55/.keystore is not on the system.
 
In apache2 conf file:

JkWorkersFile /etc/tomcat55/workers.properties
#JkExtractSSL off
#
JkLogFile /var/apache/logs/mod_jk.log
 debug, warn, error and emerg
JkLogLevel debug
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
#



...
...

JkMount /SecM/servlet/* ajp13



 
Can you anybody help me?
 
regards
Petr Hracek
 

 
 


RE: [us...@httpd] Configuration Apache2.2, tomcat 5.5 and servlets

2009-05-15 Thread Hracek, Petr
I forgott to mentioned the when I am trying to open 
https://localhost/SecM/servlet/DatumServlet
then HTTP 404 could not open page is shown
regards / S pozdravem
Petr Hráček
 



From: Hracek, Petr [mailto:petr.hra...@siemens-enterprise.com] 
Sent: Friday, May 15, 2009 9:58 AM
To: users@httpd.apache.org
Subject: [us...@httpd] Configuration Apache2.2, tomcat 5.5 and servlets


Hello *,
 
When the servlet is stored in /srv/www/tomcat55/base/webapps/
and I am inserting in to the http://localhost:8080/SecM/servlet/DatumServlet 
then it works.
The same servlet is stored in directory /opt/secm/servlet
but when I used to https://localhost/SecM/servlet/DatumServlet but it is not 
working.
 
Output of mod_jk.log is:
 
init_ws_service::mod_jk.c (932): Service protocol=HTTP/1.1 method=GET 
host=(null) addr=10.6.254.18 name=10.6.4.20 port=443 auth=(null) user=(null) 
laddr=10.6.4.20 raddr=10.6.254.18 uri=/SecM/servlet/DatumServlet
ajp_get_endpoint::jk_ajp_common.c (2922): acquired connection pool slot=0 after 
0 retries
ajp_marshal_into_msgb::jk_ajp_common.c (605): ajp marshaling done
ajp_service::jk_ajp_common.c (2246): processing ajp13 with 2 retries
ajp_send_request::jk_ajp_common.c (1461): (ajp13) all endpoints are 
disconnected.
jk_open_socket::jk_connect.c (451): socket TCP_NODELAY set to On
jk_open_socket::jk_connect.c (575): trying to connect socket 18 to 
127.0.0.1:8009
jk_open_socket::jk_connect.c (601): socket 18 connected to 127.0.0.1:8009
ajp_unmarshal_response::jk_ajp_common.c (660): status = 404
ajp_unmarshal_response::jk_ajp_common.c (667): Number of headers is = 2
ajp_unmarshal_response::jk_ajp_common.c (723): Header[0] [Content-Type] = 
[text/html;charset=utf-8]
ajp_unmarshal_response::jk_ajp_common.c (723): Header[1] [Content-Length] = 
[1030]
ajp_process_callback::jk_ajp_common.c (1806): AJP13 protocol: Reuse is OK
ajp_reset_endpoint::jk_ajp_common.c (743): (ajp13) resetting endpoint with sd = 
18
ajp_done::jk_ajp_common.c (2850): recycling connection pool slot=0 for worker 
ajp13
jk_handler::mod_jk.c (2460): Service finished with status=404 for worker=ajp13
 
server.xml file is:



 

 


 





When I am enabling port 443 than in /var/log/tomcat55/catalina.out is shown 
that /usr/share/tomcat55/.keystore is not on the system.
 
In apache2 conf file:

JkWorkersFile /etc/tomcat55/workers.properties
#JkExtractSSL off
#
JkLogFile /var/apache/logs/mod_jk.log
 debug, warn, error and emerg
JkLogLevel debug
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
#



...
...

JkMount /SecM/servlet/* ajp13



 
Can you anybody help me?
 
regards
Petr Hracek
 

 
 


Re: [us...@httpd] .htaccess force download not working

2009-05-15 Thread Matus UHLAR - fantomas
On 15.05.09 12:21, J. Bakshi wrote:
> I like to force download the pdf and mp3 files from a site. To achieve
> this I have added the line in .htaccess
> 
> AddType application/octet-stream .pdf
> AddType application/octet-stream .mp3
> 
> But it is not working with IE7, opera-9 but sometime firefox honor the
> setting.
> How can I make all browser to honor the setting through .htaccess setting ?

You can not. It's up to the browser what does it do with content it fetched.
Apparently IE7 does file type autodetection (IE is known to do that) and
does whatever it wants.

You could however try "Content-Disposition: attachment" header to hint the
browser how the file should be handled.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] [SOLVED] .htaccess force download not working

2009-05-15 Thread J. Bakshi
Matus UHLAR - fantomas wrote:
> On 15.05.09 12:21, J. Bakshi wrote:
>   
>> I like to force download the pdf and mp3 files from a site. To achieve
>> this I have added the line in .htaccess
>>
>> AddType application/octet-stream .pdf
>> AddType application/octet-stream .mp3
>>
>> But it is not working with IE7, opera-9 but sometime firefox honor the
>> setting.
>> How can I make all browser to honor the setting through .htaccess setting ?
>> 
>
> You can not. It's up to the browser what does it do with content it fetched.
> Apparently IE7 does file type autodetection (IE is known to do that) and
> does whatever it wants.
>
> You could however try "Content-Disposition: attachment" header to hint the
> browser how the file should be handled.
>
>   

Thanks for your hint. The following config solved my problem :-)



  ForceType application/octet-stream
  Header set Content-Disposition attachment

```



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Where is the HOW-TO for creating a FIPS 140-2 Apache 2.2.x ?

2009-05-15 Thread Sam theman

Hello,

I can install the openssl FIP version, but how do you config apache and mod_ssl 
to build and use FIPS ?

Sam

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Re: [us...@httpd] Problem with mod_rewrite proxy for .asp DirectoryIndex

2009-05-15 Thread Eric Covener
On Fri, May 15, 2009 at 11:34 AM, S.A. Birl
 wrote:
> Hello all:
> 1) If I browse to http://127.0.0.0/sbirl/ASP/  I get the ASP source
>   code

Is this because the ASP also lives in your Apache docroot?

>
> 2) If I browse to http://127.0.0.1/sbirl/ASP/default.asp, it proxies
>   like it should

>
> Without NoSubReq
>
> 3) If I browse to http://127.0.0.0/sbirl/  mod_rewrite tries to proxy
>   http://127.0.0.0/sbirl/ASP/default.asp  as
>   http://192.168.166.120/sbirl/default.asp -- giving back a proper 404

Can you elabaorate on where the "ASP" in the path comes from and why
it's (properly?) dropped?

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Port number for DCP?

2009-05-15 Thread Justin Zhang
What port number is for DCP traffic type? Justin


Re: [us...@httpd] Port number for DCP?

2009-05-15 Thread Evan Platt

At 10:12 AM 5/15/2009, you wrote:

What port number is for DCP traffic type? Justin


DCP?  Do you mean DHCP?

If you mean DHCP, this has nothing to do with Apache, and a quick 
google search of 'what port does DCHP use' will tell you. 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Port number for DCP?

2009-05-15 Thread Frank Gingras

Justin,

I think it's fair to say that you abused this list long enough already.

Besides, did you even bother to do a simple google search? How is your 
question even related to apache, or the httpd project?


Frank.

Justin Zhang wrote:

What port number is for DCP traffic type? Justin


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Port number for DCP?

2009-05-15 Thread Justin Zhang
DLink router support told me there are two traffic types ADP and DCP? and
what is the port number is used for DCP?

On Fri, May 15, 2009 at 10:14 AM, Evan Platt wrote:

> At 10:12 AM 5/15/2009, you wrote:
>
>> What port number is for DCP traffic type? Justin
>>
>
> DCP?  Do you mean DHCP?
>
> If you mean DHCP, this has nothing to do with Apache, and a quick google
> search of 'what port does DCHP use' will tell you.
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] Port number for DCP?

2009-05-15 Thread Frank Gingras

UDP, and TCP. www.google.com

Frank.

Justin Zhang wrote:
DLink router support told me there are two traffic types ADP and DCP? 
and what is the port number is used for DCP?


On Fri, May 15, 2009 at 10:14 AM, Evan Platt > wrote:


At 10:12 AM 5/15/2009, you wrote:

What port number is for DCP traffic type? Justin


DCP?  Do you mean DHCP?

If you mean DHCP, this has nothing to do with Apache, and a quick
google search of 'what port does DCHP use' will tell you.

-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org

 "   from the digest: users-digest-unsubscr...@httpd.apache.org

For additional commands, e-mail: users-h...@httpd.apache.org





-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Port number for DCP?

2009-05-15 Thread Evan Platt

At 10:17 AM 5/15/2009, you wrote:
DLink router support told me there are two traffic types ADP and 
DCP? and what is the port number is used for DCP?


You misunderstood them. There's TCP and UDP traffic,assuming that's 
what they're talking about.


This has nothing to do with Apache.

Ask D-link, or use google. 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] After restart Vista, working Apache 2.2.11 stopped working, reinstall, google, etc to no avail

2009-05-15 Thread Abel Braaksma

Hi all,

system: Windows Vista Business, latest SP's, Apache HTTPd 2.2.11, MSI 
installation.


I've had a long-running well-working Apache, no problems, changed some 
configs today and restarted Apache and all was fine and dandy. Then I 
installed a new video driver today and after restart, Apache didn't 
start at all anymore with the following message in error.log:


[notice] Apache/2.2.11 (Win32) configured -- resuming normal operations
[notice] Server built: Dec 10 2008 00:10:06
[crit] (22)Invalid argument: Parent: Failed to create the child process.
[crit] (OS 6)The handle is invalid.  : master_main: create child process 
failed. Exiting.

[notice] Parent: Forcing termination of child process 36

I tried the following things already and spent the better part of today 
trying to resolve this, to no avail:


- restarted, re-installed and minimized the configuration to the bare 
essentials (no php, perl etc)

- rollback to last restore point, so driver issues should be gone
- disabled (exited!) any firewall, virus scanner, windows protection
- tried several ways of reinstallation, each time completely removing 
old installation. Previously, a basic install worked on my system

- google didn't give me new ideas
- cleared arp, flushed dns, tried other ports then port 80
- checked configuration with httpd -t .
- ran httpd with -e debug (output from error.log below).
- used SysInternals tools to check for any access denies or other weird 
things, but nothing of a sort


I'm running out of ideas. I don't know what "Invalid argument" means 
here. Though I am a programmer, I have not yet tried to install the 
source or tried to debug, it seemed to daunting.


Any help, hints, pointers would be greatly appreciated!

Thanks,

-- Abel --

PS: this question was also asked at experts-exchange, but got little 
response:


The full log from httpd -k start -l debug:

Starting the Apache2.2 service
The Apache2.2 service is running.
mod_so.c(246): loaded module actions_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module alias_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module asis_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
auth_basic_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
authn_default_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
authn_file_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
authz_default_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
authz_groupfile_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
authz_host_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
authz_user_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
autoindex_module

[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module cgi_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module dir_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module env_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
include_module

[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module isapi_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
log_config_module

[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module mime_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
negotiation_module
[Fri May 15 19:56:42 2009] [debug] mod_so.c(246): loaded module 
setenvif_module
[Fri May 15 19:56:43 2009] [notice] Apache/2.2.11 (Win32) configured -- 
resuming normal operations

[Fri May 15 19:56:43 2009] [notice] Server built: Dec 10 2008 00:10:06
[Fri May 15 19:56:43 2009] [crit] (22)Invalid argument: Parent: Failed 
to create the child process.
[Fri May 15 19:56:43 2009] [crit] (OS 6)The handle is invalid.  : 
master_main: create child process failed. Exiting.
[Fri May 15 19:56:43 2009] [notice] Parent: Forcing termination of child 
process 36





-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] After restart Vista, working Apache 2.2.11 stopped working, reinstall, google, etc to no avail

2009-05-15 Thread William A. Rowe, Jr.
Abel Braaksma wrote:
> Hi all,
> 
> system: Windows Vista Business, latest SP's, Apache HTTPd 2.2.11, MSI
> installation.
> 
> I've had a long-running well-working Apache, no problems, changed some
> configs today and restarted Apache and all was fine and dandy. Then I
> installed a new video driver today and after restart, Apache didn't
> start at all anymore with the following message in error.log:
> 
> [crit] (22)Invalid argument: Parent: Failed to create the child process.
> [crit] (OS 6)The handle is invalid.  : master_main: create child process
> failed. Exiting.
> [notice] Parent: Forcing termination of child process 36

> 
> I'm running out of ideas. I don't know what "Invalid argument" means
> here. Though I am a programmer, I have not yet tried to install the
> source or tried to debug, it seemed to daunting.

You shouldn't need to, we hope.  Note this code is in
http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
and the only arguments that can be corrupted are the cmd we build for
the child, the args to the cmd, the environment, and process attributes
(program type, standard input/output handles etc).

So your driver busted something; the question is, what?  Since we didn't
create it, you can presume we have no interest in debugging it :)  But
here's just a smattering of things that might help;

Lingering, corrupted system environment variables?

Permissions of the system account?  (Try changing the service to 'Logon As'
another user who you create and set up with Write permissions to the logs/
directory.)

Corrupted msvcrt.dll?

Corrupted service?  Might have to uninstall the service, reboot, then
manually delete this key;
HKLM\System\CurrentControlSet\Services\[service name]
and reinstall the service.

> PS: this question was also asked at experts-exchange, but got little
> response:

So much for 'expertise' ;-)  Glad you found a more informed place to ask.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] After restart Vista, working Apache 2.2.11 stopped working, reinstall, google, etc to no avail

2009-05-15 Thread Abel Braaksma

Thanks for the quick reply, William. Some follow-ups:

William A. Rowe, Jr. wrote:

http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
and the only arguments that can be corrupted are the cmd we build for
the child, the args to the cmd, the environment, and process attributes
(program type, standard input/output handles etc).
  


maybe I should install the debugging environment after all, to see what 
passes through there



So your driver busted something; the question is, what?  Since we didn't
create it, you can presume we have no interest in debugging it :)  But
here's just a smattering of things that might help;
  


it wasn't my driver, unfortunately. It was one that was endorsed by 
Microsoft (NVidia) and I did a full rollback of the system to the 
previous situation. The driver had some visual effects on my screen and 
these are all gone, including any (registry/file) changes. I'm more 
afraid that between my last restart (before today) and this one, some 
other stuff got in the way that only manifested itself after this restart...



Lingering, corrupted system environment variables?
  


the normal system envs look ok to me (the ones you get with SET under 
windows). The PATH env does not include Apache, but it didn't include it 
before either.



Permissions of the system account?  (Try changing the service to 'Logon As'
another user who you create and set up with Write permissions to the logs/
directory.)
  


I didn't list it on my first list, but amongst the things I tried was a 
different Admin account, and also (re) installing the whole thing from a 
different account. Permissions seem ok (and from the SysInternal tools, 
I don't see any access violations, actually). The log dir is read/write 
(the error.log gets filled).



Corrupted msvcrt.dll?
  


Haven't checked. Will check now.


Corrupted service?  Might have to uninstall the service, reboot, then
manually delete this key;
HKLM\System\CurrentControlSet\Services\[service name]
and reinstall the service.
  


If you mean the Apache service: it has been removed a couple of times, 
but currently I run it from the command prompt to make the situation as 
simple as possible.





PS: this question was also asked at experts-exchange, but got little
response:



So much for 'expertise' ;-)  Glad you found a more informed place to ask.
  


haha, indeed! I'll remember that next time I'm in dire need :)

Regards,
-- Abel --

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] After restart Vista, working Apache 2.2.11 stopped working, reinstall, google, etc to no avail

2009-05-15 Thread William A. Rowe, Jr.
Abel Braaksma wrote:
> 
> maybe I should install the debugging environment after all, to see what
> passes through there

All you should need are to extract the -symbols.zip .pdb files and use good
old windbg.

>> Corrupted service?  Might have to uninstall the service, reboot, then
>> manually delete this key;
>> HKLM\System\CurrentControlSet\Services\[service name]
>> and reinstall the service.
>>   
> 
> If you mean the Apache service: it has been removed a couple of times,
> but currently I run it from the command prompt to make the situation as
> simple as possible.

So this does fail in command mode?  Wow.

That's impressive :)

Just so you know, some video drivers install apache httpd, and if they are
responsible they use an alternate path and service name.  But perhaps this
one corrupted your environment, and httpd tends to look into that regkey
value for Apache2 to snag defaults, which is why I suggested you delete it.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] After restart Vista, working Apache 2.2.11 stopped working, reinstall, google, etc to no avail

2009-05-15 Thread Abel Braaksma
I tried finding any corresponding httpd.exe and any other Apache entries 
in registry, but none were found. I tried WinDbg with the symbol files, 
but since I don't (yet) have a compilable installation of Apache, I'm 
not sure if this makes any sense. To me it doesn't. It errors out early 
(much earlier then in a normal run) and I don't seem to be able to jump 
over (must say, I am more of a Visual Studio guy then a WindDbg guy).


Anyway, just in the event that this makes more sense to you then it does 
to me, and in the event that you still want to spend some time on this 
issue, here's the output from starting Apache + symbols from WinDbg:


CommandLine: "C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\httpd.exe" -k start -l debug
Symbol search path is: C:\Program Files\Apache Software 
Foundation\Apache2.2\bin;C:\Program Files\Apache Software 
Foundation\Apache2.2\modules

Executable search path is:
ModLoad: 0040 00406000   httpd.exe
ModLoad: 7766 77787000   ntdll.dll
ModLoad: 7607 7614b000   C:\Windows\system32\kernel32.dll
ModLoad: 6eec 6eee1000   C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\libapr-1.dll

ModLoad: 7618 76246000   C:\Windows\system32\ADVAPI32.dll
ModLoad: 7649 76552000   C:\Windows\system32\RPCRT4.dll
ModLoad: 7641 7643d000   C:\Windows\system32\WS2_32.dll
ModLoad: 7781 778ba000   C:\Windows\system32\msvcrt.dll
ModLoad: 7779 77796000   C:\Windows\system32\NSI.dll
ModLoad: 7555 7558b000   C:\Windows\system32\MSWSOCK.dll
ModLoad: 76a0 7751   C:\Windows\system32\SHELL32.dll
ModLoad: 767f 7683b000   C:\Windows\system32\GDI32.dll
ModLoad: 7656 765fd000   C:\Windows\system32\USER32.dll
ModLoad: 7660 76658000   C:\Windows\system32\SHLWAPI.dll
ModLoad: 6ee6 6ee8f000   C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\libaprutil-1.dll
ModLoad: 6ee5 6ee59000   C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\libapriconv-1.dll
ModLoad: 6ff0 6ff48000   C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\libhttpd.dll

(174c.13a8): Break instruction exception - code 8003 (first chance)
eax= ebx= ecx=0006fb08 edx=776b9a94 esi=fffe 
edi=776bb6f8
eip=776a7dfe esp=0006fb20 ebp=0006fb50 iopl=0 nv up ei pl zr na 
pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= 
efl=0246
*** ERROR: Symbol file could not be found.  Defaulted to export symbols 
for ntdll.dll -

ntdll!DbgBreakPoint:
776a7dfe cc  int 3
0:000> g
ModLoad: 7632 7633e000   C:\Windows\system32\IMM32.DLL
ModLoad: 7634 76408000   C:\Windows\system32\MSCTF.dll
ModLoad: 777a 777a9000   C:\Windows\system32\LPK.DLL
ModLoad: 766e 7675d000   C:\Windows\system32\USP10.dll
ModLoad: 74e3 74fce000   
C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll

ModLoad: 1000 10027000   C:\Windows\system32\guard32.dll
ModLoad: 7751 77654000   C:\Windows\system32\ole32.dll
ModLoad: 75d6 75d68000   C:\Windows\system32\VERSION.dll
ModLoad: 75d5 75d57000   C:\Windows\system32\fltlib.dll
(174c.13a8): Access violation - code c005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00966f90 ebx=002b ecx=002b edx=00969001 esi=00969001 
edi=00966f18
eip=6eec9f0d esp=0006fe58 ebp=0006fe68 iopl=0 nv up ei pl nz ac 
po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= 
efl=00010212
*** WARNING: Unable to verify checksum for C:\Program Files\Apache 
Software Foundation\Apache2.2\bin\libapr-1.dll

libapr_1!warrsztoastr+0x9d:
6eec9f0d 8a16mov dl,byte ptr [esi]  
ds:0023:00969001=??

0:000> g
(174c.13a8): Access violation - code c005 (!!! second chance !!!)
eax=00966f90 ebx=002b ecx=002b edx=00969001 esi=00969001 
edi=00966f18
eip=6eec9f0d esp=0006fe58 ebp=0006fe68 iopl=0 nv up ei pl nz ac 
po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= 
efl=00010212

libapr_1!warrsztoastr+0x9d:
6eec9f0d 8a16mov dl,byte ptr [esi]  
ds:0023:00969001=??





William A. Rowe, Jr. wrote:

Abel Braaksma wrote:
  

maybe I should install the debugging environment after all, to see what
passes through there



All you should need are to extract the -symbols.zip .pdb files and use good
old windbg.

  

Corrupted service?  Might have to uninstall the service, reboot, then
manually delete this key;
HKLM\System\CurrentControlSet\Services\[service name]
and reinstall the service.
  
  

If you mean the Apache service: it has been removed a couple of times,
but currently I run it from the command prompt to make the situation as
simple as possible.



So this does fail in command mode?  Wow.

That's impressive :)

Just so you know, some video drivers install apache httpd, and if they are
responsible

Re: [us...@httpd] After restart Vista, working Apache 2.2.11 stopped working, reinstall, google, etc to no avail

2009-05-15 Thread Tom Evans
On Fri, 2009-05-15 at 21:30 +0200, Abel Braaksma wrote:
> I tried finding any corresponding httpd.exe and any other Apache entries 
> in registry, but none were found. I tried WinDbg with the symbol files, 
> but since I don't (yet) have a compilable installation of Apache, I'm 
> not sure if this makes any sense. To me it doesn't. It errors out early 
> (much earlier then in a normal run) and I don't seem to be able to jump 
> over (must say, I am more of a Visual Studio guy then a WindDbg guy).
> 
> Anyway, just in the event that this makes more sense to you then it does 
> to me, and in the event that you still want to spend some time on this 
> issue, here's the output from starting Apache + symbols from WinDbg:
> 
> CommandLine: "C:\Program Files\Apache Software 
> Foundation\Apache2.2\bin\httpd.exe" -k start -l debug
> Symbol search path is: C:\Program Files\Apache Software 
> Foundation\Apache2.2\bin;C:\Program Files\Apache Software 
> Foundation\Apache2.2\modules
> Executable search path is:
> ModLoad: 0040 00406000   httpd.exe
> ModLoad: 7766 77787000   ntdll.dll
> ModLoad: 7607 7614b000   C:\Windows\system32\kernel32.dll
> ModLoad: 6eec 6eee1000   C:\Program Files\Apache Software 
> Foundation\Apache2.2\bin\libapr-1.dll
> ModLoad: 7618 76246000   C:\Windows\system32\ADVAPI32.dll
> ModLoad: 7649 76552000   C:\Windows\system32\RPCRT4.dll
> ModLoad: 7641 7643d000   C:\Windows\system32\WS2_32.dll
> ModLoad: 7781 778ba000   C:\Windows\system32\msvcrt.dll
> ModLoad: 7779 77796000   C:\Windows\system32\NSI.dll
> ModLoad: 7555 7558b000   C:\Windows\system32\MSWSOCK.dll
> ModLoad: 76a0 7751   C:\Windows\system32\SHELL32.dll
> ModLoad: 767f 7683b000   C:\Windows\system32\GDI32.dll
> ModLoad: 7656 765fd000   C:\Windows\system32\USER32.dll
> ModLoad: 7660 76658000   C:\Windows\system32\SHLWAPI.dll
> ModLoad: 6ee6 6ee8f000   C:\Program Files\Apache Software 
> Foundation\Apache2.2\bin\libaprutil-1.dll
> ModLoad: 6ee5 6ee59000   C:\Program Files\Apache Software 
> Foundation\Apache2.2\bin\libapriconv-1.dll
> ModLoad: 6ff0 6ff48000   C:\Program Files\Apache Software 
> Foundation\Apache2.2\bin\libhttpd.dll
> (174c.13a8): Break instruction exception - code 8003 (first chance)
> eax= ebx= ecx=0006fb08 edx=776b9a94 esi=fffe 
> edi=776bb6f8
> eip=776a7dfe esp=0006fb20 ebp=0006fb50 iopl=0 nv up ei pl zr na 
> pe nc
> cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= 
> efl=0246
> *** ERROR: Symbol file could not be found.  Defaulted to export symbols 
> for ntdll.dll -
> ntdll!DbgBreakPoint:
> 776a7dfe cc  int 3
> 0:000> g
> ModLoad: 7632 7633e000   C:\Windows\system32\IMM32.DLL
> ModLoad: 7634 76408000   C:\Windows\system32\MSCTF.dll
> ModLoad: 777a 777a9000   C:\Windows\system32\LPK.DLL
> ModLoad: 766e 7675d000   C:\Windows\system32\USP10.dll
> ModLoad: 74e3 74fce000   
> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll
> ModLoad: 1000 10027000   C:\Windows\system32\guard32.dll
> ModLoad: 7751 77654000   C:\Windows\system32\ole32.dll
> ModLoad: 75d6 75d68000   C:\Windows\system32\VERSION.dll
> ModLoad: 75d5 75d57000   C:\Windows\system32\fltlib.dll
> (174c.13a8): Access violation - code c005 (first chance)
> First chance exceptions are reported before any exception handling.
> This exception may be expected and handled.
> eax=00966f90 ebx=002b ecx=002b edx=00969001 esi=00969001 
> edi=00966f18
> eip=6eec9f0d esp=0006fe58 ebp=0006fe68 iopl=0 nv up ei pl nz ac 
> po nc
> cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= 
> efl=00010212
> *** WARNING: Unable to verify checksum for C:\Program Files\Apache 
> Software Foundation\Apache2.2\bin\libapr-1.dll
 mmm
> libapr_1!warrsztoastr+0x9d:
> 6eec9f0d 8a16mov dl,byte ptr [esi]  
> ds:0023:00969001=??
> 0:000> g
> (174c.13a8): Access violation - code c005 (!!! second chance !!!)
> eax=00966f90 ebx=002b ecx=002b edx=00969001 esi=00969001 
> edi=00966f18
> eip=6eec9f0d esp=0006fe58 ebp=0006fe68 iopl=0 nv up ei pl nz ac 
> po nc
> cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs= 
> efl=00010212
> libapr_1!warrsztoastr+0x9d:
> 6eec9f0d 8a16mov dl,byte ptr [esi]  
> ds:0023:00969001=??
> 
> 

Knowing nothing about windows debugging, is that normal? Is it possible
that somehow libapr-1.dll has been clobbered/corrupted? Can you extract
the original from the version you installed and compare md5?

Just a shot in the dark.

Cheers

Tom


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the dig

[us...@httpd] ip-based vhost not working

2009-05-15 Thread graham
Hi

I'm having trouble setting up an ip-based vhost. It's something I've
done ok in the past, but this time I just can't get it to work, and have
tried so many variations on the configuration I feel I'm going in circles..

This is a RH4 remotely hosted system with Apache 2.0. It was configured
with one IP address (x.x.x.106) but the provider told me addresses
x.x.x.107-110 were also available. I set up
/etc/sysconfig/network-scripts/eth0:0, eth0:1, eth0:2 and eth0:3 with
the respective IP addresses. ifconfig shows they are available. I can
ping the host on each of the 5 IP addresses.

The vanilla RH apache configuration was working. I set the default
Listen config to '*:80'. I then added a vhost starting

 
...

/usr/sbin/httpd -S shows the vhost configuration has been accepted. But
telnetting to x.x.x.107 gives me the pages from the default apache on
x.x.x.106. The 107 vhost log files have been created, but stay at zero
bytes.I cannot actually access my vhost, either externally or locally.

If I change the configuration to add an explicit:

Listen x.x.x.107:80

apache refuses to restart, giving me the error:

(99)Cannot assign requested address: make_sock: could not bind to
address x.x.x.107:80

Can anyone guess where I'm going wrong? Or suggest a testing procedure
better than flailing around making random changes to configuration files?

Thanks
Graham






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] ip-based vhost not working

2009-05-15 Thread Doug Bell

On May 15, 2009, at 7:43 PM, graham wrote:


Hi

I'm having trouble setting up an ip-based vhost. It's something I've
done ok in the past, but this time I just can't get it to work, and  
have
tried so many variations on the configuration I feel I'm going in  
circles..


This is a RH4 remotely hosted system with Apache 2.0. It was  
configured

with one IP address (x.x.x.106) but the provider told me addresses
x.x.x.107-110 were also available. I set up
/etc/sysconfig/network-scripts/eth0:0, eth0:1, eth0:2 and eth0:3 with
the respective IP addresses. ifconfig shows they are available. I can
ping the host on each of the 5 IP addresses.

The vanilla RH apache configuration was working. I set the default
Listen config to '*:80'. I then added a vhost starting


...

/usr/sbin/httpd -S shows the vhost configuration has been accepted.  
But

telnetting to x.x.x.107 gives me the pages from the default apache on
x.x.x.106. The 107 vhost log files have been created, but stay at zero
bytes.I cannot actually access my vhost, either externally or locally.



Do you have two specific NameVirtualHost lines?
NameVirtualHost x.x.x.106:80
NameVirtualHost x.x.x.107:80

Then make sure that all your  match one or the other.

A NameVirtualHost *:80 will blanket all addresses apache is listening  
on.



If I change the configuration to add an explicit:

Listen x.x.x.107:80

apache refuses to restart, giving me the error:

(99)Cannot assign requested address: make_sock: could not bind to
address x.x.x.107:80


Did you remove the Listen *:80 line? Apache binds to the Listen  
directives in order. so first it binds to *:80, then it tries to bind  
to x.x.x.107:80 (which is already bound to apache) and fails.



Doug Bell -- Senior Developer, Plain Black Corp.
[ http://plainblack.com ]
all that groks is







-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org