Web Servers General Talk - Where's the logon password in Apache?

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > January 2004 > Where's the logon password in Apache?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Where's the logon password in Apache?
Peter Chatterton

2004-01-19, 6:32 am

I want to use jdb for debugging a servlet.

I'm using Apache/JServ with jdk 1.4 (via Textpad on win2K SP 3).

The 'gospel' I'm using is:
'Start the server manually and record the password for remote debugging
(this is displayed on the console).'
'Start the Java debugger:'
'jdb -host your_host -password the_password'
'You should be able to debug your Java classes now using the jdb
command.'


My problem is that I can't find the password from Apache.
I normally start/restart apache as a windows Service.
If I start it from DOS I get:
'C:\orant9i\Apache\Apache>apache -k start'
'Oracle HTTP Server Powered by Apache/1.3.12 (Win32) ApacheJServ/1.1
mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.24 running...'


I've searched the log, conf & property files but can't find any password.
I've also searched the Apache website for 'jdb' without luck.
I've printed out (and read!) the 'Using Apache with MS Windows' manual.


I did a Google:
--Someone suggested starting Apache using using the -X flag, but I don't
seem to have this option.
--Someone else suggested changing jvm12.conf, but I don't have one.

Thanks,
Peter.

Posted to comp.lang.java and
comp.infosystems.www.servers.misc


w_ashley

2004-01-19, 6:32 am

A quick google search revieled a sum of information
http://www.duglug.org/Presentations...tion4/img4.html may be of
intrest to you and overviews LINUX os it seems although it may be the
same process equivlent on other os's.

Note it looks like a pretty good tutorial as well.

starts here
http://www.duglug.org/Presentations...tion4/img0.html

a google search such as
http://www.google.ca/search?hl=en&i...le+Search&meta=

reveals quite abit of information

How I see this as it is playing out is that if you do not yet have a
password file /directory for apache then you can make one
/usr/lib/apache/passwords

there are countless more pages out there and you may need to refine
the search for the specific program request. It so far seems that you
can make an apache password location

specifically to Java You can attach to and debug any process running
JavaVM 1.2.2 or newer(with a few exceptions) as long as it is started
with valid debug flags such as "-Xdebug -Xrunjdwp:...."

note that I'm not really familiar with Java debuging for apache so I
can't verify any of the info.

These are the steps that filled out for me
contstruct a password using the first link tutorial which seems to be
..htaccess
afterwhich the other steps if this doesn't solve it
make your own dir eitehr at the /usr..pass etc.. and see if or where a
check reference would be in your config files...

finally it is using the Java detaching so that passes arn't needed.

I'm geussing the first step should solve it after taht point it goes
more and more out of my realm of "understanding" can anyone here clean
up my post maybe and give some solid infos.
Peter Chatterton

2004-01-19, 6:32 am

Thanks for the info.

With some (lots of) help from the Sun Java Technology Forums, I got to debug
my servlet by modifying jserv.properties and running jdb.
And without using any passwords (they're obsolete).
It's all at:
http://forum.java.sun.com/thread.js...7&thread=477412

Peter.

"w_ashley" <w_ashley@sympatico.ca> wrote in message
news:938666a1.0312301929.674112d2@posting.google.com...
quote:

> A quick google search revieled a sum of information
> http://www.duglug.org/Presentations...tion4/img4.html may be of
> intrest to you and overviews LINUX os it seems although it may be the
> same process equivlent on other os's.
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com