[users@httpd] Build problem

2012-05-30 Thread Bill Vance
Howdy;

I'm new to the list, so this may allready be
addressed somewhere.  Basically, I', trying
to put the sources for apache2 and php,
etc., together, and I seem to be having some
heavy wading.  1st off, I seem to have to
go searching for every last part and piece
of a project that by all accounts should have
a site or two where everything is available
for picking and choosing.  Oh well, enough
griping.

The main problem of the moment, is APR-Util.
After a bit of searchoong around, I finally
found, apr-util-1.3.9+dfsg.  I'm not sure
what the, dfsg, is, but I figured I'd find
out from the docs.  Unfortunately, I'm not
by any stretch of the imagination, a, C,
programmer.  Near as I can tell, C, stands
for, Cuneiform.  Consequently, when presented
with error messages like the following, I'm
at a complete loss.

make[1]: *** No rule to make target `crypto/apr_md5.c',
needed by `crypto/apr_md5.lo'.  Stop.
make[1]: Leaving directory
 /usr/local/src/httpd-2.4.2/apr-util-1.3.9+dfsg'
make: *** [all-recursive] Error 1

Anyone know how to fix this?

TIA;

Bill

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



Re: [users@httpd] Build problem

2012-05-30 Thread Michael Streeter

On 05/30/2012 07:06 AM, Bill Vance wrote:

make[1]: *** No rule to make target `crypto/apr_md5.c',
needed by `crypto/apr_md5.lo'.  Stop.
make[1]: Leaving directory
  /usr/local/src/httpd-2.4.2/apr-util-1.3.9+dfsg'
make: *** [all-recursive] Error 1

Hello,

It looks like you are trying to build against an old version of 
apr-util.  Try apr-1.4.6 and apr-util-1.4.1.


http://apr.apache.org/download.cgi

Hope that helps,
-Mike

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



Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?

2012-05-30 Thread Matus UHLAR - fantomas
--On 29 May 2012 16:02:25 +0200 Matus UHLAR - fantomas 
uh...@fantomas.sk wrote:



This was documented feature in 1.3 and 2.0:

The complete list of names in the VirtualHost  directive are treated just
like a ServerAlias (but are not overridden by any ServerAlias statement)
if all names resolve to the same address set. Note that subsequent Listen
statements for this vhost will not affect the ports assigned in the
address set.

It seems that in 2.2 it should work as you expect. Do you still use 2.0
or does this problem apply in 2.2 too?
(I've checked now and seems it's gone in 2.2)


On 29.05.12 16:40, Alex Bligh wrote:

I am using 2.2 (latest from Ubuntu Lucid).



I am not sure how to parse your second paragraph. There is only one
Listen statement as this is a NameVirtualHost (in this case a Listen
for *:80). NameVirtualHost is on 192.200.0.1:80 because there are
non-namebased virtual hosts on other IP addresses.


it's not mine, but from apache 1.3/2.0 docs. 


I think what you are saying is that in 1.3 and 2.0 the first declared
virtual host not only acts as the default virtual host but also as if
it had an alias defined for the IP address/port pair it is listening
on.


Not the on it's listening on, but the one in VirtualHost section.
It means than for

VirtualHost some.na.me

the some.na.me becomes a hidden alias of the virtualhost.
So, when you define

VirtualHost 192.168.0.1
/VirtualHost
VirtualHost 192.168.0.1
ServerName 192.168.0.1
/VirtualHost

the second won't apply for 192.168.0.1, because 192.168.0.1 is already 
alias (hidden) of the first (default) virtual host.



My understanding from the documentation is that this is not the
intended behaviour on 2.2 - i.e. each vhost should be responding only
for its defined ServerAlias and ServerName, and if none match the
default should be used. That does not /appear/ to be happening, so perhaps
the behaviour has not changed from the 1.3/2.0 behaviour you describe.

Is that meant to be the case?

If so, is there any way around this? (i.e. so an arbitrary DNS name pointing
to the IP address will get the default vhost, but the IP address itself
will get a different vhost).


I worked around this problem by defining fake name in NameVirtualHost 
and VirtualHost sections


# some.na.me maps to 192.168.0.1
NameVirtualHost some.na.me
NameVirtualHost 192.168.0.1

# some.na.me is not resolvable from outside, so this host will ONLY get 
# default hosts - unspecified below

VirtualHost some.na.me
ServerName some.na.me
/VirtualHost

# This host will only process requests for 192.168.0.1
VirtualHost 192.168.0.1
ServerName 192.168.0.1
/VirtualHost

--
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.
Microsoft dick is soft to do no harm

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



Re: [users@httpd] Build problem

2012-05-30 Thread Mark Montague

On May 30, 2012 8:06 , Bill Vance p...@xpresso.seaslug.org wrote:

I'm new to the list, so this may allready be
addressed somewhere.  Basically, I', trying
to put the sources for apache2 and php,
etc., together, and I seem to be having some
heavy wading.


Do you have a reason to want to build from source?  For example, as a 
learning exercise, or because you will be modifying the code, or because 
you are using a very esoteric hardware platform?


If the answer is no, consider getting both Apache and PHP pre-built 
from someone who has built it already for you -- preferably, your OS 
distributor (for example, if you are running a Red Hat Linux based OS, 
run the command sudo yum install httpd php to get everything), or a 
trusted group who provide a pre-packaged stack that contains both Apache 
and PHP ( see 
https://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages 
).


Either way -- whether you get httpd and php pre-packaged or build it 
yourself -- it would be helpful to know what OS you're using.




The main problem of the moment, is APR-Util.
After a bit of searchoong around, I finally
found, apr-util-1.3.9+dfsg.  I'm not sure
what the, dfsg, is, but I figured I'd find
out from the docs.


I have no idea what this is either.  In general, it's not a good idea to 
use random thing you find lying around without knowing what they are, 
who they came from, and how they are special.


The authoritative place to get the APR-Util source code is 
https://apr.apache.org/  If you need version 1.3.x for some reason, you 
can get it by clicking on the Download link in the Apache Portable 
Runtime Utility 1.4.1 Released section, then, on the resulting page, 
click on the Other files link in the APR-util 1.4.1 is the best 
available version section.


However, a much better way, considering the directory path in the error 
message below is to go to http://httpd.apache.org/ and download both 
httpd-2.4.2.tar.bz2 and httpd-2.4.2-deps.tar.bz2.  The former gets your 
the Apache HTTP Server source, and the latter gets you versions of the 
source code of both APR and APR-Util that are packaged to work with it.  
Unpack both into the same directory, like this:


tar jxf httpd-2.4.2.tar.bz2
tar jxf httpd-2.4.2-deps.tar.bz2

The source for httpd will be in httpd-2.4.2 while the source for APR and 
APR-Utils will be in httpd-2.4.2/srclib (although you don't need to know 
this).


Then follow the instructions at 
https://httpd.apache.org/docs/2.4/install.html  (Be sure to read the 
paragraph about PCRE in the Requirements section!)






make[1]: *** No rule to make target `crypto/apr_md5.c',
needed by `crypto/apr_md5.lo'.  Stop.
make[1]: Leaving directory
  /usr/local/src/httpd-2.4.2/apr-util-1.3.9+dfsg'
make: *** [all-recursive] Error 1

Anyone know how to fix this?


Since you're using a dubious version of APR-Util, I'm not even going to 
try.  Please consider using a complete pre-packaged httpd+php stack as 
described at the top of this message.  But if you are going to build 
this from source, try again using the instructions above.  If you 
encounter problems, include the following information


- What configure command you used
- Any errors or warnings from the configure command.
- What operating system you're using (e.g., Fedora 17), including 
version and platform-specific details (e.g., x86_64).



Good luck.  I hope this helps!

--
  Mark Montague
  m...@catseye.org


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



[users@httpd] Problem with URL Rewriting

2012-05-30 Thread Jean-Christophe Boggio

Hello, I have a problem with URL Rewriting.

I'm trying to transform URLs of the form :

http://medecine-et-enfance.net/archives/voir.html?file=J_2005_01_039.pdf
to
http://medecine-et-enfance.net/showpdf.html?file=J_2005_01_039.pdf

I have defined the following in the VirtualHost :

RewriteEngine   on

RewriteLog  /tmp/ecm3-rewrite.log
RewriteLogLevel 4

RewriteCond %{QUERY_STRING} 
file=(.*)
RewriteRule ^/archives/voir.html
/showpdf.html?file=%1 [L]

RewriteRule (^/data/pdf/.*) 
/showpdf.html?file=$1 [L]

This last line is to address a different case where users could get the files 
directly
by requesting :
http://medecine-et-enfance.net/data/pdf/J_2005_01_039.pdf


Everything seems fine, if I look at the logs :

81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (2) 
init rewrite engine with requested uri /archives/voir.html
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (3) 
applying pattern '^/archives/voir.html' to uri '/archives/voir.html'
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (4) 
RewriteCond: input='file=/data/pdf/J_2005_01_039.pdf' pattern='file=(.*)' = 
matched
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (2) 
rewrite '/archives/voir.html' - 
'/showpdf.html?file=/data/pdf/J_2005_01_039.pdf'
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (3) split 
uri=/showpdf.html?file=/data/pdf/J_2005_01_039.pdf - uri=/showpdf.html, 
args=file=/data/pdf/J_2005_01_039.pdf
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (2) 
local path result: /showpdf.html
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (2) 
prefixed with document_root to /var/www/sites/ecm3/showpdf.html
81.56.192.64 - - [30/May/2012:14:48:51 +0200] 
[www.medecine-et-enfance.net/sid#7fd445aa0668][rid#7fd43f2f80a0/initial] (1) 
go-ahead with /var/www/sites/ecm3/showpdf.html [OK]

But I have put a spy in /archives/voir.html to see if the page is still being 
called, and it is :

== /var/log/apache2/ecm/error.log ==
[Wed May 30 14:48:51 2012] [warn] [27627]ERR:  32:  Warning in Perl code: Acces a 
voir.html non filtre ! at //var/www/sites/ecm3/archives/voir.html line 20, 
GEN0 line 4.
[Wed May 30 14:48:51 2012] [warn] [27627]ERR:  32:  Warning in Perl code: showpdf: 
/data/pdf/J_2005_01_039.pdf at /var/www/sites/ecm3/showpdf.html line 25, GEN0 
line 4.

The users still can get the files using voir.html (though showpdf.html seems to 
be called ?!)

Thanks for your help,

JC

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



[users@httpd] Can't get mod_wl_22 to stop logging.

2012-05-30 Thread eric.berg
I've set Debug to OFF everywhere it occurs, but it's still writing to the logs.

Apache 2.2

Anyone have any suggestions for stopping this?

Thanks.

Eric


___

This e-mail may contain information that is confidential, privileged or 
otherwise protected from 
disclosure. If you are not an intended recipient of this e-mail, do not 
duplicate or redistribute 
it by any means. Please delete it and any attachments and notify the sender 
that you have received 
it in error. Unless specifically indicated, this e-mail is not an offer to buy 
or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or 
service, an official confirmation of any transaction, or an official statement 
of Barclays. Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those 
of Barclays. This e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. 
By messaging with Barclays you consent to the foregoing.  Barclays offers 
premier investment banking 
products and services to its clients through Barclays Bank PLC, a company 
registered in England 
(number 1026167) with its registered office at 1 Churchill Place, London, E14 
5HP.  This email may 
relate to or be sent from other members of the Barclays Group.

___


[users@httpd] mod_jk vs. mod_proxy_ajp

2012-05-30 Thread Frank Mancini




anyone have a recommendation and differences?
 
can I get precompiles of mok_jk somewhere for Sun Solaris?
  

Re: [users@httpd] Can't get mod_wl_22 to stop logging.

2012-05-30 Thread Ishita Kapadiya
have you set is as OFF in -

IfModule mod_weblogic.c
...
 /IfModule

If yes and if it's still not working send us httpd.conf (after
removing all sensitive information).

On Wed, May 30, 2012 at 9:44 AM,  eric.b...@barclays.com wrote:
 I’ve set Debug to OFF everywhere it occurs, but it’s still writing to the
 logs.

 Apache 2.2

 Anyone have any suggestions for stopping this?

 Thanks.

 Eric


 ___

 This e-mail may contain information that is confidential, privileged or
 otherwise protected from disclosure. If you are not an intended recipient of
 this e-mail, do not duplicate or redistribute it by any means. Please delete
 it and any attachments and notify the sender that you have received it in
 error. Unless specifically indicated, this e-mail is not an offer to buy or
 sell or a solicitation to buy or sell any securities, investment products or
 other financial product or service, an official confirmation of any
 transaction, or an official statement of Barclays. Any views or opinions
 presented are solely those of the author and do not necessarily represent
 those of Barclays. This e-mail is subject to terms available at the
 following link: www.barcap.com/emaildisclaimer. By messaging with Barclays
 you consent to the foregoing.  Barclays offers premier investment banking
 products and services to its clients through Barclays Bank PLC, a company
 registered in England (number 1026167) with its registered office at 1
 Churchill Place, London, E14 5HP.  This email may relate to or be sent from
 other members of the Barclays Group.

 ___

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



RE: [users@httpd] Can't get mod_wl_22 to stop logging.

2012-05-30 Thread eric.berg
Thanks for your reply, Ishita.

All of the Debug statements are set to OFF.

I have one major question at this point:  Are the mod_wl directives scoped 
local to the IfModule and Directory|Location|LocationMatch sections in 
which they appear?

We have many sections that create wl clusters, but the only requests that I 
have noticed in the wl logs are from this section:


LocationMatch /PNT/Indices 
IfModule mod_weblogic.c
WebLogicCluster host1:port, host2:port, etc.

Debug OFF
DebugConfigInfo OFF
SetHandler weblogic-handler
PathTrim /PNT/Indices
WLCookieNamePST_JSESSIONID
WLLogFile wl.log
/IfModule
/LocationMatch

Could it be that simply having the WLLogFile onfig option set is causing the 
logging to persist despite the OFF value of Debug?

Eric

 -Original Message-
 From: Ishita Kapadiya [mailto:ishim...@gmail.com]
 Sent: Wednesday, May 30, 2012 11:24 AM
 To: users@httpd.apache.org
 Subject: Re: [users@httpd] Can't get mod_wl_22 to stop logging.
 
 have you set is as OFF in -
 
 IfModule mod_weblogic.c
 ...
  /IfModule
 
 If yes and if it's still not working send us httpd.conf (after
 removing all sensitive information).
 
 On Wed, May 30, 2012 at 9:44 AM,  eric.b...@barclays.com wrote:
  I've set Debug to OFF everywhere it occurs, but it's still writing to
 the
  logs.
 
  Apache 2.2
 
  Anyone have any suggestions for stopping this?
 
  Thanks.
 
  Eric
 
 
  ___
 
  This e-mail may contain information that is confidential, privileged
 or
  otherwise protected from disclosure. If you are not an intended
 recipient of
  this e-mail, do not duplicate or redistribute it by any means. Please
 delete
  it and any attachments and notify the sender that you have received
 it in
  error. Unless specifically indicated, this e-mail is not an offer to
 buy or
  sell or a solicitation to buy or sell any securities, investment
 products or
  other financial product or service, an official confirmation of any
  transaction, or an official statement of Barclays. Any views or
 opinions
  presented are solely those of the author and do not necessarily
 represent
  those of Barclays. This e-mail is subject to terms available at the
  following link: www.barcap.com/emaildisclaimer. By messaging with
 Barclays
  you consent to the foregoing.  Barclays offers premier investment
 banking
  products and services to its clients through Barclays Bank PLC, a
 company
  registered in England (number 1026167) with its registered office at
 1
  Churchill Place, London, E14 5HP.  This email may relate to or be
 sent from
  other members of the Barclays Group.
 
  ___
 
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org


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



Re: [users@httpd] Segmentation fault error

2012-05-30 Thread Ishita Kapadiya
Thanks Nick.
I have compiled Apache for myself both the time and both are 32-bit.
The same modules all other instances are using and thus i am not sure
what is different with this instance that causing Segmentation fault
error.

I tried to dig more into it and here is what i got -

mdb core
 ::stack
libc.so.1`_read+0xc(6, ffbff5e3, 1, 0, 10b4, fef73ac0)
ap_mpm_pod_check+0x18(d6800, 68764, 68f8c, 1b7ec0, 0, 1)
child_main+0x2d4(0, 682dc, 0, fee58000, fef73700, fedf2a00)
make_child+0x128(9bc00, 0, 1, 9cc00, 9b400, 9c800)
ap_mpm_run+0x740(fe720058, 4, 0, a, 1, 0)
main+0x77c(a7810, 99c00, 9bc00, 9bc00, a5808, 0)
_start+0x5c(0, 0, 0, 0, 0, 0)

pstack core
 fef45874 _read(6, ffbff5e3, 1, 0, 10b4, fef73ac0) + c
 0006b714 ap_mpm_pod_check (d6800, 68764, 68f8c, 1b7ec0, 0, 1) + 18
 000697b4 child_main (0, 682dc, 0, fee58000, fef73700, fedf2a00) + 2d4
 00069930 make_child (9bc00, 0, 1, 9cc00, 9b400, 9c800) + 128
 0006a160 ap_mpm_run (fe720058, 4, 0, a, 1, 0) + 740
 00029bc8 main (a7810, 99c00, 9bc00, 9bc00, a5808, 0) + 77c
 00028f7c _start   (0, 0, 0, 0, 0, 0) + 5c

pmap core
0001 448K r-x--  /abc/apache-2.2.22/bin/httpd
0008  32K r-x--
00096000  24K rwx--  /abc/apache-2.2.22/bin/httpd
0009C000  16K rwx--  /abc/apache-2.2.22/bin/httpd
000A6528K rwx--[ heap ]
FAB7A000   8K rw---[ stack tid=36 ]
...
(removed rest of the lines to avoid length)

mdb /abc/apache-2.2.22/bin/httpd

 ::dis ap_mpm_pod_check!head
ap_mpm_pod_check:   save  %sp, -0x78, %sp
ap_mpm_pod_check+4: ld[%i0], %o1
ap_mpm_pod_check+8: call  +0x2d0e0  PLT:apr_os_file_get
ap_mpm_pod_check+0xc:   add   %fp, -0x14, %o0
ap_mpm_pod_check+0x10:  ld[%fp - 0x14], %o0
ap_mpm_pod_check+0x14:  add   %fp, -0x15, %o1
ap_mpm_pod_check+0x18:  call  +0x2cdc4  PLT:read
ap_mpm_pod_check+0x1c:  mov   1, %o2

Please help me what could be the problem? It's affecting my production
env and i really don't know what to do next?

On Tue, May 29, 2012 at 7:15 PM, Nick Kew n...@webthing.com wrote:

 On 29 May 2012, at 23:11, Ishita Kapadiya wrote:

 Hi All,

 I am using this configurations -

 Solaris sparc 10/apache 2.2.22/openssl 1.0.0g/simteminder sso/mod-jk 1.30

 Did you compile everything yourself?

 If yes, could any compile options have changed?  E.g. between 32-bit and 
 64-bit,
 or something less obvious but just as important?

 If no, what suppliers do your binaries come from, and have you checked with 
 them?

 --
 Nick Kew
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org


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



Re: [users@httpd] Can't get mod_wl_22 to stop logging.

2012-05-30 Thread Ishita Kapadiya
Hi Eric,

yes. mod_wl directives scoped local to the IfModule and
Directory|Location|LocationMatch sections in which they appear. It's
good idea to see default configuration for WL plug-in with -
“__WebLogicBridgeConfig” (you also need to set DebugConfigInfo ON) and
check if Debug is ON by default. in that case you have to explicitly
set it OFF in each section where wl config present.

Thanks

On Wed, May 30, 2012 at 11:31 AM,  eric.b...@barclays.com wrote:
 Thanks for your reply, Ishita.

 All of the Debug statements are set to OFF.

 I have one major question at this point:  Are the mod_wl directives scoped 
 local to the IfModule and Directory|Location|LocationMatch sections in 
 which they appear?

 We have many sections that create wl clusters, but the only requests that I 
 have noticed in the wl logs are from this section:


 LocationMatch /PNT/Indices 
    IfModule mod_weblogic.c
        WebLogicCluster host1:port, host2:port, etc.

        Debug OFF
        DebugConfigInfo OFF
        SetHandler weblogic-handler
        PathTrim /PNT/Indices
        WLCookieName    PST_JSESSIONID
        WLLogFile wl.log
    /IfModule
 /LocationMatch

 Could it be that simply having the WLLogFile onfig option set is causing the 
 logging to persist despite the OFF value of Debug?

 Eric

 -Original Message-
 From: Ishita Kapadiya [mailto:ishim...@gmail.com]
 Sent: Wednesday, May 30, 2012 11:24 AM
 To: users@httpd.apache.org
 Subject: Re: [users@httpd] Can't get mod_wl_22 to stop logging.

 have you set is as OFF in -

 IfModule mod_weblogic.c
 ...
  /IfModule

 If yes and if it's still not working send us httpd.conf (after
 removing all sensitive information).

 On Wed, May 30, 2012 at 9:44 AM,  eric.b...@barclays.com wrote:
  I've set Debug to OFF everywhere it occurs, but it's still writing to
 the
  logs.
 
  Apache 2.2
 
  Anyone have any suggestions for stopping this?
 
  Thanks.
 
  Eric
 
 
  ___
 
  This e-mail may contain information that is confidential, privileged
 or
  otherwise protected from disclosure. If you are not an intended
 recipient of
  this e-mail, do not duplicate or redistribute it by any means. Please
 delete
  it and any attachments and notify the sender that you have received
 it in
  error. Unless specifically indicated, this e-mail is not an offer to
 buy or
  sell or a solicitation to buy or sell any securities, investment
 products or
  other financial product or service, an official confirmation of any
  transaction, or an official statement of Barclays. Any views or
 opinions
  presented are solely those of the author and do not necessarily
 represent
  those of Barclays. This e-mail is subject to terms available at the
  following link: www.barcap.com/emaildisclaimer. By messaging with
 Barclays
  you consent to the foregoing.  Barclays offers premier investment
 banking
  products and services to its clients through Barclays Bank PLC, a
 company
  registered in England (number 1026167) with its registered office at
 1
  Churchill Place, London, E14 5HP.  This email may relate to or be
 sent from
  other members of the Barclays Group.
 
  ___

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


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


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



RE: [users@httpd] Can't get mod_wl_22 to stop logging.

2012-05-30 Thread eric.berg
Thanks, Ishita.  That's very helpful.  Do you know where the scoping issue is 
mentioned in the WL docs, or is it an apache thing?

The thing is that every single wl config section has Debug OFF, and it's 
still logging to those wl files.

When you suggest that logging might be on by default, where would that be set, 
and why doesn't the setting of Debug to OFF affect this?

I'll try enabling DebugConfigInfo and see what I get.

Eric

 -Original Message-
 From: Ishita Kapadiya [mailto:ishim...@gmail.com]
 Sent: Wednesday, May 30, 2012 11:42 AM
 To: users@httpd.apache.org
 Subject: Re: [users@httpd] Can't get mod_wl_22 to stop logging.
 
 Hi Eric,
 
 yes. mod_wl directives scoped local to the IfModule and
 Directory|Location|LocationMatch sections in which they appear. It's
 good idea to see default configuration for WL plug-in with -
 __WebLogicBridgeConfig (you also need to set DebugConfigInfo ON) and
 check if Debug is ON by default. in that case you have to explicitly
 set it OFF in each section where wl config present.
 
 Thanks
 
 On Wed, May 30, 2012 at 11:31 AM,  eric.b...@barclays.com wrote:
  Thanks for your reply, Ishita.
 
  All of the Debug statements are set to OFF.
 
  I have one major question at this point:  Are the mod_wl directives
 scoped local to the IfModule and Directory|Location|LocationMatch
 sections in which they appear?
 
  We have many sections that create wl clusters, but the only requests
 that I have noticed in the wl logs are from this section:
 
 
  LocationMatch /PNT/Indices 
     IfModule mod_weblogic.c
         WebLogicCluster host1:port, host2:port, etc.
 
         Debug OFF
         DebugConfigInfo OFF
         SetHandler weblogic-handler
         PathTrim /PNT/Indices
         WLCookieName    PST_JSESSIONID
         WLLogFile wl.log
     /IfModule
  /LocationMatch
 
  Could it be that simply having the WLLogFile onfig option set is
 causing the logging to persist despite the OFF value of Debug?
 
  Eric
 
  -Original Message-
  From: Ishita Kapadiya [mailto:ishim...@gmail.com]
  Sent: Wednesday, May 30, 2012 11:24 AM
  To: users@httpd.apache.org
  Subject: Re: [users@httpd] Can't get mod_wl_22 to stop logging.
 
  have you set is as OFF in -
 
  IfModule mod_weblogic.c
  ...
   /IfModule
 
  If yes and if it's still not working send us httpd.conf (after
  removing all sensitive information).
 
  On Wed, May 30, 2012 at 9:44 AM,  eric.b...@barclays.com wrote:
   I've set Debug to OFF everywhere it occurs, but it's still writing
 to
  the
   logs.
  
   Apache 2.2
  
   Anyone have any suggestions for stopping this?
  
   Thanks.
  
   Eric
  
  
   ___
  
   This e-mail may contain information that is confidential,
 privileged
  or
   otherwise protected from disclosure. If you are not an intended
  recipient of
   this e-mail, do not duplicate or redistribute it by any means.
 Please
  delete
   it and any attachments and notify the sender that you have
 received
  it in
   error. Unless specifically indicated, this e-mail is not an offer
 to
  buy or
   sell or a solicitation to buy or sell any securities, investment
  products or
   other financial product or service, an official confirmation of
 any
   transaction, or an official statement of Barclays. Any views or
  opinions
   presented are solely those of the author and do not necessarily
  represent
   those of Barclays. This e-mail is subject to terms available at
 the
   following link: www.barcap.com/emaildisclaimer. By messaging with
  Barclays
   you consent to the foregoing.  Barclays offers premier investment
  banking
   products and services to its clients through Barclays Bank PLC, a
  company
   registered in England (number 1026167) with its registered office
 at
  1
   Churchill Place, London, E14 5HP.  This email may relate to or be
  sent from
   other members of the Barclays Group.
  
   ___
 
  
 -
  To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  For additional commands, e-mail: users-h...@httpd.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  For additional commands, e-mail: users-h...@httpd.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org


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



Re: [users@httpd] Can't get mod_wl_22 to stop logging.

2012-05-30 Thread Ishita Kapadiya
Hi Eric,

You can refer 
http://docs.oracle.com/cd/E12840_01/wls/docs103/plugins/apache.html.
consider other two scenarios - 1) there is no other instance on the
server than had Debug ON 2) grep the wl log file name in apache config
which will provide you clue with that set of config.

Thanks

On Wed, May 30, 2012 at 11:45 AM,  eric.b...@barclays.com wrote:
 Thanks, Ishita.  That's very helpful.  Do you know where the scoping issue is 
 mentioned in the WL docs, or is it an apache thing?

 The thing is that every single wl config section has Debug OFF, and it's 
 still logging to those wl files.

 When you suggest that logging might be on by default, where would that be 
 set, and why doesn't the setting of Debug to OFF affect this?

 I'll try enabling DebugConfigInfo and see what I get.

 Eric

 -Original Message-
 From: Ishita Kapadiya [mailto:ishim...@gmail.com]
 Sent: Wednesday, May 30, 2012 11:42 AM
 To: users@httpd.apache.org
 Subject: Re: [users@httpd] Can't get mod_wl_22 to stop logging.

 Hi Eric,

 yes. mod_wl directives scoped local to the IfModule and
 Directory|Location|LocationMatch sections in which they appear. It's
 good idea to see default configuration for WL plug-in with -
 __WebLogicBridgeConfig (you also need to set DebugConfigInfo ON) and
 check if Debug is ON by default. in that case you have to explicitly
 set it OFF in each section where wl config present.

 Thanks

 On Wed, May 30, 2012 at 11:31 AM,  eric.b...@barclays.com wrote:
  Thanks for your reply, Ishita.
 
  All of the Debug statements are set to OFF.
 
  I have one major question at this point:  Are the mod_wl directives
 scoped local to the IfModule and Directory|Location|LocationMatch
 sections in which they appear?
 
  We have many sections that create wl clusters, but the only requests
 that I have noticed in the wl logs are from this section:
 
 
  LocationMatch /PNT/Indices 
     IfModule mod_weblogic.c
         WebLogicCluster host1:port, host2:port, etc.
 
         Debug OFF
         DebugConfigInfo OFF
         SetHandler weblogic-handler
         PathTrim /PNT/Indices
         WLCookieName    PST_JSESSIONID
         WLLogFile wl.log
     /IfModule
  /LocationMatch
 
  Could it be that simply having the WLLogFile onfig option set is
 causing the logging to persist despite the OFF value of Debug?
 
  Eric
 
  -Original Message-
  From: Ishita Kapadiya [mailto:ishim...@gmail.com]
  Sent: Wednesday, May 30, 2012 11:24 AM
  To: users@httpd.apache.org
  Subject: Re: [users@httpd] Can't get mod_wl_22 to stop logging.
 
  have you set is as OFF in -
 
  IfModule mod_weblogic.c
  ...
   /IfModule
 
  If yes and if it's still not working send us httpd.conf (after
  removing all sensitive information).
 
  On Wed, May 30, 2012 at 9:44 AM,  eric.b...@barclays.com wrote:
   I've set Debug to OFF everywhere it occurs, but it's still writing
 to
  the
   logs.
  
   Apache 2.2
  
   Anyone have any suggestions for stopping this?
  
   Thanks.
  
   Eric
  
  
   ___
  
   This e-mail may contain information that is confidential,
 privileged
  or
   otherwise protected from disclosure. If you are not an intended
  recipient of
   this e-mail, do not duplicate or redistribute it by any means.
 Please
  delete
   it and any attachments and notify the sender that you have
 received
  it in
   error. Unless specifically indicated, this e-mail is not an offer
 to
  buy or
   sell or a solicitation to buy or sell any securities, investment
  products or
   other financial product or service, an official confirmation of
 any
   transaction, or an official statement of Barclays. Any views or
  opinions
   presented are solely those of the author and do not necessarily
  represent
   those of Barclays. This e-mail is subject to terms available at
 the
   following link: www.barcap.com/emaildisclaimer. By messaging with
  Barclays
   you consent to the foregoing.  Barclays offers premier investment
  banking
   products and services to its clients through Barclays Bank PLC, a
  company
   registered in England (number 1026167) with its registered office
 at
  1
   Churchill Place, London, E14 5HP.  This email may relate to or be
  sent from
   other members of the Barclays Group.
  
   ___
 
  
 -
  To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  For additional commands, e-mail: users-h...@httpd.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  For additional commands, e-mail: users-h...@httpd.apache.org
 

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


 

Re: [users@httpd] virtual hosts with different JkExtract ssl values

2012-05-30 Thread Charles Richard
Thanks for the help!

As silly as this sounds, I thought i had tried the scenario I had above and
that it hadn't worked but after I read the documentation you sent, it
didn't explicitly specify that JkExtract could not be used in a virtual
host so I tried it and it worked!

Thanks,
Charles

On Tue, May 29, 2012 at 11:36 PM, Igor Cicimov icici...@gmail.com wrote:

 JkExtractSSL is On by default. You can read the JkExtractSSL definition
 in the connector documentation:

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

 Looks like you can play with Apache SSLOptions parameter:

 In order to make SSL data available for mod_jk in Apache, you need to set
 *SSLOptions +StdEnvVars*. For the certificate information you also need
 to add *SSLOptions +ExportCertData*. 

 and enable the above settings only for the Vhost you need it for.

 Igor

 On Wed, May 30, 2012 at 4:28 AM, Charles Richard chachi.rich...@gmail.com
  wrote:

 Hi,

 I have a bit of a complex setup in which i need a same front end apache
 server to use different virtual hosts name (wildcard SSL) to redirect to
 either Liferay, Glassfish or Tomcat.

 This could be a misconfiguration on my part but I seem to need for my
 regular tomcat server that JkExtractSSL be on and for the other 2 (Liferay,
 Glassfish) that my JkExtractSSL be off.  Is there a way to do this in a
 virtual host directive? Example:

 virtual host app1.mydomain.com
 JkExtractSSL on
 /virtual host

 virtual host app2.mydomain.com
 JkExtractSSL off
 /virtual host

 Thanks,
 Charles





[users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-05-30 Thread Reimer, George
My browser tells me that It Works!  but it took a couple days of banging my 
head against the wall. I encountered the following rough spots and eventually 
stumbled over their solutions as noted:


1)  No libpcre
This is a pre-requisite for httpd, I did not have it.  I downloaded version 
8.30 from www.pcre.orghttp://www.pcre.org. The configure script ran OK, but 
the make failed with errors about libgcc missing, even though 'rpm -aq' 
indicated it was present.  It was necessary to remove all the gcc, g++, and 
libstdc packages via  'rpm -e', and then install them again in the following 
order:

libgcc-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm

These packages are all downloadable at:

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

My 'rpm -aq' listing now includes:

libgcc-4.2.0-3
gcc-4.2.0-3
libstdc++-4.2.0-3
gcc-c++-4.2.0-3
libstdc++-devel-4.2.0-3

But I did NOT install any separate gcc-4.2.0-3 RPM, I think it just came along 
with the gcc-c++ package. Originally I had installed a separate gcc package, 
and I think that messed up the interface with libgcc.


2)  Apache 'make install' fails with install: File mod_authn_file.so was not 
found.



This issue is discussed at length on the mailing list archives at:



http://mail-archives.apache.org/mod_mbox/httpd-dev/201202.mbox/%3CCAN9c_NSp8D9ifhb0FgSmfyKHqfQSFrmwuj+5przNZpqmp7v=z...@mail.gmail.com%3E



 but I did not see a resolution for it. Recommendations for work-arounds 
included compiling and installing the apache apr sopftware as a separate 
package, using an explicitly declared destination directory when running make 
install, and some other suggestions that I did not understand. None of them 
worked for me.



Instead, what make the install work for me was a suggestion from the README in 
the build/aix subdirectory. The scripts there are supposed to build an AIX 
installp package for apache. I didn't try it, but they said that libtool did 
not work well with the AIX 'install' program, and to use the GNU one instead. I 
already had the GNU coreutils installed (also available from the above IBM 
site), so I set the PATH so that 'which install' returned 
/opt/freeware/bin/install.



After this, 'make install' ran just fine, and httpd runs for me and serves out 
the test page. I had already separated out the 'apr' stuff and installed it in 
/usr/local/apr and compiled apache separately, but out of curiosity I started 
over again, unpacking both httpd and httpd-deps into the same directory and 
running 'configure' with the -with-included-apr option, and that installed 
and runs just fine, too!



George




_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.


Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++

2012-05-30 Thread Eric Covener
On Wed, May 30, 2012 at 1:38 PM, Reimer, George
george.rei...@fisglobal.com wrote:
 My browser tells me that “It Works!”  but it took a couple days of banging
 my head against the wall. I encountered the following rough spots and
 eventually stumbled over their solutions as noted:

can you share your gcc experience here in the wiki:

http://wiki.apache.org/httpd/AIXPlatform

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



Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?

2012-05-30 Thread Alex Bligh



--On 30 May 2012 14:41:53 +0200 Matus UHLAR - fantomas uh...@fantomas.sk 
wrote:



I worked around this problem by defining fake name in NameVirtualHost and
VirtualHost sections

# some.na.me maps to 192.168.0.1
NameVirtualHost some.na.me
NameVirtualHost 192.168.0.1

# some.na.me is not resolvable from outside, so this host will ONLY get #
# default hosts - unspecified below
VirtualHost some.na.me
ServerName some.na.me
/VirtualHost

# This host will only process requests for 192.168.0.1
VirtualHost 192.168.0.1
ServerName 192.168.0.1
/VirtualHost


OK, so it is the VirtualHost some.na.me that is fixing this (really) not
the ServerName some.na.me line. I'm already doing the latter:
ServerName default.example.com

My problem is this is an automated install system and (broadly speaking)
I have no control over DNS.

Is there anything else I can do, like (e.g.) put the IP address as
a hex constant or something in VirtualHost? Or disable this rather
annoying feature?

--
Alex Bligh

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



Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?

2012-05-30 Thread Eric Covener
 Is there anything else I can do, like (e.g.) put the IP address as
 a hex constant or something in VirtualHost? Or disable this rather
 annoying feature?

I'd suggest opening a bug report that something weird seems to happen
with the literal IP address in the virtualHost arguments and that it
works with *:80.

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



Re: [users@httpd] Segmentation fault error

2012-05-30 Thread William A. Rowe Jr.
You didn't dump the offending stack, you dumped the first stack.  It's highly
unlikely there was a segfault in _read.

You need to dump all the thread stacks, and work out the offending one; this is
usuallly designated  FAULT or some other indication of where the fault 
occured.

On 5/30/2012 10:32 AM, Ishita Kapadiya wrote:
 Thanks Nick.
 I have compiled Apache for myself both the time and both are 32-bit.
 The same modules all other instances are using and thus i am not sure
 what is different with this instance that causing Segmentation fault
 error.
 
 I tried to dig more into it and here is what i got -
 
 mdb core
 ::stack
 libc.so.1`_read+0xc(6, ffbff5e3, 1, 0, 10b4, fef73ac0)
 ap_mpm_pod_check+0x18(d6800, 68764, 68f8c, 1b7ec0, 0, 1)
 child_main+0x2d4(0, 682dc, 0, fee58000, fef73700, fedf2a00)
 make_child+0x128(9bc00, 0, 1, 9cc00, 9b400, 9c800)
 ap_mpm_run+0x740(fe720058, 4, 0, a, 1, 0)
 main+0x77c(a7810, 99c00, 9bc00, 9bc00, a5808, 0)
 _start+0x5c(0, 0, 0, 0, 0, 0)
 
 pstack core
  fef45874 _read(6, ffbff5e3, 1, 0, 10b4, fef73ac0) + c
  0006b714 ap_mpm_pod_check (d6800, 68764, 68f8c, 1b7ec0, 0, 1) + 18
  000697b4 child_main (0, 682dc, 0, fee58000, fef73700, fedf2a00) + 2d4
  00069930 make_child (9bc00, 0, 1, 9cc00, 9b400, 9c800) + 128
  0006a160 ap_mpm_run (fe720058, 4, 0, a, 1, 0) + 740
  00029bc8 main (a7810, 99c00, 9bc00, 9bc00, a5808, 0) + 77c
  00028f7c _start   (0, 0, 0, 0, 0, 0) + 5c
 
 pmap core
 0001 448K r-x--  /abc/apache-2.2.22/bin/httpd
 0008  32K r-x--
 00096000  24K rwx--  /abc/apache-2.2.22/bin/httpd
 0009C000  16K rwx--  /abc/apache-2.2.22/bin/httpd
 000A6528K rwx--[ heap ]
 FAB7A000   8K rw---[ stack tid=36 ]
 ...
 (removed rest of the lines to avoid length)
 
 mdb /abc/apache-2.2.22/bin/httpd
 
 ::dis ap_mpm_pod_check!head
 ap_mpm_pod_check:   save  %sp, -0x78, %sp
 ap_mpm_pod_check+4: ld[%i0], %o1
 ap_mpm_pod_check+8: call  +0x2d0e0  PLT:apr_os_file_get
 ap_mpm_pod_check+0xc:   add   %fp, -0x14, %o0
 ap_mpm_pod_check+0x10:  ld[%fp - 0x14], %o0
 ap_mpm_pod_check+0x14:  add   %fp, -0x15, %o1
 ap_mpm_pod_check+0x18:  call  +0x2cdc4  PLT:read
 ap_mpm_pod_check+0x1c:  mov   1, %o2
 
 Please help me what could be the problem? It's affecting my production
 env and i really don't know what to do next?
 
 On Tue, May 29, 2012 at 7:15 PM, Nick Kew n...@webthing.com wrote:

 On 29 May 2012, at 23:11, Ishita Kapadiya wrote:

 Hi All,

 I am using this configurations -

 Solaris sparc 10/apache 2.2.22/openssl 1.0.0g/simteminder sso/mod-jk 1.30

 Did you compile everything yourself?

 If yes, could any compile options have changed?  E.g. between 32-bit and 
 64-bit,
 or something less obvious but just as important?

 If no, what suppliers do your binaries come from, and have you checked with 
 them?

 --
 Nick Kew
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org

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


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



Re: [users@httpd] Build problem

2012-05-30 Thread Bill Vance
On Wed, May 30, 2012 at 08:54:32AM -0400, Mark Montague wrote:
Date: Wed, 30 May 2012 08:54:32 -0400
From: Mark Montague m...@catseye.org
Subject: Re: [users@httpd] Build problem

On May 30, 2012 8:06 , Bill Vance p...@xpresso.seaslug.org wrote:
I'm new to the list, so this may allready be
addressed somewhere.  Basically, I', trying
to put the sources for apache2 and php,
etc., together, and I seem to be having some
heavy wading.

Do you have a reason to want to build from source?  For example, as a
learning exercise, or because you will be modifying the code, or
because you are using a very esoteric hardware platform?


Well it seems to be the way everyones been discussing how to do it,
what with aspx being AWOL or whatever.  That plus whenever I get
things working, there's a bunch of other stuff I want to add, as well.


If the answer is no, consider getting both Apache and PHP pre-built
from someone who has built it already for you -- preferably, your OS
distributor (for example, if you are running a Red Hat Linux based
OS, run the command sudo yum install httpd php to get everything),
or a trusted group who provide a pre-packaged stack that contains
both Apache and PHP ( see 
https://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages
).


Actually I'm running KUbuntu 10.04, Lucid Lunatic, or Lynx, or
whatever that stupid name is, on an i386-32  One of the problems
here are utils like apt-get, aptitude, and synaptic, etc.  They
work real good if you only want to deal with .deb archives, but
don't seem to leave much in the way of a program directory behind
them, which some things require for working with them.


Either way -- whether you get httpd and php pre-packaged or build it
yourself -- it would be helpful to know what OS you're using.


Actually I just tried your pre-package suggestion, and PHP5
started complaining about deprecated, #'s on line 0 in it's /etc/*
files, and apache2 quit working at all.

I'll give it another go with your further suggestions below, and
see what happens.


The main problem of the moment, is APR-Util.
After a bit of searchoong around, I finally
found, apr-util-1.3.9+dfsg.  I'm not sure
what the, dfsg, is, but I figured I'd find
out from the docs.

I have no idea what this is either.  In general, it's not a good idea
to use random thing you find lying around without knowing what they
are, who they came from, and how they are special.

The authoritative place to get the APR-Util source code is
https://apr.apache.org/  If you need version 1.3.x for some reason,
you can get it by clicking on the Download link in the Apache
Portable Runtime Utility 1.4.1 Released section, then, on the
resulting page, click on the Other files link in the APR-util
1.4.1 is the best available version section.

However, a much better way, considering the directory path in the
error message below is to go to http://httpd.apache.org/ and download
both httpd-2.4.2.tar.bz2 and httpd-2.4.2-deps.tar.bz2.  The former
gets your the Apache HTTP Server source, and the latter gets you
versions of the source code of both APR and APR-Util that are
packaged to work with it.  Unpack both into the same directory, like
this:

