DevHeads.net

Postings by Hemant Chaudhary

How to stop apache from debugging

Hi,

I started debugging with "./httpd -X" command. It starts debugging. Now I
want to stop debugging and start the server normally.

Which command should I use to stop debugging ?

HC

Run apache without master

Hi,

I want to start my apache without master process means when I will give
"httpd" command, it should start 5 worker process which has access to
httpd.conf as well as serve requests.

Is it possible to achieve this ? If yes, then how should to achieve this ?

Thanks
hemant

Waiting for mod_dav.o.lock to be removed

HI

I am getting "libtool:Waiting for mod_dav.o.lock to be removed" error while
make apache.

Any help will be appreciated.

Thanks
Hemant

Which file creates master process

Hi

I have apache-2.4.25 on my ststem. When we start server, initially master
process starts and give access to mpm. I want to know which ".c" file is
used to create master process before worker.c.

Thanks
Hemant

Build apache without mpm

Hi

By which configuration I can build apache without threaded> I dont want to
sue mpm.

Thanks
Hemant

MPM_Worker main process

Hi folks,

I have my apache-2.4.25 with worker mpm. For testing, I have killed the
master/main process and send simultaneous requests from apache j-meter and
my apache serves all the requests. What I have observed is that even with
loads number of worker threads are same, it means I lost forking
capability because of main process.

My query is without Master process, what functionalities will I loose?

Thanks
Hemant

User Auth type in apache-2.4.25

Hi ,

I have user and group in my httpd.config. I want to use user in Auth type
instead of basic or digest. so that whenever customer try to open
directory, promt will ask to enter username and password and customer can
enter "user" as username and password.

Is there any option to achieve this or I need to write my own module for
this.

Cheers,
Hemant

Use MPM other than worker,event and prefork

Hi folks,

I have installed apache-2.4.25 with worker module. But I want my apache to
start with my own module instead of worker module. In httpd.config, I have
commented LoadModule worker.so, but when I am staring apache, it is looking
for worker module.

Where I need to change code so that it will not look for worker module and
start with my module.

Thanks
Hemant

How to use binary to run httpd in different location

Hi

I have ported apache on my machine. I have copied bin,lib.conf,modules,
htdocs,logs to another location. Now I want to run my apache in new
location with these things only.
I changed path in httpd.conig and apachectl of new location, but while
starting it is starting apache in old location.

For example :
I ported apache on /home/hemant ..
I copied bin,conf,logs,htdocs,modules to /home/rakesh and in httpd.config I
replace all path of /home/hemant to /home/rakesh and changed port also.

Mod_http2 as static

Hi all

I want to load mod_http2 in my apache-2.4.25. I have installed nghttp2 also.
But my all others modules are shared i:e .so but my mod_http2 is creating
only static i:e .a

In my configure I have given --enable-mods-shared=all and
--with-nghttp2=/path/of/ngttp2

I tried with --enable-http2., also creating only static not dynamic.

Please help to create .so of http2.

Thanks
Hemant

How Apache starts is server

Hi

My apache is working with worker_mpm. I want to start my server as server
class, for this I need some changes.

I want to know how apache starts and reads which file. I found no line in
httpd.conf whcih tells or calls mpm_worker to start.

Please help in which way apache flows goes.

Thanks
Hemant

Kill Parent Process

Hi,

I tried two scenarios with httpd-2.4.25 on my machine. My apache has
mpm_woker_module.
Case -1 :
I killed one process other than Parent process then new process is created
by apache at same time and there is no effect on requests accept by apache.

Case-2
I killed parent process then all processes become zombie processes and
apache stops handling processes.

Is there any way so that if my parent process crashes then still apache
works properly and assign new parent process.

Thanks
Hemant

How mpm_workers work

Hi all,

In my configuration for mpm_worker, I set following datas

Case 1)

StartServer 3
ThreadPerChild 25
MinSpareThreads 75

In this case, when I start apache I found 5 servers start.

Case 2)

StartServer 6
ThreadPerChild 25
MinSpareThreads 150

In this case, when I start apache I found 8 servers start.

Case 3)

StartServer 1
ThreadPerChild 25
MinSpareThreads 25

In this case, when I start apache I found 3 servers start.

My Query is why two extra server is starting.
Can I change serverlimit?

Thanks
Hemant

Mod_ Backtrace in apache-2.4.25

Hi

Can mod_backtrace is available to support apache-2.4.25. I want to support
it on HPE Non-stop.
If no then order module which can work as backtrace.

Thanks
Hemant

Apache 2.4.25 with openssl 1.1.0e

Hi

I am trying to build httpd-2.4.25 with openssl-1.1.0e. But getting
error in SSLv2_Client_Method,
CRYPTO_malloc_init functions .

Whether anyone encountered the same problem?
Does apache-2.4.25 support openssl 1.1.0e?

Thanks
Hemant

mod_wsgi

