Re: "The <apache version> service on Local Computer started and stopped"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





marc.scott@xxxxxxxxxxxx wrote:
I have 1G real and 1.5G virtual RAM.

I commented out all the modules except for the 'modules/mod_authz_host.so'
module (as that is apparently required for other code in the file to run).

The problem remains.

Allright.
If an Apache/Windows guru would like to step in, this seems to be the right moment.

In the meantime, let me suggest this, assuming you're desperate :
- put back all the modules you initially had
- add a new one (which you did not have initially, and which you don't really need) at the end of the list
- restart Apache in the command console mode

Does it get to the message loading this new module ?

(by the way, when you run in console mode, it really means "in the console", and it does not then run as a service. So you will not find the entries about starting the Apache service in the System log.)

As a possible next step, this is what I just did :
- start the Task Manager, display running processes sorted alphabetically, resize Window to a manageable size.
At this point, there is no process called "httpd.exe".
- open a command window, move it so it is visible next to the Task Manager, and go to the top Apache dir
- in the command window, enter "bin\httpd -e debug" (like before)

When I do that, the following happens :
- initially, while displaying the messages about the modules being loaded, one single "httpd.exe" appears in the Task Manager - when the loading of the modules is finished, it takes a fraction of a second, then a second httpd.exe process appears below the first one. That is when on my Windows XP station, the server is ready to receive requests (and processes them fine). I assume that the second process is the one containing the "threads" which under Windows replace the "Apache children" which process requests (as opposed to the main process which dispatches the requests to children and starts/stops children).

Now check if in your case this second process ever appears.


I attach an Apache "error.log" file which shows what was generated right now on my Windows XP SP2 laptop when I ran a session just like above in the console. I waited a few seconds after the server was running (2 httpd processes), then stopped Apache in the console via CTRL-C. Maybe by comparison with what you have, the logfile tells you something more.

A couple of comments on the error.log :
1) The first lines show the "module load" messages sent by the parent httpd process as it configures itself. 2) Then, when it has finished, the parent creates a child process, which re-starts from the beginning and reconfigures itself. This is normal, and is just the way Apache works. That is when the Task Manager should show the second httpd process running.
At the end of that, the message
Child 3628: Starting thread to listen on port 80.
says that Apache (the child) is now up and running and listening for requests. 3) Then about 10 seconds later, I entered a CTRL-C in the command window, and Apache starts to wind down.

(1) is what you see in the console window
(2) unfortunately does not appear in the console window, because it is a separate process not connected to this console (3) the CTRL-C is given to the parent, which tells the child (in the background) to exit. But again you won't see that in the console. All you will ever see is the prompt when Apache finally stops.

[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module actions_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module alias_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module asis_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module auth_basic_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module auth_digest_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module authn_default_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module authn_file_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module authz_default_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module authz_host_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module authz_user_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module autoindex_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module cgi_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module dav_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module dav_fs_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module dir_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module env_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module imagemap_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module include_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module isapi_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module log_config_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module mime_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module negotiation_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module rewrite_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module setenvif_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module userdir_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module jk_module
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(328): loaded file C:/Perl/bin/perl58.dll
[Tue Jun 03 22:24:41 2008] [debug] mod_so.c(246): loaded module perl_module
[Tue Jun 03 22:24:41 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 03 22:24:41 2008] [notice] Digest: done
[Tue Jun 03 22:24:42 2008] [notice] Apache/2.2.6 (Win32) mod_jk/1.2.26 DAV/2 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
[Tue Jun 03 22:24:42 2008] [notice] Server built: Sep  5 2007 08:58:56
[Tue Jun 03 22:24:42 2008] [notice] Parent: Created child process 3628
[Tue Jun 03 22:24:42 2008] [debug] mpm_winnt.c(487): Parent: Sent the scoreboard to the child
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module actions_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module alias_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module asis_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module auth_basic_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module auth_digest_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module authn_default_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module authn_file_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module authz_default_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module authz_host_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module authz_user_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module autoindex_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module cgi_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module dav_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module dav_fs_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module dir_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module env_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module imagemap_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module include_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module isapi_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module log_config_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module mime_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module negotiation_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module rewrite_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module setenvif_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module userdir_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module jk_module
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(328): loaded file C:/Perl/bin/perl58.dll
[Tue Jun 03 22:24:42 2008] [debug] mod_so.c(246): loaded module perl_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module actions_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module alias_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module asis_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module auth_basic_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module auth_digest_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module authn_default_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module authn_file_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module authz_default_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module authz_host_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module authz_user_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module autoindex_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module cgi_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module dav_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module dav_fs_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module dir_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module env_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module imagemap_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module include_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module isapi_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module log_config_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module mime_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module negotiation_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module rewrite_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module setenvif_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module userdir_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module jk_module
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(328): loaded file C:/Perl/bin/perl58.dll
[Tue Jun 03 22:24:43 2008] [debug] mod_so.c(246): loaded module perl_module
[Tue Jun 03 22:24:43 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Jun 03 22:24:43 2008] [notice] Digest: done
[Tue Jun 03 22:24:44 2008] [notice] Child 3628: Child process is running
[Tue Jun 03 22:24:44 2008] [debug] mpm_winnt.c(408): Child 3628: Retrieved our scoreboard from the parent.
[Tue Jun 03 22:24:44 2008] [info] Parent: Duplicating socket 1856 and sending it to child process 3628
[Tue Jun 03 22:24:44 2008] [debug] mpm_winnt.c(605): Parent: Sent 1 listeners to child 3628
[Tue Jun 03 22:24:44 2008] [debug] mpm_winnt.c(564): Child 3628: retrieved 1 listeners from parent
[Tue Jun 03 22:24:44 2008] [notice] Child 3628: Acquired the start mutex.
[Tue Jun 03 22:24:44 2008] [notice] Child 3628: Starting 25 worker threads.
[Tue Jun 03 22:24:44 2008] [notice] Child 3628: Starting thread to listen on port 80.
[Tue Jun 03 22:24:57 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jun 03 22:24:57 2008] [notice] Child 3628: Exit event signaled. Child process is ending.
[Tue Jun 03 22:24:58 2008] [info] Child 3628: Accept thread exiting.
[Tue Jun 03 22:24:58 2008] [notice] Child 3628: Released the start mutex
[Tue Jun 03 22:24:58 2008] [info] Child 3628: 25 threads blocked on the completion port
[Tue Jun 03 22:24:59 2008] [notice] Child 3628: Waiting for 25 worker threads to exit.
[Tue Jun 03 22:24:59 2008] [notice] Child 3628: All worker threads have exited.
[Tue Jun 03 22:24:59 2008] [notice] Child 3628: Child process is exiting
[Tue Jun 03 22:25:00 2008] [notice] Parent: Child process exited successfully.
[Tue Jun 03 22:25:00 2008] [info] removed PID file C:/Apache2/logs/httpd.pid (pid=3192)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux