[users@httpd] compiling apache on ubuntu

2017-05-23 Thread Roberto Marzialetti
hi all!

i try to compile Apache 2.2.32 on:

[code]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
[/code]

this is my configure:

[code]
./configure --enable-rewrite --enable-vhost-alias --enable-so
--enable-ssl --enable-deflate --enable-headers
[/code]

i get this error on "make":

[code]
network_io/unix/sockaddr.c: In function ‘find_addresses’:
network_io/unix/sockaddr.c:518:20: error: storage size of ‘hs’ isn’t known
 struct hostent hs;
^
network_io/unix/sockaddr.c:551:14: warning: implicit declaration of
function ‘gethostbyname_r’ [-Wimplicit-function-declaration]
 hp = gethostbyname_r(hostname, , tmp, GETHOSTBYNAME_BUFLEN - 1,
  ^
network_io/unix/sockaddr.c:566:21: error: ‘h_errno’ undeclared (first
use in this function)
 return (h_errno + APR_OS_START_SYSERR);
 ^
network_io/unix/sockaddr.c:566:21: note: each undeclared identifier is
reported only once for each function it appears in
network_io/unix/sockaddr.c:573:14: error: dereferencing pointer to
incomplete type ‘struct hostent’
 while (hp->h_addr_list[curaddr]) {
[/code]

(i get the error without any options too)

in config.log there are these strage "unknown":

[code]
/usr/bin/uname -p = unknown
[...]
/bin/arch = unknown
[/code]

here my all config.log:

https://apaste.info/6Jbg

any idea?
many many thanks

i'm going crazy...


-- 
Roberto Marzialetti
webdeveloper
m. 329 0681847

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



Re: [users@httpd] Rewrite REMOTE_USER environment variable

2017-05-23 Thread Ken Mycock

Eric

It seems to make sense that REMOTE_USER wasn't set when the rule I tried in 
htaccess ran, as that would explain RU not being set.


But, REMOTE_USER must be set by Apache, even if it is late in the sequence, so 
where/how can I get at it?


Ken


On 23/05/2017 18:43, Eric Covener wrote:

On Tue, May 23, 2017 at 1:41 PM, Ken Mycock  wrote:

didn't set the RU environment variable either, so it's perhaps more
fundamental than not being allowed to rewrite REMOTE_USER.

IIUC It does not exist as an environment variable until right before
the CGI is executed.




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



Re: [users@httpd] Rewrite REMOTE_USER environment variable

2017-05-23 Thread Eric Covener
On Tue, May 23, 2017 at 1:41 PM, Ken Mycock  wrote:
> didn't set the RU environment variable either, so it's perhaps more
> fundamental than not being allowed to rewrite REMOTE_USER.

IIUC It does not exist as an environment variable until right before
the CGI is executed.

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



Re: [users@httpd] Rewrite REMOTE_USER environment variable

2017-05-23 Thread Ken Mycock

Rainer

Thanks, but unfortunately that didn't work.  Does 
 have any relevance here?


Changing the rule to:
RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+)
RewriteRule ^ -  [env=RU:%1]
didn't set the RU environment variable either, so it's perhaps more fundamental 
than not being allowed to rewrite REMOTE_USER.


Ken

On 23/05/2017 14:20, Rainer Canavan wrote:

On Tue, May 23, 2017 at 2:10 PM, Ken Mycock  wrote:
[...]


Hence, we need to allow authentication of either form of number but to strip
leading zeros from the number stored in REMOTE_USER.

I've tried various combinations of:
RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+)
RewriteRule ^0*([1-9]+)$ [E=RU:$1]

I haven't tested it, but I think

RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+)
RewriteRule ^ -  [env=REMOTE_USER:%1]

might work. The RewriteRule does nothing to the current location,
and sets REMOTE_USER from a backreference on the RewriteCond
matches.

rainer

-
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] Rewrite REMOTE_USER environment variable

2017-05-23 Thread Eric Covener
In case rewrite does not work at all, you could call your scripts via
"Action" and change the environment in a simple shell script.

(the likely reason changing REMOTE_USER is hard is related to when it
is set from internal variables and when things have a chance to
override it)

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



Re: [users@httpd] Rewrite REMOTE_USER environment variable

2017-05-23 Thread Rainer Canavan
On Tue, May 23, 2017 at 2:10 PM, Ken Mycock  wrote:
[...]

> Hence, we need to allow authentication of either form of number but to strip
> leading zeros from the number stored in REMOTE_USER.
>
> I've tried various combinations of:
> RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+)
> RewriteRule ^0*([1-9]+)$ [E=RU:$1]

I haven't tested it, but I think

RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+)
RewriteRule ^ -  [env=REMOTE_USER:%1]

might work. The RewriteRule does nothing to the current location,
and sets REMOTE_USER from a backreference on the RewriteCond
matches.

rainer

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



RE: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Alexandru Duzsardi
Yes , i looked at the configure script again , i was used to seeing some mpm in 
the name when listing the loaded modules :)

I don’t think i ever compliled apache with statically linked mpm modules , 
sorry for the confusion.

 

>From the configure script help:

 

  --with-mpm=MPM  Choose the process model for Apache to use by

  default. MPM={event|worker|prefork|winnt} This will

  be statically linked as the only available MPM

  unless --enable-mpms-shared is also specified

 

 

 

From: Velmurugan Dhakshnamoorthy [mailto:dvel@gmail.com] 
Sent: Tuesday, May 23, 2017 3:40 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

 

hi,

 