Hi
I want to install mod_wsgi statically in apache-2.4.25. It has multiple .c
files to link. Thats why it becomes complex. Is there any easy way to add
third party module statically which has multiple .c files.

Thanks
Hemant

httpd object file

Hi,

I ported httpd-2.4.23 on ubantu. I want libhttpd.a or libhttpd.so. But I am
getting only executable httpd.
Can you please help me to locate libhttpd or how to create libhttpd.a or
libhttpd.so. Even I am not able to figure out httpd.o file.

Thanks
Hemant

PHP with apache

Hi

I want to integrate PHP with my httpd-2.4.23 static.
My OS already have PHP. I want to integrate with apache. System's php
didn't build with apxs.
Please help me how to integrate? Do I need 3rd party module ?

Another query, I am not able create .so(shared) of any library because of
my OS issue. Only .a and .la is creating with apxs, hence not able to load
them either statically or dynamically.

Adding static module in Apache-2.4.23

Hi

I am trying to add foo module in my apache server using apxs. But I am not
able to create .so file of module. But it creates mod_foo.a and mod_foo.la.
Because mod_foo.so is not present, I am unable to write "LoadModule mod_foo
/module/mod_foo.so" in httpd.conf.
My all modules built are static. So is there any way to add module
statically and what changes I need to change in httpd.conf.

Thanks
Hemant

Core code in apache

HI
As apache has two parts, core and mudules.
I want to understand core part code of apache. Please share which is the
core code of apache.

Thanks
Hemant

Processes starts

Hi

When I am stating my httpd-2.4.23 servers, sometime 6 process id's or
sometimes 7 process id's are generated. Can I edit how many process id's I
want to start. I am assuming 1 process id is of root and remaining 5 of its
thread.
Please help to know why this is happening and where it is stated how much
to open?

Second doubt is I want to check process id's in access_log, I am editing %P
for process id in format, I am getting correct value. I want to use
%{format}P. I tried with this but this is not working, please helpp how to
get pid,tid,hextid using %{format}P.

Thanks
Hemant

How to run secure apache

Hi

I installed apache 2.4.23 static, I have httpd-sll.conf where default port
number is 443. mod_sll module also loaded successfully. I want to test
whether my secure https is working properly or not. How to check that?

Thanks
Hemant

Unresolved error in apr while creating static httpd-2.4.23

Hi

While porting static httpd-2.4.23, I am getting unresolved reference error
to u to apr_queue_push and apr_threads.

I have checked that it links libapr-1.a and libaprutil-1.a with it also.

Please help to solve error.

Thanks
Hemant

I have .so file in modules but getting syntax error

Hi

I have .so file of modules but when I am starting server with "./httpd", I
am getting error syntax error. I am porting apache-2.4.23

httpd: Syntax error on line 66 of /home/hemant/apache/conf/httpd.conf:
Cannot load modules/mod_so.so into server: dlopen
(6CA053F0->/home/hemant/apache/modules/mo
d_so.so, 5): FileSystem Error\n 4013 on File
/home/hemant/apache/temp10/mod_so.s
o

Thanks
Hemant

Httpd-2.4.23 not creating .so file

Hi

I am porting httpd-2.4.23 on nonstop tandem. But .so file is not created in
modules, hence I am unable to start apache.

Only .a and .la of modules are present in module folder.

Is it possible to start httpd-2.4.23 without .so file of modules ? If not
then how to create .so file.

My configure command - ./configure --with-included-apr
--with-pcre=/home/hemant/apache/httpd-2.4.23/srclib/pcre
--prefix=/home/hemant/apache

Thanks
Hemant

Not able to create mod_so.so

Hi

I worked on Tandem and used c99 compiler. I am unable to create .so file of
any module.
apxs also looking for mod_so. How to create .so file on Tandem. In modules
I have .a , .o and .la file only . Can I run Apache 2.3 without .so files
then how ?

Thanks
Hemant

unresolved reference to ap_getword_nulls

Hi

I am unable to create .so file. Hence I am converting .a of modules to .so
. While converting from .o to .so I got this error "unresolved reference to
ap_getword_nulls".
While I linked apr and apr-util libraries.

Why I am getting these type of unresolved reference ? Whether am I missing
some library ?

Thanks
Hemant

Could not initialize random number generator

Hi

I ma getting error while starting apache server

[pid 754974769] (os 0x07f541f0)Unrecognized resolver error: AH00141: Could
not initialize random number generator.

What are the reasons for this type of error.

Thanks
Hemant

Apache 2.4 support removed for Tandem

Hi

I am planning to build Apache 2.4.23 on Nonstop, but I get in Apache
document that platform support for apache on Tandem has been removed.
What is the reason for removal of Tandem support ? Can still I build apache
on Tandem or Nonstop.

Regards
Hemant

Modules add by default

Hi

I am planning to port apache web server. Please let me know what are the
modules that can be added by default without enable them.

Thanks
Hemant