You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Purcell, Scott" <sp...@ltcgroup.com> on 2001/06/18 16:45:55 UTC

Forking Child 2

Hello,
I wrote a little bit ago about trying to not fork my Apache server. I want
to run only a single child. Anyway, I got three terrific responses, but have
no clue what they mean.

I am on Apache NT4.0 and  am learning. Anyway, some of the responses I got
for setting a single process were:
type:
/path/to/apache/dir/httpd -X

I have been through my install trying to execute a httpd at the command
line, but I am making no connection.

Could someone please explain a litle more in detail what I should do on a NT
system and what the httpd is (exe?);

Thanks

Scott Purcell


Re: Forking Child 2

Posted by "William A. Rowe, Jr." <ad...@rowe-clan.net>.
From: "Purcell, Scott" <sp...@ltcgroup.com>
Sent: Monday, June 18, 2001 9:45 AM


> Hello,
> I wrote a little bit ago about trying to not fork my Apache server. I want
> to run only a single child. Anyway, I got three terrific responses, but have
> no clue what they mean.
> 
> I am on Apache NT4.0 and  am learning. Anyway, some of the responses I got
> for setting a single process were:
> type:
> /path/to/apache/dir/httpd -X

That is it.  But httpd is Apache.exe on Win32.  So... Apache -x

> I have been through my install trying to execute a httpd at the command
> line, but I am making no connection.

You first need to stop apache  (apache -k stop -n Apache)
 
> Could someone please explain a litle more in detail what I should do on a NT
> system and what the httpd is (exe?);

It's named Apache.exe.  You should have mentioned Windows in you original post
so folks wouldn't mislead you (they certainly didn't mean to.)

Apache on unix uses the httpd executable, and forks many processes (one per
connection to serve.)

Apache on Win32 uses the threaded Apache.exe, twice.  The parent is only out
there to replace a dead child process.  Be warned, the -X is a crippled, debugging
version, and simple things like Ctrl+C to stop the server, and running as a service,
simply don't work.

Bill


Re: Forking Child 2

Posted by Gunther Birznieks <gu...@extropia.com>.
heh...I see your confusion (and everyone else's)

There's no such thing as httpd -X on Windows. It's one server that's 
multi-threaded. A completely differnet model to UNIX.

You don't have to do httpd -X because mod_perl on Windows Apache is kind of 
crippled anyway. It will ONLY run with one perl interpreter with serialized 
access to it. So you are already experiencing the equivalent of debug mode 
(httpd -X) when you run on Apache for Windows.

No extra work necessary.

At 09:45 AM 6/18/01 -0500, Purcell, Scott wrote:
>Hello,
>I wrote a little bit ago about trying to not fork my Apache server. I want
>to run only a single child. Anyway, I got three terrific responses, but have
>no clue what they mean.
>
>I am on Apache NT4.0 and  am learning. Anyway, some of the responses I got
>for setting a single process were:
>type:
>/path/to/apache/dir/httpd -X
>
>I have been through my install trying to execute a httpd at the command
>line, but I am making no connection.
>
>Could someone please explain a litle more in detail what I should do on a NT
>system and what the httpd is (exe?);
>
>Thanks
>
>Scott Purcell

__________________________________________________
Gunther Birznieks (gunther.birznieks@eXtropia.com)
eXtropia - The Open Web Technology Company
http://www.eXtropia.com/