here is the list of loaded modules.seems, there is a mpm_event_module is 
enabled. but I would like to use prefork module to do some testing on 
connection queuing. how do I move forward now? please suggest.

 

 core_module (static)

 so_module (static)

 http_module (static)

 mpm_event_module (static)

 authn_file_module (shared)

 authn_core_module (shared)

 authz_host_module (shared)

 authz_groupfile_module (shared)

 authz_user_module (shared)

 authz_core_module (shared)

 access_compat_module (shared)

 auth_basic_module (shared)

 reqtimeout_module (shared)

 filter_module (shared)

 mime_module (shared)

 log_config_module (shared)

 env_module (shared)

 headers_module (shared)

 setenvif_module (shared)

 version_module (shared)

 ssl_module (shared)

 unixd_module (shared)

 status_module (shared)

 autoindex_module (shared)

 dir_module (shared)

 alias_module (shared)

 weblogic_module (shared)

 qos_module (shared)

 




 

Regards,

Velmurugan Dhakshnamoorthy (Vel)

Singapore.

 

On Tue, May 23, 2017 at 8:30 PM, Daniel  > wrote:

2017-05-23 14:28 GMT+02:00 Alexandru Duzsardi
 >:
> That’s good , no mpm compiled in .
>
> What about httpd –M ?
>

It clearly says event.c

So yes, mpm compiled in.





--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com  
linkedin es.linkedin.com/in/danielferradal 
 

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

 



Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Velmurugan Dhakshnamoorthy
hi,

here is the list of loaded modules.seems, there is a mpm_event_module is
enabled. but I would like to use prefork module to do some testing on
connection queuing. how do I move forward now? please suggest.

 core_module (static)
 so_module (static)
 http_module (static)
 mpm_event_module (static)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
 ssl_module (shared)
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)
 weblogic_module (shared)
 qos_module (shared)



Regards,
Velmurugan Dhakshnamoorthy (Vel)
Singapore.

On Tue, May 23, 2017 at 8:30 PM, Daniel  wrote:

> 2017-05-23 14:28 GMT+02:00 Alexandru Duzsardi
> :
> > That’s good , no mpm compiled in .
> >
> > What about httpd –M ?
> >
>
> It clearly says event.c
>
> So yes, mpm compiled in.
>
>
>
>
> --
> Daniel Ferradal
> IT Specialist
>
> email dferradal at gmail.com
> linkedin es.linkedin.com/in/danielferradal
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Daniel
event.c is mpm_event compiled in.

2017-05-23 14:35 GMT+02:00 Alexandru Duzsardi
:
> Although not sure what event.c is , since there is no module with that
> identifier and the mpm module should have been named somthing like
> mpm_name_module
>
> To be sure , you should also check your log files and see if it says
> something about mpm_event when starting apache.
>
>
>
>
>
> From: Velmurugan Dhakshnamoorthy [mailto:dvel@gmail.com]
> Sent: Tuesday, May 23, 2017 2:38 PM
>
>
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module
>
>
>
> the output is as follows.
>
>
>
> Compiled in modules:
>
>   core.c
>
>   mod_so.c
>
>   http_core.c
>
>   event.c
>
>
>
>
>
> Regards,
>
> Vel
>
>
>
>
> Regards,
>
> Velmurugan Dhakshnamoorthy (Vel)
>
> Singapore.
>
>
>
> On Tue, May 23, 2017 at 4:24 PM, Alexandru Duzsardi
>  wrote:
>
> What is the output of
>
>
>
> httpd -l
>
>
>
> (that’s a lowercase -L)
>
>
>
> 
>
>
>
> From: Luca Toscano [mailto:toscano.l...@gmail.com]
> Sent: Tuesday, May 23, 2017 11:12 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module
>
>
>
> Hi!
>
>
>
> Probably you have another LoadModule some-mpm in one of the included files
> (look for Include in your httpd config), can you double check?
>
>
>
> Luca
>
>
>
> 2017-05-23 10:07 GMT+02:00 Velmurugan Dhakshnamoorthy :
>
> But,  I am loading only one,  others are commented out.
>
>
>
> Thanks.
>
>
>
> On May 23, 2017 14:36, "Daniel"  wrote:
>
> Of course, you should not load different mpm modules, only one at a
> time. Load only the one you need.
>
> 2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy :
>> thanks, I installed the preform using "--enable-mpms-shared=all" , now
>> when
>> I try to start the apache,
>>
>>  it throws an error "AH00534: httpd: Configuration error: More than one
>> MPM
>> loaded"
>>
>> LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
>> #LoadModule mpm_worker_module modules/mod_mpm_worker.so
>> #LoadModule mpm_event_module modules/mod_mpm_event.so
>>
>>
>>
>> Regards,
>> Velmurugan Dhakshnamoorthy (Vel)
>>
>>
>> On Mon, May 22, 2017 at 7:49 PM, Daniel  wrote:
>>>
>>> You should ask the maintainer of the installation source from where
>>> you got that Apache installation.
>>>
>>> If you compiled it yourself make sure to have this options with
>>> configure:
>>> --enable-mpms-shared=all
>>>
>>> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
>>> :
>>> > Dear,
>>> > Any help how do I explicitly  install and enable mod_prefork module for
>>> > Apache 2.4.15 proxy.
>>> >
>>> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
>>> > is
>>> > not installed,  cannot see it in modules folder.
>>> >
>>> > Please help.
>>> >
>>> > Regards,
>>> > Vel
>>>
>>>
>>>
>>> --
>>> Daniel Ferradal
>>> IT Specialist
>>>
>>> email dferradal at gmail.com
>>> linkedin es.linkedin.com/in/danielferradal
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>>
>>
>
>
>
> --
> Daniel Ferradal
> IT Specialist
>
> email dferradal at gmail.com
> linkedin es.linkedin.com/in/danielferradal
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>
>
>



-- 
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

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



RE: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Alexandru Duzsardi
Although not sure what event.c is , since there is no module with that 
identifier and the mpm module should have been named somthing like 
mpm_name_module

To be sure , you should also check your log files and see if it says something 
about mpm_event when starting apache.

 

 

From: Velmurugan Dhakshnamoorthy [mailto:dvel@gmail.com] 
Sent: Tuesday, May 23, 2017 2:38 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

 

the output is as follows.

 

Compiled in modules:

  core.c

  mod_so.c

  http_core.c

  event.c

 

 

Regards,

Vel




 

Regards,

Velmurugan Dhakshnamoorthy (Vel)

Singapore.

 

On Tue, May 23, 2017 at 4:24 PM, Alexandru Duzsardi 
 > wrote:

What is the output of

 

httpd -l

 

(that’s a lowercase -L)

 

 

 

From: Luca Toscano [mailto:toscano.l...@gmail.com 
 ] 
Sent: Tuesday, May 23, 2017 11:12 AM
To: users@httpd.apache.org  
Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

 

Hi! 

 

Probably you have another LoadModule some-mpm in one of the included files 
(look for Include in your httpd config), can you double check?

 

Luca

 

2017-05-23 10:07 GMT+02:00 Velmurugan Dhakshnamoorthy  >:

But,  I am loading only one,  others are commented out. 

 

Thanks.

 

On May 23, 2017 14:36, "Daniel"  > wrote:

Of course, you should not load different mpm modules, only one at a
time. Load only the one you need.

2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy  >:
> thanks, I installed the preform using "--enable-mpms-shared=all" , now when
> I try to start the apache,
>
>  it throws an error "AH00534: httpd: Configuration error: More than one MPM
> loaded"
>
> LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
> #LoadModule mpm_worker_module modules/mod_mpm_worker.so
> #LoadModule mpm_event_module modules/mod_mpm_event.so
>
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
>
>
> On Mon, May 22, 2017 at 7:49 PM, Daniel   > wrote:
>>
>> You should ask the maintainer of the installation source from where
>> you got that Apache installation.
>>
>> If you compiled it yourself make sure to have this options with configure:
>> --enable-mpms-shared=all
>>
>> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
>>  >:
>> > Dear,
>> > Any help how do I explicitly  install and enable mod_prefork module for
>> > Apache 2.4.15 proxy.
>> >
>> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
>> > is
>> > not installed,  cannot see it in modules folder.
>> >
>> > Please help.
>> >
>> > Regards,
>> > Vel
>>
>>
>>
>> --
>> Daniel Ferradal
>> IT Specialist
>>
>> email dferradal at gmail.com  
>> linkedin es.linkedin.com/in/danielferradal 
>>  
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org 
>>  
>> For additional commands, e-mail: users-h...@httpd.apache.org 
>>  
>>
>



--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com  
linkedin es.linkedin.com/in/danielferradal 
 

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

 

 



Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Daniel
2017-05-23 14:28 GMT+02:00 Alexandru Duzsardi
:
> That’s good , no mpm compiled in .
>
> What about httpd –M ?
>

It clearly says event.c

So yes, mpm compiled in.




-- 
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

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



RE: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Alexandru Duzsardi
That’s good , no mpm compiled in .

What about httpd –M ?

 

From: Velmurugan Dhakshnamoorthy [mailto:dvel@gmail.com] 
Sent: Tuesday, May 23, 2017 2:38 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

 

the output is as follows.

 

Compiled in modules:

  core.c

  mod_so.c

  http_core.c

  event.c

 

 

Regards,

Vel




 

Regards,

Velmurugan Dhakshnamoorthy (Vel)

Singapore.

 

On Tue, May 23, 2017 at 4:24 PM, Alexandru Duzsardi 
 > wrote:

What is the output of

 

httpd -l

 

(that’s a lowercase -L)

 

 

 

From: Luca Toscano [mailto:toscano.l...@gmail.com 
 ] 
Sent: Tuesday, May 23, 2017 11:12 AM
To: users@httpd.apache.org  
Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

 

Hi! 

 

Probably you have another LoadModule some-mpm in one of the included files 
(look for Include in your httpd config), can you double check?

 

Luca

 

2017-05-23 10:07 GMT+02:00 Velmurugan Dhakshnamoorthy  >:

But,  I am loading only one,  others are commented out. 

 

Thanks.

 

On May 23, 2017 14:36, "Daniel"  > wrote:

Of course, you should not load different mpm modules, only one at a
time. Load only the one you need.

2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy  >:
> thanks, I installed the preform using "--enable-mpms-shared=all" , now when
> I try to start the apache,
>
>  it throws an error "AH00534: httpd: Configuration error: More than one MPM
> loaded"
>
> LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
> #LoadModule mpm_worker_module modules/mod_mpm_worker.so
> #LoadModule mpm_event_module modules/mod_mpm_event.so
>
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
>
>
> On Mon, May 22, 2017 at 7:49 PM, Daniel   > wrote:
>>
>> You should ask the maintainer of the installation source from where
>> you got that Apache installation.
>>
>> If you compiled it yourself make sure to have this options with configure:
>> --enable-mpms-shared=all
>>
>> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
>>  >:
>> > Dear,
>> > Any help how do I explicitly  install and enable mod_prefork module for
>> > Apache 2.4.15 proxy.
>> >
>> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
>> > is
>> > not installed,  cannot see it in modules folder.
>> >
>> > Please help.
>> >
>> > Regards,
>> > Vel
>>
>>
>>
>> --
>> Daniel Ferradal
>> IT Specialist
>>
>> email dferradal at gmail.com  
>> linkedin es.linkedin.com/in/danielferradal 
>>  
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org 
>>  
>> For additional commands, e-mail: users-h...@httpd.apache.org 
>>  
>>
>



--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com  
linkedin es.linkedin.com/in/danielferradal 
 

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

 

 



[users@httpd] Rewrite REMOTE_USER environment variable

2017-05-23 Thread Ken Mycock
I am involved in migrating a legacy site, using Apache authentication and cgi 
scripts, to a CMS based site which uses its own access control.


The legacy site used  membership numbers as the user name, but the CMS site uses 
zero padded versions of those numbers.  So a user logging in to the legacy site 
would enter 10123, but 00010123 on the CMS site.  For consistency of user 
experience, we need to allow either form to pass Apache authentication - no 
problem as both forms are now included in the password file.


