Re: [EMAIL PROTECTED] achectl Not Working

2008-11-30 Thread Sander Temme


On Nov 30, 2008, at 11:02 PM, apache123 wrote:





Sander Temme-2 wrote:



On Nov 30, 2008, at 8:20 PM, apache123 wrote:



Hi,
 I tried apachectl command on two Linux hosts where Apache HTTP
Server is
installed. The command is giving result only on one host not on the
other.


What output do you get when you run the apachectl command on the not
updated host (no. 2)?

"When I run command it returns nothing.

Commands excerpt:
[EMAIL PROTECTED] ~]# /usr/sbin/apachectl -v
[EMAIL PROTECTED] ~]# /usr/sbin/apachectl -V
[EMAIL PROTECTED] ~]# /usr/sbin/apachectl help
[EMAIL PROTECTED] ~]# /usr/sbin/httpd -v
[EMAIL PROTECTED] ~]# /usr/sbin/httpd -V
[EMAIL PROTECTED] ~]# /usr/sbin/httpd help


That is most strange: apachectl is a thin wrapper around httpd -k, and  
httpd should return something when invoked in this way.  Could it be  
that it has been replaced by something that behaves differently from  
the way Apache does?


S.


[EMAIL PROTECTED] ~]# ps -ef | grep httpd
root  3950 1  0 Nov25 ?00:00:08 /usr/sbin/httpd
apache   20564  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20565  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20568  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20570  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20572  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20574  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20576  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
apache   20578  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
root 13888 13832  0 08:31 pts/500:00:00 grep httpd
[EMAIL PROTECTED] ~]#
"


1. Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
[ apachectl
working fine ]

2. Red Hat Enterprise Linux AS release 4 (Nahant)   [ apachectl not
working
]



S.

--
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF








--
View this message in context: 
http://www.nabble.com/achectl-Not-Working-tp20765887p20766973.html
Sent from the Apache HTTP Server - Users mailing list archive at  
Nabble.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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF





smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] achectl Not Working

2008-11-30 Thread apache123



Sander Temme-2 wrote:
> 
> 
> On Nov 30, 2008, at 8:20 PM, apache123 wrote:
> 
>>
>> Hi,
>>   I tried apachectl command on two Linux hosts where Apache HTTP  
>> Server is
>> installed. The command is giving result only on one host not on the  
>> other.
> 
> What output do you get when you run the apachectl command on the not  
> updated host (no. 2)?
> 
> "When I run command it returns nothing.
> 
> Commands excerpt:
> [EMAIL PROTECTED] ~]# /usr/sbin/apachectl -v
> [EMAIL PROTECTED] ~]# /usr/sbin/apachectl -V
> [EMAIL PROTECTED] ~]# /usr/sbin/apachectl help
> [EMAIL PROTECTED] ~]# /usr/sbin/httpd -v
> [EMAIL PROTECTED] ~]# /usr/sbin/httpd -V
> [EMAIL PROTECTED] ~]# /usr/sbin/httpd help
> [EMAIL PROTECTED] ~]# ps -ef | grep httpd
> root  3950 1  0 Nov25 ?00:00:08 /usr/sbin/httpd
> apache   20564  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20565  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20568  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20570  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20572  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20574  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20576  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> apache   20578  3950  0 Nov30 ?00:00:00 /usr/sbin/httpd
> root 13888 13832  0 08:31 pts/500:00:00 grep httpd
> [EMAIL PROTECTED] ~]#
> "
> 
>> 1. Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
>> [ apachectl
>> working fine ]
>>
>> 2. Red Hat Enterprise Linux AS release 4 (Nahant)   [ apachectl not  
>> working
>> ]
> 
> 
> S.
> 
> -- 
> Sander Temme
> [EMAIL PROTECTED]
> PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF
> 
> 
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/achectl-Not-Working-tp20765887p20766973.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] achectl Not Working

2008-11-30 Thread Sander Temme


On Nov 30, 2008, at 8:20 PM, apache123 wrote:



Hi,
  I tried apachectl command on two Linux hosts where Apache HTTP  
Server is
installed. The command is giving result only on one host not on the  
other.


What output do you get when you run the apachectl command on the not  
updated host (no. 2)?


1. Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
[ apachectl

working fine ]

2. Red Hat Enterprise Linux AS release 4 (Nahant)   [ apachectl not  
working

]



S.

--
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF





smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] achectl Not Working

2008-11-30 Thread William A. Rowe, Jr.
apache123 wrote:
>  
>  1. Red Hat Enterprise Linux ES release 4 (Nahant Update 6)   [ apachectl 
>  working fine ] 
>  
>  2. Red Hat Enterprise Linux AS release 4 (Nahant)   [ apachectl not working 
>  ] 

Why run such an absurdly old version?  Try updating.

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] achectl Not Working

2008-11-30 Thread apache123

Hi, 
   I tried apachectl command on two Linux hosts where Apache HTTP Server is
installed. The command is giving result only on one host not on the other. 
 
 Commands: 
 apachectl help
 apachectl -v
 apachectl -V 
 
 Hosts where Apache HTTP Server installed: 
 
 1. Red Hat Enterprise Linux ES release 4 (Nahant Update 6)   [ apachectl 
 working fine ] 
 
 2. Red Hat Enterprise Linux AS release 4 (Nahant)   [ apachectl not working 
 ] 
 
 
 Can anyone help out why apachectl command not working on Red Hat Enterprise
Linux AS release 4 (Nahant)?  

Thanks 
-- 
View this message in context: 
http://www.nabble.com/achectl-Not-Working-tp20765887p20765887.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] how httpd was compiled

2008-11-30 Thread Rekha Rani
Try "apachectl -V"  command and there you might get what you looking
for.

 

 