tar jxf httpd-2.4.2.tar.bz2
tar jxf httpd-2.4.2-deps.tar.bz2

The source for httpd will be in httpd-2.4.2 while the source for APR
and APR-Utils will be in httpd-2.4.2/srclib (although you don't need
to know this).

Then follow the instructions at
https://httpd.apache.org/docs/2.4/install.html  (Be sure to read the
paragraph about PCRE in the Requirements section!)




make[1]: *** No rule to make target `crypto/apr_md5.c',
needed by `crypto/apr_md5.lo'.  Stop.
make[1]: Leaving directory
  /usr/local/src/httpd-2.4.2/apr-util-1.3.9+dfsg'
make: *** [all-recursive] Error 1

Anyone know how to fix this?

Since you're using a dubious version of APR-Util, I'm not even going
to try.  Please consider using a complete pre-packaged httpd+php
stack as described at the top of this message.  But if you are going
to build this from source, try again using the instructions above.
If you encounter problems, include the following information

- What configure command you used
- Any errors or warnings from the configure command.
- What operating system you're using (e.g., Fedora 17), including
version and platform-specific details (e.g., x86_64).


Good luck.  I hope this helps!

--
  Mark Montague
  m...@catseye.org


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


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



Re: [users@httpd] Segmentation fault error

2012-05-30 Thread Ishita Kapadiya
Thanks William. This is the stack output i got from mdb when core got
dumped. Also, when i google ap_mpm_pod_check then got to know that
there are lots of people who hits Apache bug.

Please refer this URL - http://www.gossamer-threads.com/lists/apache/bugs/414768

Also, i ran pfiles against the core file and i got

data model = _ILP32  flags = MSACCT|MSFORK
 /1:flags = 0
sigmask = 0xbeff,0x  cursig = SIGSEGV
 /2:defunct
 /3:flags = STOPPED  lwp_park(0x4,0x0,0x0)
why = PR_SUSPENDED
sigmask = 0xffbe6007,0xfff7
.. (rest of lines truncted)

I don't know much about debugging as i am not from developer
background but whatever o/p i got, looks like some bug with Apache
2.2.22.

Please revert.