However, several hundred of the legacy cgi scripts read the REMOTE_USER 
environment variable to use as a key to identifying the member in the legacy 
database.  This lookup fails for users who log in with the zero padded form of 
number.


Hence, we need to allow authentication of either form of number but to strip 
leading zeros from the number stored in REMOTE_USER.


I've tried various combinations of:
RewriteCond %{REMOTE_USER} ^0*([1-9][0-9]+)
RewriteRule ^0*([1-9]+)$ [E=RU:$1]
#SetEnvIfNoCase ^REMOTE.USER$ ^0*([1-9][0-9]+) RU=$1
RequestHeader set REMOTE-USER %{RU}e env=REMOTE_USER

From the documentation, I know that this sort of manipulation was easy before 
Apache 2.4, but now needs a work-around.  What work-around should I use?  As 
we're on a shared server, the solution has to be implemented in htaccess, not 
httpd.conf.


Ken


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



Re: [users@httpd] Re: Reg : Limiting http connections at Apache 2.4.25

2017-05-23 Thread Daniel
You should not "compile in" any MPM, compile them all as modules and
load one in configuration. That just reveals you probably didn't use
"--enable-mpms-shared"

As per configure script help:
  --with-mpm=MPM  Choose the process model for Apache to use by
  default. MPM={event|worker|prefork|winnt} This will
  be statically linked as the only available MPM
  unless --enable-mpms-shared is also specified.

Try again with something like:
--enable-mpms-shared=all --with-mpm=event

Issue a "make clean" first if necessary.

2017-05-23 13:42 GMT+02:00 Velmurugan Dhakshnamoorthy :
> Hi,
> Is there any parameter to be enabled for Apache to identify the back-end
> connection as a persistent. Is Apache proxy connections stateless?
>
> when using mod_qos, I need Apache to consider ONLY the persistent connection
> for any restrictions related connections.
>
> Regards,
> Vel
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
> Singapore.
>
> On Tue, May 9, 2017 at 9:52 AM, Velmurugan Dhakshnamoorthy
>  wrote:
>>
>> Hi,
>> sorry to trouble again. I used "QS_SrvMaxConn" parameter in mod_qos to
>> restrict sessions, it does restriction but based on HTTP TCP connection
>> based, but I would like to restrict session based. Apache has to count the
>> persistent connection with back-end server and then restrict further
>> connections.
>>
>> is this feasible to consider the persistent connection after
>> authentication done by webblogic, may be through cookie?
>>
>> Regards,
>> Vel
>>
>>
>> Regards,
>> Velmurugan Dhakshnamoorthy (Vel)
>> Singapore.
>>
>> On Thu, Apr 27, 2017 at 5:03 PM, Luca Toscano 
>> wrote:
>>>
>>> Hi!
>>>
>>> The closest option seems to be
>>> http://mod-qos.sourceforge.net/#connectionlevelcontrol but I don't have a
>>> lot of experience about it so you'll need to make some tests :)
>>>
>>> Luca
>>>
>>>
>>> 2017-04-26 13:29 GMT+02:00 Velmurugan Dhakshnamoorthy
>>> :

 Thanks Luca,  your help is much appreciated.

 I was able to compile and load mod_qos in Apache 2.4.25 proxy.
 There are many parameters related to QOS,  I am trying to implement a
 parameter to restrict HTTP session beyond specified limit,  example I would
 like to allow only maximum 100 connections,  beyond that should throw an
 error.

 Regards,
 Vel

 On Apr 21, 2017 18:52, "Luca Toscano"  wrote:
