[no subject]

2009-10-21 Thread Junaid Arshad
subscribe kvm
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad

Hi All,

I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 
5.5.23. After some hassle I was able to build mod_jk.so and did modify 
the httpd.conf to say the location of the .so and worksers.properties 
but when I tried to start apache it failed with the following error:


eipvm03:/usr/local/apache2/bin# ./apachectl 
restart Syntax error on line 1081 of 
/usr/local/apache2/conf/httpd.conf:
API module structure 'jk_module' in file 
/usr/lib/apache2/modules/mod_jk.so is garbled - expected signature 
41503230 but saw 41503232 - perhaps this is not an Apache module DSO, or 
was compiled for a different Apache version?


Any help will be much appreciated

Many Thanks!

Junaid


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad


Rainer Jung wrote:

Hi Junaid,

Junaid Arshad wrote:

Hi All,

I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 
5.5.23. After some hassle I was able to build mod_jk.so and did 
modify the httpd.conf to say the location of the .so and 
worksers.properties but when I tried to start apache it failed with 
the following error:


eipvm03:/usr/local/apache2/bin# ./apachectl 
restart Syntax error on line 1081 of 
/usr/local/apache2/conf/httpd.conf:
API module structure 'jk_module' in file 
/usr/lib/apache2/modules/mod_jk.so is garbled - expected signature 
41503230 but saw 41503232 - perhaps this is not an Apache module DSO, 
or was compiled for a different Apache version?


Any help will be much appreciated


Which steps did you go to produce the mod_jk.so?


I followed steps at http://www.debianhelp.co.uk/apachetomcat.htm


Some hints:

- don't use 1.2.15. We are at 1.2.26. That won't solve your problem, 
but if you start fresh, don't start with such an old version.


- configure needs --with-apxs. On some systems, there is an apxs file 
for use with httpd 1.3, and a file apxs2 for use with httpd 2.0. You 
need to ask your supplier of httpd, where the correct apxs for the 
version of httpd you want to use sits. In a default installation 
layout of httpd, it is in the bin directory of the httpd installation 
directory. Most Linuxes though scatter all the httpd parts around in 
the system. You can use rpm -q --filesbypkg to find out, where rpm 
contents have been installed to.