From: Anurag Gujral [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 30, 2008 5:05 PM
To: users@httpd.apache.org
Cc: Anurag Gujral
Subject: [EMAIL PROTECTED] how httpd was compiled

 

Hi  All,

   We are using httpd-2.0.59 to run a site.The persoon who compiled
the httpd is no longer with the company.

Is it possible to know from compiled httpd  with what options it was
compiled(sounds like a crazy question).

I was trying to debug a core dump, I compiled httpd-2.0.59 when I run
gdb I get message that

core file and exe are not related.

 

Thats is why I wanted to know if there is way to find out how a
particuar httpd was compiled.

Thanks 

Anurag 



This email and any files transmitted with it are confidential and are intended 
solely for the use of the individual or entity to whom they are addressed. This 
communication may contain material protected by the attorney-client privilege. 
If you are not the intended recipient, be advised that any use, dissemination, 
forwarding, printing or copying is strictly prohibited. If you have received 
this email in error, please contact the sender and delete all copies.


Re: [EMAIL PROTECTED] how httpd was compiled

2008-11-30 Thread Anurag Gujral






From: Sander Temme <[EMAIL PROTECTED]>
To: users@httpd.apache.org
Sent: Sunday, November 30, 2008 6:24:11 PM
Subject: Re: [EMAIL PROTECTED] how httpd was compiled


Unfortunately it is not present.

If that isn't present, don't despair: a combination of httpd -l and the 
contents of the modules subdirectory will tell you what modules were enabled, 
and httpd -V will tell you some of the path prefix choices that were made.  
Also, running ldd on the httpd binary and on the individual modules will tell 
you where Apache expects to find its libraries: that will allow you to recreate 
the --with-package=... parameters to configure

I will try this thanks.

Thanks & Regards,
Anurag

Most of the configure options have to do with turning modules on and off, so if 
you collect that information you're most of the way there.

Good luck,

S.

--Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF





On Nov 30, 2008, at 5:05 PM, Anurag Gujral wrote:

> Thats is why I wanted to know if there is way to find out how a particuar 
> httpd was compiled.


If your installation is complete, you should find a file called config.nice in 
the build subdirectory.  It has the exact invocation of the configure script 
used to set up the build process.

That should allow you to recreate your compilation.


  

Re: [EMAIL PROTECTED] how httpd was compiled

2008-11-30 Thread Sander Temme


On Nov 30, 2008, at 5:05 PM, Anurag Gujral wrote:

Thats is why I wanted to know if there is way to find out how a  
particuar httpd was compiled.



If your installation is complete, you should find a file called  
config.nice in the build subdirectory.  It has the exact invocation of  
the configure script used to set up the build process.


That should allow you to recreate your compilation.

If that isn't present, don't despair: a combination of httpd -l and  
the contents of the modules subdirectory will tell you what modules  
were enabled, and httpd -V will tell you some of the path prefix  
choices that were made.  Also, running ldd on the httpd binary and on  
the individual modules will tell you where Apache expects to find its  
libraries: that will allow you to recreate the --with-package=...  
parameters to configure


Most of the configure options have to do with turning modules on and  
off, so if you collect that information you're most of the way there.


Good luck,

S.

--
Sander Temme
[EMAIL PROTECTED]
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF





smime.p7s
Description: S/MIME cryptographic signature


[EMAIL PROTECTED] how httpd was compiled

2008-11-30 Thread Anurag Gujral
Hi  All,
   We are using httpd-2.0.59 to run a site.The persoon who compiled the 
httpd is no longer with the company.
Is it possible to know from compiled httpd  with what options it was 
compiled(sounds like a crazy question).
I was trying to debug a core dump, I compiled httpd-2.0.59 when I run gdb I get 
message that
core file and exe are not related.

Thats is why I wanted to know if there is way to find out how a particuar httpd 
was compiled.
Thanks 
Anurag


  

Re: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-11-30 Thread Eric Covener
On Sun, Nov 30, 2008 at 9:59 AM, Karim Zaki <[EMAIL PROTECTED]> wrote:
> Greetings all,
>
>
>
> I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking for
> a way to clear the cache from Apache for specific URLs. I'm using Apache to
> cache dynamic content that is served by Tomcat, and I would like to keep the
> content (age) high (e.g. 24 hours) but still to be able to clear the cache
> for specific pages when the content is updated. Is there a way to tell
> Apache to clear the cache for a specific list of URLs?
>

Try these combinations of headers, comment from cache_util.c:

/*
 * We now want to check if our cached data is still fresh. This depends
 * on a few things, in this order:
 *
 * - RFC2616 14.9.4 End to end reload, Cache-Control: no-cache. no-cache in
 * either the request or the cached response means that we must
 * revalidate the request unconditionally, overriding any expiration
 * mechanism. It's equivalent to max-age=0,must-revalidate.
 *



-- 
Eric Covener
[EMAIL PROTECTED]

-
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] RE: Clearing cache selectively on Apache + mod_cache

2008-11-30 Thread Tamer Embaby
Karim,

I'm afraid you have to do that programmatically.  We've done that in a
project before with Apache 2.0 by knowing how Apache encodes
URL for storing in internal cache directories, read it from:
modules/cache_util.c:
  cache_hash(...)

Which is controlled using:
  CacheDirLevels XX
  CacheDirLength YY
Apache directives.

I believe you will write your own code that hashes the target URL like
Apache does, and delete that file from the cache, call that code
whenever you need to content is updated.

And I don't think that would change for 2.2.X Apache, the addition of
"htcacheclean" doesn't help in your case either.

P.S. Look for Hossam Karim if you need the Java code, he is the one
who did that.

Regards,
Tamer


From: Karim Zaki [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 30, 2008 4:59 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

Greetings all,

I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking for a 
way to clear the cache from Apache for specific URLs. I'm using Apache to cache 
dynamic content that is served by Tomcat, and I would like to keep the content 
(age) high (e.g. 24 hours) but still to be able to clear the cache for specific 
pages when the content is updated. Is there a way to tell Apache to clear the 
cache for a specific list of URLs?

Thanks,
Karim

---
"Although the moon is smaller than the earth, it is farther away."



[EMAIL PROTECTED] Clearing cache selectively on Apache + mod_cache

2008-11-30 Thread Karim Zaki
Greetings all,

I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking for a 
way to clear the cache from Apache for specific URLs. I'm using Apache to cache 
dynamic content that is served by Tomcat, and I would like to keep the content 
(age) high (e.g. 24 hours) but still to be able to clear the cache for specific 
pages when the content is updated. Is there a way to tell Apache to clear the 
cache for a specific list of URLs?

Thanks,
Karim

---
"Although the moon is smaller than the earth, it is farther away."