>
> Hi,
>
> I think that you'd just need to install httpd without any reference to
> mod_qos (that is a third party module, so configure is not aware of it) 
> and
> finally use apxs to compile/install the new module (more info in
> https://httpd.apache.org/docs/2.4/programs/apxs.html).
>
> I'd also suggest to test it with httpd 2.4.25 rather than 2.2.27 :)
>
> Hope that helps!
>
> Luca
>
> 2017-04-21 8:29 GMT+02:00 Velmurugan Dhakshnamoorthy
> :
>>
>> Hi Luca,
>> I am trying to use the mod_qos mod_qos-11.39. Is this applicable for
>> Apache 2.4.25 reverse proxy in Red Hat Enterprise Linux 7.2. I followed 
>> the
>> below command. however, mod_qos.so file is not getting created though I
>> don't see any error with below commands. I am using non-root privileged
>> account.
>>
>> I tried compiling it using "apxs -i -c mod_qos.c -lcrypto -lpcre" ,
>> but could not succeed.
>> any help ?
>>
>> tar xfz httpd-2.2.27.tar.gz
>> tar xfz mod_qos-11.39-src.tar.gz
>> ln -s httpd-2.2.27 httpd
>> cd httpd
>> mkdir modules/qos
>> cp ../mod_qos-11.39/apache2/* modules/qos
>> ./buildconf
>> ./configure --with-mpm=worker --enable-so --enable-qos=shared
>> --enable-ssl --enable-unique-id
>> make
>>
>>
>> Regards,
>> Velmurugan Dhakshnamoorthy (Vel)
>> Singapore.
>>
>> On Tue, Apr 18, 2017 at 2:51 PM, Luca Toscano 
>> wrote:
>>>
>>> Not sure what is the status of mod_qos (third party module), but you
>>> might want to give it a try and see if it fits your needs!
>>>
>>> http://mod-qos.sourceforge.net/#requestlevelcontrol
>>>
>>> Luca
>>>
>>> 2017-04-17 3:08 GMT+02:00 Velmurugan Dhakshnamoorthy
>>> :

 Dear All,
 Any specific setup to cut and disallow the the further HTTP
 connections after specified limit (ex: 50 sessions?).

 My requirement is to allow only 50 users and 51st user should get a
 custom error message to login after sometime.

 Regards,
 Vel

 On Mar 16, 2017 21:30, "Velmurugan Dhakshnamoorthy"
  wrote:
>
> Thanks for response,
>
> Yes my requirement is to completely 

Re: [users@httpd] Re: Reg : Limiting http connections at Apache 2.4.25

2017-05-23 Thread Velmurugan Dhakshnamoorthy
Hi,
Is there any parameter to be enabled for Apache to identify the back-end
connection as a persistent. Is Apache proxy connections stateless?

when using mod_qos, I need Apache to consider ONLY the persistent
connection for any restrictions related connections.

Regards,
Vel


Regards,
Velmurugan Dhakshnamoorthy (Vel)
Singapore.

On Tue, May 9, 2017 at 9:52 AM, Velmurugan Dhakshnamoorthy <
dvel@gmail.com> wrote:

> Hi,
> sorry to trouble again. I used "QS_SrvMaxConn" parameter in mod_qos to
> restrict sessions, it does restriction but based on HTTP TCP connection
> based, but I would like to restrict session based. Apache has to count the
> persistent connection with back-end server and then restrict further
> connections.
>
> is this feasible to consider the persistent connection after
> authentication done by webblogic, may be through cookie?
>
> Regards,
> Vel
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
> Singapore.
>
> On Thu, Apr 27, 2017 at 5:03 PM, Luca Toscano 
> wrote:
>
>> Hi!
>>
>> The closest option seems to be http://mod-qos.sourceforge.
>> net/#connectionlevelcontrol but I don't have a lot of experience about
>> it so you'll need to make some tests :)
>>
>> Luca
>>
>>
>> 2017-04-26 13:29 GMT+02:00 Velmurugan Dhakshnamoorthy > >:
>>
>>> Thanks Luca,  your help is much appreciated.
>>>
>>> I was able to compile and load mod_qos in Apache 2.4.25 proxy.
>>> There are many parameters related to QOS,  I am trying to implement a
>>> parameter to restrict HTTP session beyond specified limit,  example I would
>>> like to allow only maximum 100 connections,  beyond that should throw an
>>> error.
>>>
>>> Regards,
>>> Vel
>>>
>>> On Apr 21, 2017 18:52, "Luca Toscano"  wrote:
>>>
 Hi,

 I think that you'd just need to install httpd without any reference to
 mod_qos (that is a third party module, so configure is not aware of it) and
 finally use apxs to compile/install the new module (more info in
 https://httpd.apache.org/docs/2.4/programs/apxs.html).

 I'd also suggest to test it with httpd 2.4.25 rather than 2.2.27 :)

 Hope that helps!

 Luca

 2017-04-21 8:29 GMT+02:00 Velmurugan Dhakshnamoorthy <
 dvel@gmail.com>:

> Hi Luca,
> I am trying to use the mod_qos mod_qos-11.39. Is this applicable for
> Apache 2.4.25 reverse proxy in Red Hat Enterprise Linux 7.2. I followed 
> the
> below command. however, mod_qos.so file is not getting created though I
> don't see any error with below commands. I am using non-root privileged
> account.
>
> I tried compiling it using "apxs -i -c mod_qos.c -lcrypto -lpcre" ,
> but could not succeed.
> any help ?
>
> tar xfz httpd-2.2.27.tar.gz
> tar xfz mod_qos-11.39-src.tar.gz
> ln -s httpd-2.2.27 httpd
> cd httpd
> mkdir modules/qos
> cp ../mod_qos-11.39/apache2/* modules/qos
> ./buildconf
> ./configure --with-mpm=worker --enable-so --enable-qos=shared
> --enable-ssl --enable-unique-id
> make
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
> Singapore.
>
> On Tue, Apr 18, 2017 at 2:51 PM, Luca Toscano 
> wrote:
>
>> Not sure what is the status of mod_qos (third party module), but you
>> might want to give it a try and see if it fits your needs!
>>
>> http://mod-qos.sourceforge.net/#requestlevelcontrol
>>
>> Luca
>>
>> 2017-04-17 3:08 GMT+02:00 Velmurugan Dhakshnamoorthy <
>> dvel@gmail.com>:
>>
>>> Dear All,
>>> Any specific setup to cut and disallow the the further HTTP
>>> connections after specified limit (ex: 50 sessions?).
>>>
>>> My requirement is to allow only 50 users and 51st user should get a
>>> custom error message to login after sometime.
>>>
>>> Regards,
>>> Vel
>>>
>>> On Mar 16, 2017 21:30, "Velmurugan Dhakshnamoorthy" <
>>> dvel@gmail.com> wrote:
>>>
 Thanks for response,

 Yes my requirement is to completely restrict/disalllow any further
 connections, example I want to allow only 50 sessions,  51st connection
 should get an error message to login later  after certain period of 
 time.


 Regards,
 Vel

 On Mar 16, 2017 18:58, "Nick Kew"  wrote:

> On Thu, 2017-03-16 at 02:05 +0100, Daniel wrote:
> > See about mpm settings/directives such as MaxRequestWorkers,
> which
> > will limit the number of concurrent requests your server can
> take.
>
> Indeed, but I don't think that's what the OP is looking for in an
> apache proxy.  Rather the proxy reply with a "too busy" error page
> than not take the connection at all, right?
>
> The proxy balancer would be a 

Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Velmurugan Dhakshnamoorthy
the output is as follows.

Compiled in modules:
  core.c
  mod_so.c
  http_core.c
  event.c


Regards,
Vel


Regards,
Velmurugan Dhakshnamoorthy (Vel)
Singapore.

On Tue, May 23, 2017 at 4:24 PM, Alexandru Duzsardi <
alexandru.duzsa...@pitechnologies.ro> wrote:

> What is the output of
>
>
>
> httpd -l
>
>
>
> (that’s a lowercase -L)
>
>
>
> 
>
>
>
> *From:* Luca Toscano [mailto:toscano.l...@gmail.com]
> *Sent:* Tuesday, May 23, 2017 11:12 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork
> module
>
>
>
> Hi!
>
>
>
> Probably you have another LoadModule some-mpm in one of the included files
> (look for Include in your httpd config), can you double check?
>
>
>
> Luca
>
>
>
> 2017-05-23 10:07 GMT+02:00 Velmurugan Dhakshnamoorthy  >:
>
> But,  I am loading only one,  others are commented out.
>
>
>
> Thanks.
>
>
>
> On May 23, 2017 14:36, "Daniel"  wrote:
>
> Of course, you should not load different mpm modules, only one at a
> time. Load only the one you need.
>
> 2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy :
> > thanks, I installed the preform using "--enable-mpms-shared=all" , now
> when
> > I try to start the apache,
> >
> >  it throws an error "AH00534: httpd: Configuration error: More than one
> MPM
> > loaded"
> >
> > LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
> > #LoadModule mpm_worker_module modules/mod_mpm_worker.so
> > #LoadModule mpm_event_module modules/mod_mpm_event.so
> >
> >
> >
> > Regards,
> > Velmurugan Dhakshnamoorthy (Vel)
> >
> >
> > On Mon, May 22, 2017 at 7:49 PM, Daniel  wrote:
> >>
> >> You should ask the maintainer of the installation source from where
> >> you got that Apache installation.
> >>
> >> If you compiled it yourself make sure to have this options with
> configure:
> >> --enable-mpms-shared=all
> >>
> >> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
> >> :
> >> > Dear,
> >> > Any help how do I explicitly  install and enable mod_prefork module
> for
> >> > Apache 2.4.15 proxy.
> >> >
> >> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
> >> > is
> >> > not installed,  cannot see it in modules folder.
> >> >
> >> > Please help.
> >> >
> >> > Regards,
> >> > Vel
> >>
> >>
> >>
> >> --
> >> Daniel Ferradal
> >> IT Specialist
> >>
> >> email dferradal at gmail.com
> >> linkedin es.linkedin.com/in/danielferradal
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> >> For additional commands, e-mail: users-h...@httpd.apache.org
> >>
> >
>
>
>
> --
> Daniel Ferradal
> IT Specialist
>
> email dferradal at gmail.com
> linkedin es.linkedin.com/in/danielferradal
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>
>


Re: [users@httpd] http/2 vs. Headername

2017-05-23 Thread Hajo Locke

Hello,

thanks for this hint. I compiled v1.10.5 
 and replaced 
version which is bundled with apache 2.4.25.

It seems to work now. Browsers and curl show webpage now.
So i think we will have this bugfix already included in next version 
which is officially released.


Thanks,
Hajo

Am 23.05.2017 um 11:36 schrieb Luca Toscano:

Hi Hajo,

any chance that you could download/build/test the latest release of 
https://github.com/icing/mod_h2/releases ?


Luca

2017-05-23 11:30 GMT+02:00 Hajo Locke >:


Hello,

no one has an idea? Currently i believe this is a kind of apache bug.
I compiled curl with http2 Support to view more debugdetails:

curl -v --http2 https://example.com/

*   Trying ip.ip.ip.ip...
* Connected to example.com  (ip.ip.ip.ip) port
443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
*server certificate verification OK
*server certificate status verification SKIPPED
*common name: example.com  (matched)
*server certificate expiration date OK
*server certificate activation date OK
*certificate public key: RSA
*certificate version: #3
*subject: CN=example.com 
*start date: Mon, 22 May 2017 05:04:00 GMT
*expire date: Sun, 20 Aug 2017 05:04:00 GMT
*issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
*compression: NULL
* ALPN, server accepted to use h2
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after
upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55c2a77b4bd0)
> GET / HTTP/1.1
> Host: example.com 
> User-Agent: curl/7.47.0
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
* HTTP/2 stream 1 was not closed cleanly: error_code = 1
* Closing connection 0
curl: (16) HTTP/2 stream 1 was not closed cleanly: error_code = 1

Same problem as in webbrowsers.
problem can be avoided by disabling http2 modul or by removing
Headername from .htaccess. Both is not intended.
Somebody can confirm this problem?

Thanks,
Hajo


Am 22.05.2017 um 09:22 schrieb Hajo Locke:

Apache 2.4.25

Hello,

i have a small .htaccess with following content to view
Foldercontents:
###
Options +Indexes
Headername /foo/bar.htm
###
This is working by http, but fails in https if browser uses http/2.
Chrome Message: ERR_SPDY_PROTOCOL_ERROR
Firefox: Secure Connection Failed

I dont see **any error in my logs, http/2 Browsers just stop loading.
When disabling http/2, also https is working.
What to do now?

Thanks,
Hajo








Re: [users@httpd] http/2 vs. Headername

2017-05-23 Thread Luca Toscano
Hi Hajo,

any chance that you could download/build/test the latest release of
https://github.com/icing/mod_h2/releases ?

Luca

2017-05-23 11:30 GMT+02:00 Hajo Locke :

> Hello,
>
> no one has an idea? Currently i believe this is a kind of apache bug.
> I compiled curl with http2 Support to view more debugdetails:
>
> curl -v --http2 https://example.com/
>
> *   Trying ip.ip.ip.ip...
> * Connected to example.com (ip.ip.ip.ip) port 443 (#0)
> * found 173 certificates in /etc/ssl/certs/ca-certificates.crt
> * found 696 certificates in /etc/ssl/certs
> * ALPN, offering h2
> * ALPN, offering http/1.1
> * SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
> *server certificate verification OK
> *server certificate status verification SKIPPED
> *common name: example.com (matched)
> *server certificate expiration date OK
> *server certificate activation date OK
> *certificate public key: RSA
> *certificate version: #3
> *subject: CN=example.com
> *start date: Mon, 22 May 2017 05:04:00 GMT
> *expire date: Sun, 20 Aug 2017 05:04:00 GMT
> *issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
> *compression: NULL
> * ALPN, server accepted to use h2
> * Using HTTP2, server supports multi-use
> * Connection state changed (HTTP/2 confirmed)
> * TCP_NODELAY set
> * Copying HTTP/2 data in stream buffer to connection buffer after upgrade:
> len=0
> * Using Stream ID: 1 (easy handle 0x55c2a77b4bd0)
> > GET / HTTP/1.1
> > Host: example.com
> > User-Agent: curl/7.47.0
> > Accept: */*
> >
> * Connection state changed (MAX_CONCURRENT_STREAMS updated)!
> * HTTP/2 stream 1 was not closed cleanly: error_code = 1
> * Closing connection 0
> curl: (16) HTTP/2 stream 1 was not closed cleanly: error_code = 1
>
> Same problem as in webbrowsers.
> problem can be avoided by disabling http2 modul or by removing Headername
> from .htaccess. Both is not intended.
> Somebody can confirm this problem?
>
> Thanks,
> Hajo
>
>
> Am 22.05.2017 um 09:22 schrieb Hajo Locke:
>
> Apache 2.4.25
>
> Hello,
>
> i have a small .htaccess with following content to view Foldercontents:
> ###
> Options +Indexes
> Headername /foo/bar.htm
> ###
> This is working by http, but fails in https if browser uses http/2.
> Chrome Message: ERR_SPDY_PROTOCOL_ERROR
> Firefox: Secure Connection Failed
>
> I dont see any error in my logs, http/2 Browsers just stop loading.
> When disabling http/2, also https is working.
> What to do now?
>
> Thanks,
> Hajo
>
>
>


Re: [users@httpd] http/2 vs. Headername

2017-05-23 Thread Hajo Locke

Hello,

no one has an idea? Currently i believe this is a kind of apache bug.
I compiled curl with http2 Support to view more debugdetails:

curl -v --http2 https://example.com/

*   Trying ip.ip.ip.ip...
* Connected to example.com (ip.ip.ip.ip) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
*server certificate verification OK
*server certificate status verification SKIPPED
*common name: example.com (matched)
*server certificate expiration date OK
*server certificate activation date OK
*certificate public key: RSA
*certificate version: #3
*subject: CN=example.com
*start date: Mon, 22 May 2017 05:04:00 GMT
*expire date: Sun, 20 Aug 2017 05:04:00 GMT
*issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
*compression: NULL
* ALPN, server accepted to use h2
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after 
upgrade: len=0

* Using Stream ID: 1 (easy handle 0x55c2a77b4bd0)
> GET / HTTP/1.1
> Host: example.com
> User-Agent: curl/7.47.0
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
* HTTP/2 stream 1 was not closed cleanly: error_code = 1
* Closing connection 0
curl: (16) HTTP/2 stream 1 was not closed cleanly: error_code = 1

Same problem as in webbrowsers.
problem can be avoided by disabling http2 modul or by removing 
Headername from .htaccess. Both is not intended.

Somebody can confirm this problem?

Thanks,
Hajo

Am 22.05.2017 um 09:22 schrieb Hajo Locke:

Apache 2.4.25

Hello,

i have a small .htaccess with following content to view Foldercontents:
###
Options +Indexes
Headername /foo/bar.htm
###
This is working by http, but fails in https if browser uses http/2.
Chrome Message: ERR_SPDY_PROTOCOL_ERROR
Firefox: Secure Connection Failed

I dont see **any error in my logs, http/2 Browsers just stop loading.
When disabling http/2, also https is working.
What to do now?

Thanks,
Hajo





RE: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Alexandru Duzsardi
What is the output of

 

httpd -l

 

(that’s a lowercase -L)

 

 

 

From: Luca Toscano [mailto:toscano.l...@gmail.com] 
Sent: Tuesday, May 23, 2017 11:12 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

 

Hi! 

 

Probably you have another LoadModule some-mpm in one of the included files 
(look for Include in your httpd config), can you double check?

 

Luca

 

2017-05-23 10:07 GMT+02:00 Velmurugan Dhakshnamoorthy  >:

But,  I am loading only one,  others are commented out. 

 

Thanks.

 

On May 23, 2017 14:36, "Daniel"  > wrote:

Of course, you should not load different mpm modules, only one at a
time. Load only the one you need.

2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy  >:
> thanks, I installed the preform using "--enable-mpms-shared=all" , now when
> I try to start the apache,
>
>  it throws an error "AH00534: httpd: Configuration error: More than one MPM
> loaded"
>
> LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
> #LoadModule mpm_worker_module modules/mod_mpm_worker.so
> #LoadModule mpm_event_module modules/mod_mpm_event.so
>
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
>
>
> On Mon, May 22, 2017 at 7:49 PM, Daniel   > wrote:
>>
>> You should ask the maintainer of the installation source from where
>> you got that Apache installation.
>>
>> If you compiled it yourself make sure to have this options with configure:
>> --enable-mpms-shared=all
>>
>> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
>>  >:
>> > Dear,
>> > Any help how do I explicitly  install and enable mod_prefork module for
>> > Apache 2.4.15 proxy.
>> >
>> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
>> > is
>> > not installed,  cannot see it in modules folder.
>> >
>> > Please help.
>> >
>> > Regards,
>> > Vel
>>
>>
>>
>> --
>> Daniel Ferradal
>> IT Specialist
>>
>> email dferradal at gmail.com  
>> linkedin es.linkedin.com/in/danielferradal 
>>  
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org 
>>  
>> For additional commands, e-mail: users-h...@httpd.apache.org 
>>  
>>
>



--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com  
linkedin es.linkedin.com/in/danielferradal 
 

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

 



Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Luca Toscano
Hi!

Probably you have another LoadModule some-mpm in one of the included files
(look for Include in your httpd config), can you double check?

Luca

2017-05-23 10:07 GMT+02:00 Velmurugan Dhakshnamoorthy :

> But,  I am loading only one,  others are commented out.
>
> Thanks.
>
> On May 23, 2017 14:36, "Daniel"  wrote:
>
>> Of course, you should not load different mpm modules, only one at a
>> time. Load only the one you need.
>>
>> 2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy > >:
>> > thanks, I installed the preform using "--enable-mpms-shared=all" , now
>> when
>> > I try to start the apache,
>> >
>> >  it throws an error "AH00534: httpd: Configuration error: More than one
>> MPM
>> > loaded"
>> >
>> > LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
>> > #LoadModule mpm_worker_module modules/mod_mpm_worker.so
>> > #LoadModule mpm_event_module modules/mod_mpm_event.so
>> >
>> >
>> >
>> > Regards,
>> > Velmurugan Dhakshnamoorthy (Vel)
>> >
>> >
>> > On Mon, May 22, 2017 at 7:49 PM, Daniel  wrote:
>> >>
>> >> You should ask the maintainer of the installation source from where
>> >> you got that Apache installation.
>> >>
>> >> If you compiled it yourself make sure to have this options with
>> configure:
>> >> --enable-mpms-shared=all
>> >>
>> >> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
>> >> :
>> >> > Dear,
>> >> > Any help how do I explicitly  install and enable mod_prefork module
>> for
>> >> > Apache 2.4.15 proxy.
>> >> >
>> >> > When I installed Apache proxy,  chose mod_modules to all,  but
>> prefork
>> >> > is
>> >> > not installed,  cannot see it in modules folder.
>> >> >
>> >> > Please help.
>> >> >
>> >> > Regards,
>> >> > Vel
>> >>
>> >>
>> >>
>> >> --
>> >> Daniel Ferradal
>> >> IT Specialist
>> >>
>> >> email dferradal at gmail.com
>> >> linkedin es.linkedin.com/in/danielferradal
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> >> For additional commands, e-mail: users-h...@httpd.apache.org
>> >>
>> >
>>
>>
>>
>> --
>> Daniel Ferradal
>> IT Specialist
>>
>> email dferradal at gmail.com
>> linkedin es.linkedin.com/in/danielferradal
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>


Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Velmurugan Dhakshnamoorthy
But,  I am loading only one,  others are commented out.

Thanks.

On May 23, 2017 14:36, "Daniel"  wrote:

> Of course, you should not load different mpm modules, only one at a
> time. Load only the one you need.
>
> 2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy :
> > thanks, I installed the preform using "--enable-mpms-shared=all" , now
> when
> > I try to start the apache,
> >
> >  it throws an error "AH00534: httpd: Configuration error: More than one
> MPM
> > loaded"
> >
> > LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
> > #LoadModule mpm_worker_module modules/mod_mpm_worker.so
> > #LoadModule mpm_event_module modules/mod_mpm_event.so
> >
> >
> >
> > Regards,
> > Velmurugan Dhakshnamoorthy (Vel)
> >
> >
> > On Mon, May 22, 2017 at 7:49 PM, Daniel  wrote:
> >>
> >> You should ask the maintainer of the installation source from where
> >> you got that Apache installation.
> >>
> >> If you compiled it yourself make sure to have this options with
> configure:
> >> --enable-mpms-shared=all
> >>
> >> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
> >> :
> >> > Dear,
> >> > Any help how do I explicitly  install and enable mod_prefork module
> for
> >> > Apache 2.4.15 proxy.
> >> >
> >> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
> >> > is
> >> > not installed,  cannot see it in modules folder.
> >> >
> >> > Please help.
> >> >
> >> > Regards,
> >> > Vel
> >>
> >>
> >>
> >> --
> >> Daniel Ferradal
> >> IT Specialist
> >>
> >> email dferradal at gmail.com
> >> linkedin es.linkedin.com/in/danielferradal
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> >> For additional commands, e-mail: users-h...@httpd.apache.org
> >>
> >
>
>
>
> --
> Daniel Ferradal
> IT Specialist
>
> email dferradal at gmail.com
> linkedin es.linkedin.com/in/danielferradal
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Apache HTTP Server - 2.4.15-mod_prefork module

2017-05-23 Thread Daniel
Of course, you should not load different mpm modules, only one at a
time. Load only the one you need.

2017-05-23 6:02 GMT+02:00 Velmurugan Dhakshnamoorthy :
> thanks, I installed the preform using "--enable-mpms-shared=all" , now when
> I try to start the apache,
>
>  it throws an error "AH00534: httpd: Configuration error: More than one MPM
> loaded"
>
> LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
> #LoadModule mpm_worker_module modules/mod_mpm_worker.so
> #LoadModule mpm_event_module modules/mod_mpm_event.so
>
>
>
> Regards,
> Velmurugan Dhakshnamoorthy (Vel)
>
>
> On Mon, May 22, 2017 at 7:49 PM, Daniel  wrote:
>>
>> You should ask the maintainer of the installation source from where
>> you got that Apache installation.
>>
>> If you compiled it yourself make sure to have this options with configure:
>> --enable-mpms-shared=all
>>
>> 2017-05-22 10:04 GMT+02:00 Velmurugan Dhakshnamoorthy
>> :
>> > Dear,
>> > Any help how do I explicitly  install and enable mod_prefork module for
>> > Apache 2.4.15 proxy.
>> >
>> > When I installed Apache proxy,  chose mod_modules to all,  but prefork
>> > is
>> > not installed,  cannot see it in modules folder.
>> >
>> > Please help.
>> >
>> > Regards,
>> > Vel
>>
>>
>>
>> --
>> Daniel Ferradal
>> IT Specialist
>>
>> email dferradal at gmail.com
>> linkedin es.linkedin.com/in/danielferradal
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>



-- 
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

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