I did start fresh with 1.2.26 but didn't work again. I've got apxs2 
which I got by apt-get install and I guess it would be ok. But, 
nothing seems to be working :-(


Cheers

Junaid


Many Thanks!

Junaid


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad


Thanks!

I got this working. I guess the apxs2 that I installed using apt-get was 
for apache2.2. This solved the problem but I am getting errors as:


/Invalid command 'logsJkLogFile', perhaps mis-spelled or defined by a 
module not included in the server configuration/


I guess there is a problem in loading mod_jk. I've pasted mod_jk 
settings part of my httpd.conf  as under...


Any hints as to what might correct this.

Cheers

Junaid

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile /usr/local/apache2/workers.properties
# Where to put jk
logsJkLogFile /var/log/apache2/mod_jk.log
# Set the jk log level
[debug/error/info]JkLogLevel info
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T
# Send servlet for context / jsp-examples to worker named worker1
JkMount /jsp-examples worker1
# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /jsp-examples/* worker1


Rainer Jung wrote:

Junaid Arshad wrote:

Rainer Jung wrote:

Junaid Arshad wrote:

Hi All,

I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and tomcat 
5.5.23. After some hassle I was able to build mod_jk.so and did 
modify the httpd.conf to say the location of the .so and 
worksers.properties but when I tried to start apache it failed with 
the following error:


eipvm03:/usr/local/apache2/bin# ./apachectl 
restart Syntax error on line 1081 of 
/usr/local/apache2/conf/httpd.conf:
API module structure 'jk_module' in file 
/usr/lib/apache2/modules/mod_jk.so is garbled - expected signature 
41503230 but saw 41503232 - perhaps this is not an Apache module 
DSO, or was compiled for a different Apache version?


I checked the MODULE_MAGIC_COOKIE values for httpd. 41503230 is for 
httpd 2.0 and 41503232 is for httpd 2.2. Modules are not binary 
compatible between those. So it looks you are building for httpd 2.2 
and using in 2.0. I still expect your apxs2 to be wrong.



Any help will be much appreciated


Which steps did you go to produce the mod_jk.so?


I followed steps at http://www.debianhelp.co.uk/apachetomcat.htm


Some hints:

- don't use 1.2.15. We are at 1.2.26. That won't solve your problem, 
but if you start fresh, don't start with such an old version.


- configure needs --with-apxs. On some systems, there is an apxs 
file for use with httpd 1.3, and a file apxs2 for use with httpd 
2.0. You need to ask your supplier of httpd, where the correct apxs 
for the version of httpd you want to use sits. In a default 
installation layout of httpd, it is in the bin directory of the 
httpd installation directory. Most Linuxes though scatter all the 
httpd parts around in the system. You can use rpm -q --filesbypkg 
to find out, where rpm contents have been installed to.


I did start fresh with 1.2.26 but didn't work again. I've got apxs2 
which I got by apt-get install and I guess it would be ok. But, 
nothing seems to be working :-(


So are you sure, this apxs2 belongs to your version of httpd?

Are you sure, that the file you try to load is the file you built? 
Have a look ate the LoadModule directive for mod_jk and try to figure 
out, to which path for the *.so file it points to. Is the file there 
actually the one you built? The file resulting from the build should 
be either in the apache-2.0 sub directory of the mod_jk source, or in 
the .libs subdirectory underneath.


Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem Running mod_jk with apache2

2008-06-20 Thread Junaid Arshad


Yes, that was true...:-) and I did corect it to make the two (apache and 
tomcat) run but when I tried to access the location specfied by 
JkMount i.e. a webpage etc. it was a 503 error: Service Temporarily 
Unavailable


I checked both tomcat and apache WS, and, they were running good...

do you have any clue about this error...

Cheers

Junaid


Rainer Jung wrote:

Junaid Arshad wrote:

This solved the problem but I am getting errors as:

/Invalid command 'logsJkLogFile', perhaps mis-spelled or defined by a 
module not included in the server configuration/


See

http://tomcat.apache.org/connectors-doc/reference/apache.html

for the list of known configuration directives. 'logsJkLogFile' 
doesn't exist.


I guess there is a problem in loading mod_jk. I've pasted mod_jk 
settings part of my httpd.conf  as under...


No, the above error only indicates, that you are using a configuration 
directive which doesn't exist. And that's true ;)



Any hints as to what might correct this.

Cheers

Junaid

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile /usr/local/apache2/workers.properties
# Where to put jk
logsJkLogFile /var/log/apache2/mod_jk.log


Wrong, see docs page.


# Set the jk log level
[debug/error/info]JkLogLevel info


Wrong, see docs page.


# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 


I would leave the default.


# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories


Throw out +ForwardUriCompat, and if you know no good reason for the 
other two, drop the whole line.



# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T


I wouldn't use a jk request log. Instead use a custom LogFormat to add 
interesting info to your standard access log. See mod_log_config in 
the above docs page.



# Send servlet for context / jsp-examples to worker named worker1
JkMount /jsp-examples worker1
# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /jsp-examples/* worker1


Could be, that that makes sense. This will depend on your 
workers.properties.


Rainer


Rainer Jung wrote:

Junaid Arshad wrote:

Rainer Jung wrote:

Junaid Arshad wrote:

Hi All,

I've been trying to setup mod_jk1.2.15 with Apache2.0.63 and 
tomcat 5.5.23. After some hassle I was able to build mod_jk.so 
and did modify the httpd.conf to say the location of the .so 
and worksers.properties but when I tried to start apache it 
failed with the following error:


eipvm03:/usr/local/apache2/bin# ./apachectl 
restart Syntax error on line 1081 of 
/usr/local/apache2/conf/httpd.conf:
API module structure 'jk_module' in file 
/usr/lib/apache2/modules/mod_jk.so is garbled - expected 
signature 41503230 but saw 41503232 - perhaps this is not an 
Apache module DSO, or was compiled for a different Apache version?


I checked the MODULE_MAGIC_COOKIE values for httpd. 41503230 is for 
httpd 2.0 and 41503232 is for httpd 2.2. Modules are not binary 
compatible between those. So it looks you are building for httpd 2.2 
and using in 2.0. I still expect your apxs2 to be wrong.



Any help will be much appreciated


Which steps did you go to produce the mod_jk.so?


I followed steps at http://www.debianhelp.co.uk/apachetomcat.htm


Some hints:

- don't use 1.2.15. We are at 1.2.26. That won't solve your 
problem, but if you start fresh, don't start with such an old 
version.


- configure needs --with-apxs. On some systems, there is an apxs 
file for use with httpd 1.3, and a file apxs2 for use with httpd 
2.0. You need to ask your supplier of httpd, where the correct 
apxs for the version of httpd you want to use sits. In a default 
installation layout of httpd, it is in the bin directory of the 
httpd installation directory. Most Linuxes though scatter all the 
httpd parts around in the system. You can use rpm -q 
--filesbypkg to find out, where rpm contents have been installed to.


I did start fresh with 1.2.26 but didn't work again. I've got apxs2 
which I got by apt-get install and I guess it would be ok. But, 
nothing seems to be working :-(


So are you sure, this apxs2 belongs to your version of httpd?

Are you sure, that the file you try to load is the file you built? 
Have a look ate the LoadModule directive for mod_jk and try to 
figure out, to which path for the *.so file it points to. Is the 
file there actually the one you built? The file resulting from the 
build should be either in the apache-2.0 sub directory of the mod_jk 
source, or in the .libs subdirectory underneath.


Rainer


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e

[EMAIL PROTECTED] Apache Config Problem

2007-08-23 Thread Junaid Arshad
Hi All,

I am trying to setup a SP on linux with apache2.0.59 and Shib SPv1.3.
The portal is a gridsphere portal so I have mod_jk to connect apache
and tomcat.

When I try to navigate the server it comes up with the following
error. I have tried to google it but nothing comes out, also the
shibd.log does not show any error information. Can anyone please
help...


Forbidden

You don't have permission to access /Shibboleth.sso/SAML/POST on this server.


I have sent it to shibboleth mailing list and the response I got was
that it is a apache config problem not a shibboleth one

Thanks!

junaid

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Problem with SSL

2007-08-04 Thread Junaid Arshad
Hi,

I am trying to get https enabled on my apache server on RH linux which
is apache2.0.59. The servers starts without any errors but when I try
to browse it using firefox, a dialog box with an error appears saying
that myserver has sent an incorrect or unexpected message
error:-12263

can anyone please help

cheers

junaid

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Problem with SSL

2007-08-04 Thread Junaid Arshad
Hi,

Yes, I have OpenSSL installed and also have .key and .crt  files at
the correct place. I am not an administrator on this machine and only
have root privileges on apache tree so don't exactly know if apache
was installed with --enable-ssl option. I used httpd -l to get a
list of compiled modules and it DOES NOT show mod_ssl.so. Does this
mean that apache was not compiled with mod_ssl???

To specify the SSL configuration, I use IfModule mod_ssl rather than
IfDefine SSL which allows to me use ./apachectl startssl rather than
to specify -DSSL flag...

I looked at the error logs and found that, I have the following error
Invalid method in request \x80=\x01\x03. After this I also checked
my ssl.conf and found that I do have SSLEngine on in the virtual
host but  My guess is that there is some problem with SSLEngine which
causes https requests to be dealt by http causing an error

Your thoughts on this please...:-)

cheers

junaid

 OK the big questions. Do you have OpenSSL installed? Did you compile
 Apache with mod_ssl? Do you have the .key and .crt files in the correct
 place on the server? Did you start apache with the -DSSL flag?

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL: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]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Problem with SSL

2007-08-04 Thread Junaid Arshad
Hi,

--Thanks, just one last thing..:-)

and you'll need the path to the openssl stuff.

Does this mean that I have to set some parameter to the path to
openssl or I just need the path to openssl to generate my certificates
and keys...

cheers

junaid