On Wed, May 30, 2012 at 4:43 PM, William A. Rowe Jr.
wr...@rowe-clan.net wrote:
 You didn't dump the offending stack, you dumped the first stack.  It's highly
 unlikely there was a segfault in _read.

 You need to dump all the thread stacks, and work out the offending one; this 
 is
 usuallly designated  FAULT or some other indication of where the fault 
 occured.

 On 5/30/2012 10:32 AM, Ishita Kapadiya wrote:
 Thanks Nick.
 I have compiled Apache for myself both the time and both are 32-bit.
 The same modules all other instances are using and thus i am not sure
 what is different with this instance that causing Segmentation fault
 error.

 I tried to dig more into it and here is what i got -

 mdb core
 ::stack
 libc.so.1`_read+0xc(6, ffbff5e3, 1, 0, 10b4, fef73ac0)
 ap_mpm_pod_check+0x18(d6800, 68764, 68f8c, 1b7ec0, 0, 1)
 child_main+0x2d4(0, 682dc, 0, fee58000, fef73700, fedf2a00)
 make_child+0x128(9bc00, 0, 1, 9cc00, 9b400, 9c800)
 ap_mpm_run+0x740(fe720058, 4, 0, a, 1, 0)
 main+0x77c(a7810, 99c00, 9bc00, 9bc00, a5808, 0)
 _start+0x5c(0, 0, 0, 0, 0, 0)

 pstack core
  fef45874 _read    (6, ffbff5e3, 1, 0, 10b4, fef73ac0) + c
  0006b714 ap_mpm_pod_check (d6800, 68764, 68f8c, 1b7ec0, 0, 1) + 18
  000697b4 child_main (0, 682dc, 0, fee58000, fef73700, fedf2a00) + 2d4
  00069930 make_child (9bc00, 0, 1, 9cc00, 9b400, 9c800) + 128
  0006a160 ap_mpm_run (fe720058, 4, 0, a, 1, 0) + 740
  00029bc8 main     (a7810, 99c00, 9bc00, 9bc00, a5808, 0) + 77c
  00028f7c _start   (0, 0, 0, 0, 0, 0) + 5c

 pmap core
 0001     448K r-x--  /abc/apache-2.2.22/bin/httpd
 0008      32K r-x--
 00096000      24K rwx--  /abc/apache-2.2.22/bin/httpd
 0009C000      16K rwx--  /abc/apache-2.2.22/bin/httpd
 000A    6528K rwx--    [ heap ]
 FAB7A000       8K rw---    [ stack tid=36 ]
 ...
 (removed rest of the lines to avoid length)

 mdb /abc/apache-2.2.22/bin/httpd

 ::dis ap_mpm_pod_check!head
 ap_mpm_pod_check:               save      %sp, -0x78, %sp
 ap_mpm_pod_check+4:             ld        [%i0], %o1
 ap_mpm_pod_check+8:             call      +0x2d0e0      PLT:apr_os_file_get
 ap_mpm_pod_check+0xc:           add       %fp, -0x14, %o0
 ap_mpm_pod_check+0x10:          ld        [%fp - 0x14], %o0
 ap_mpm_pod_check+0x14:          add       %fp, -0x15, %o1
 ap_mpm_pod_check+0x18:          call      +0x2cdc4      PLT:read
 ap_mpm_pod_check+0x1c:          mov       1, %o2

 Please help me what could be the problem? It's affecting my production
 env and i really don't know what to do next?

 On Tue, May 29, 2012 at 7:15 PM, Nick Kew n...@webthing.com wrote:

 On 29 May 2012, at 23:11, Ishita Kapadiya wrote:

 Hi All,

 I am using this configurations -

 Solaris sparc 10/apache 2.2.22/openssl 1.0.0g/simteminder sso/mod-jk 1.30

 Did you compile everything yourself?

 If yes, could any compile options have changed?  E.g. between 32-bit and 
 64-bit,
 or something less obvious but just as important?

 If no, what suppliers do your binaries come from, and have you checked with 
 them?

 --
 Nick Kew
 -
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org


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





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


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



Re: [users@httpd] Build problem

2012-05-30 Thread Bill Vance
On Wed, May 30, 2012 at 08:54:32AM -0400, Mark Montague wrote:
Date: Wed, 30 May 2012 08:54:32 -0400
From: Mark Montague m...@catseye.org
Subject: Re: [users@httpd] Build problem


However, a much better way, considering the directory path in the
error message below is to go to http://httpd.apache.org/ and download
both httpd-2.4.2.tar.bz2 and httpd-2.4.2-deps.tar.bz2.  The former
gets your the Apache HTTP Server source, and the latter gets you
versions of the source code of both APR and APR-Util that are
packaged to work with it.  Unpack both into the same directory, like
this:

tar jxf httpd-2.4.2.tar.bz2
tar jxf httpd-2.4.2-deps.tar.bz2


Well, I tried it, but ./configure died with:

checking for tm_gmtoff in struct tm... yes
  adding -DAPR_DTRACE_PROVIDER to CPPFLAGS
configure: error: 'DTrace Support in the build
system is not complete. Patches Welcome!'

Ok, so now what do I do?

Bill

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



Re: [users@httpd] Segmentation fault error

2012-05-30 Thread Eric Covener
On Wed, May 30, 2012 at 5:59 PM, Ishita Kapadiya ishim...@gmail.com wrote:
 Thanks William. This is the stack output i got from mdb when core got
 dumped. Also, when i google ap_mpm_pod_check then got to know that
 there are lots of people who hits Apache bug.

It means lots of people post about the first thread that shows up in
gdb/dbx/pstack

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

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



Re: [users@httpd] Build problem

2012-05-30 Thread Mark Montague

On May 30, 2012 17:28 , Bill Vance p...@xpresso.seaslug.org wrote:

Actually I'm running KUbuntu 10.04, Lucid Lunatic, or Lynx, or
whatever that stupid name is, on an i386-32  One of the problems
here are utils like apt-get, aptitude, and synaptic, etc.


So load a fresh KUbuntu system -- at this point, I think you may have 
made enough changes to your current system that it might be difficult to 
get things to work -- and then do a web search for apache kubuntu.  
Here are some of the top search results, which seem to have simple, 
straightforward instructions for your particular situation:


http://phpweby.com/node/21
https://rockmanx.wordpress.com/2008/05/09/installing-ubuntus-apache2-local-webserver/



They
work real good if you only want to deal with .deb archives, but
don't seem to leave much in the way of a program directory behind
them, which some things require for working with them.


I don't understand this statement at all.  Program directory?  Require 
for working with them?  Normally you'd install a package and get some 
configuration files and startup scripts under /etc, some binaries under 
/usr/bin and /usr/sbin, and web pages under /var/www.  Customize your 
config file (set the server name, etc.), drop in your content or web 
application under /var/www, start the service, and you're up and running.



Actually I just tried your pre-package suggestion, and PHP5 started 
complaining about deprecated, #'s on line 0 in it's /etc/* files, 
and apache2 quit working at all.


This isn't enough information to help you.  You don't say which one 
pre-packaged Apache+PHP distribution you picked, how you installed it, 
what changes you made, nor what you tried that resulted in PHP complaining.


In any event, now that we know you're running on KUbuntu, I'd recommend 
not downloading a separate non-Ubuntu LAMP stack, but instead using what 
Kubuntu provides -- it's the easiest and most standard thing to do in 
your specific situation.


Also, take things in stages:  get Apache HTTP Server set up and serving 
static content first, then try getting PHP running.  If you have trouble 
with PHP inside the web server, then try running a PHP script from the 
command line -- if you can't get PHP to run from the command line, it 
will never run from inside the web server.


But, again, I suspect that you likely have several things that are 
messed up on your system from your previous attempts at installing and 
getting things working.  Start over with a fresh KUbuntu installation if 
possible.  If it's not possible to reload the system you've been working 
on, consider setting up a VM guest system in which to experiment and 
learn and get things working, which you can reload as many times as needed.



--
  Mark Montague
  m...@catseye.org


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



Re: [users@httpd] Segmentation fault error

2012-05-30 Thread Ishita Kapadiya
Hi Eric,

could you please let me know the next steps to mitigate Segfault error..

On Wed, May 30, 2012 at 6:30 PM, Eric Covener cove...@gmail.com wrote:
 On Wed, May 30, 2012 at 5:59 PM, Ishita Kapadiya ishim...@gmail.com wrote:
 Thanks William. This is the stack output i got from mdb when core got
 dumped. Also, when i google ap_mpm_pod_check then got to know that
 there are lots of people who hits Apache bug.

 It means lots of people post about the first thread that shows up in
 gdb/dbx/pstack

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

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


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



Re: [users@httpd] Build problem

2012-05-30 Thread Stormy

At 02:28 PM 5/30/2012 -0700, Bill Vance wrote:

On Wed, May 30, 2012 at 08:54:32AM -0400, Mark Montague wrote:
Date: Wed, 30 May 2012 08:54:32 -0400
From: Mark Montague m...@catseye.org
Subject: Re: [users@httpd] Build problem

On May 30, 2012 8:06 , Bill Vance p...@xpresso.seaslug.org wrote:
I'm new to the list, so this may allready be
addressed somewhere.  Basically, I', trying
to put the sources for apache2 and php,
etc., together, and I seem to be having some
heavy wading.

[snip]

Actually I'm running KUbuntu 10.04, Lucid Lunatic, or Lynx, or
whatever that stupid name is, on an i386-32  One of the problems
here are utils like apt-get, aptitude, and synaptic, etc.  They
work real good if you only want to deal with .deb archives, but
don't seem to leave much in the way of a program directory behind
them, which some things require for working with them.


Not sure why you need KDE for a server, but...

Maybe 10.04 is a bit long in the tooth?  I just rebuilt (Monday 
afternoon) from scratch an old i386-32 as a sandbox using Ubuntu 12.04 (the 
latest LTS), and had Apache 2.2.22 and PHP 5.3.10 (as well as MySQL 5.5.22) 
up and running in less than an hour. I used apt-get for each package 
(wanted MySQL, not Postgre which comes in the standard LAMP package 
available at installation time from the standard .iso).


The Ubuntu stupid name for 12.04 is Precise; maybe for you it would be 
Perfect?


HTH - Paul  



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



Re: [users@httpd] Build problem

2012-05-30 Thread Bill Vance
On Wed, May 30, 2012 at 07:11:51PM -0400, Stormy wrote:
Date: Wed, 30 May 2012 19:11:51 -0400
From: Stormy storm...@stormy.ca
Subject: Re: [users@httpd] Build problem

[snip]

Not sure why you need KDE for a server, but...

Maybe 10.04 is a bit long in the tooth?  I just rebuilt (Monday
afternoon) from scratch an old i386-32 as a sandbox using Ubuntu
12.04 (the latest LTS), and had Apache 2.2.22 and PHP 5.3.10 (as well
as MySQL 5.5.22) up and running in less than an hour. I used apt-get
for each package (wanted MySQL, not Postgre which comes in the
standard LAMP package available at installation time from the
standard .iso).


12.04 being just out, is having the usual KUbuntu string of
startup nightmares, so I think I'll pass on that one.

If I do a new OS at all, What I'm considering is CentOS.
That I'm hearing, is a deal more reliable than a bunch of
other systems.

Bill

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



Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?

2012-05-30 Thread Eric Covener
On Wed, May 30, 2012 at 3:06 PM, Eric Covener cove...@gmail.com wrote:
 Is there anything else I can do, like (e.g.) put the IP address as
 a hex constant or something in VirtualHost? Or disable this rather
 annoying feature?

 I'd suggest opening a bug report that something weird seems to happen
 with the literal IP address in the virtualHost arguments and that it
 works with *:80.


Sorry, just catching on now that Matus nailed it.  It's not so clear
what the code is trying to tolerate by comparing this way.

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

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



Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?

2012-05-30 Thread Eric Covener
On Wed, May 30, 2012 at 10:10 PM, Eric Covener cove...@gmail.com wrote:
 On Wed, May 30, 2012 at 3:06 PM, Eric Covener cove...@gmail.com wrote:
 Is there anything else I can do, like (e.g.) put the IP address as
 a hex constant or something in VirtualHost? Or disable this rather
 annoying feature?

 I'd suggest opening a bug report that something weird seems to happen
 with the literal IP address in the virtualHost arguments and that it
 works with *:80.


 Sorry, just catching on now that Matus nailed it.  It's not so clear
 what the code is trying to tolerate by comparing this way.

docs bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=53334

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