On 8/4/07, Tom Ray [Lists] [EMAIL PROTECTED] wrote:
 Junaid Arshad wrote:
  Hi,
 
  Yes, I have OpenSSL installed and also have .key and .crt  files at
  the correct place. I am not an administrator on this machine and only
  have root privileges on apache tree so don't exactly know if apache
  was installed with --enable-ssl option. I used httpd -l to get a
  list of compiled modules and it DOES NOT show mod_ssl.so. Does this
  mean that apache was not compiled with mod_ssl???
 
 Yup, Apache needs to be re-compiled using --enable-ssl and you'll need
 the path to the openssl stuff.
  To specify the SSL configuration, I use IfModule mod_ssl rather than
  IfDefine SSL which allows to me use ./apachectl startssl rather than
  to specify -DSSL flag...
 
 
 startssl is old, you should be using -DSSL
  I looked at the error logs and found that, I have the following error
  Invalid method in request \x80=\x01\x03. After this I also checked
  my ssl.conf and found that I do have SSLEngine on in the virtual
  host but  My guess is that there is some problem with SSLEngine which
  causes https requests to be dealt by http causing an error
 
 
 That error happens when Apache isn't running with the SSL. When you type
 in HTTPS you're making an invalid request method.
  Your thoughts on this please...:-)
 
  cheers
 
  junaid
 
 
  OK the big questions. Do you have OpenSSL installed? Did you compile
  Apache with mod_ssl? Do you have the .key and .crt files in the correct
  place on the server? Did you start apache with the -DSSL flag?
 
  -
  The official User-To-User support forum of the Apache HTTP Server Project.
  See URL: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]
 
 
 
 


 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL: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]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] Problem running https

2007-08-03 Thread Junaid Arshad
Hi,

I am trying to configure apache to support https using SSL. I followed
the instructions provided at the
http://www.apacheworld.org/ty24/site.chapter17.html and everything
went well. Even the server started without any error but when I try to
navigate to my server using browser, it doesnot connect. For more
information, I tried to run openssl s-client -connect localhost:443
and the response to this is the following error:
CONNECTED(0003)
11591:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:s23_clnt.c:475:

I am using apache2.0.59 and I do not root privileges outside the $APACHE_HOME

Any help would be much appreciated...:-)

cheers

junaid

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] problem with mod_apache.cpp

2007-07-19 Thread Junaid Arshad

Hi,

I am new to Apache and trying to install apache2.0.59. every thing
goes fine untill i try to start the service which fails saying

Starting httpd: httpd: module mod_apache.cpp is not compatible with
this version of Apache.
Please contact the vendor for the correct version.
  [FAILED]

I also tried the apache 2.2.4 but encountered the same problem.

Can anyone please help.

Thanks!

junaid

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] problem with mod_apache.cpp

2007-07-19 Thread Junaid Arshad

To be honest, I have no idea about this. I have now tried this with
three stable versions of apache and the same error comes every
time

Can there be any other reasons for this cz I have tried to search this
file on my machine using find but it also couldnt find this file...

any suggestions...

junaid

On 7/19/07, Nick Kew [EMAIL PROTECTED] wrote:

On Thu, 19 Jul 2007 22:55:38 +0100
Junaid Arshad [EMAIL PROTECTED] wrote:


 Starting httpd: httpd: module mod_apache.cpp is not compatible with
 this version of Apache.

What is mod_apache.cpp and where does it come from?
What does its vendor say?

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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] problem with mod_apache.cpp

2007-07-19 Thread Junaid Arshad

Thanks for your inputs. I discovered that the problem was with the
shibboleth module in shib.conf that gets placed in conf.d. Atleast
apache is running... now i have to digg shibb :-)

cheers

junaid

On 7/20/07, Joshua Slive [EMAIL PROTECTED] wrote:

On 7/19/07, Junaid Arshad [EMAIL PROTECTED] wrote:
 To be honest, I have no idea about this. I have now tried this with
 three stable versions of apache and the same error comes every
 time

If you don' t need this module, then simply find the applicable
LoadModule statement in httpd.conf (or an Include'd config file) and
get rid of it.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL: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]