• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 956
  • Last Modified:

appserv not working on vista

I thought my mysql wasn't working but it turns out to be my apache.  The page I was looking at had no php.  When I went to phpinfo, I could see php code in the source.  I had iis installed but believe I uninstalled it (I am thinking something is holding onto port 80).  

Here is the error log:
[Thu Apr 16 00:16:36 2009] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations
[Thu Apr 16 00:16:36 2009] [notice] Server built: Jan  9 2007 23:17:20
[Thu Apr 16 00:16:36 2009] [notice] Parent: Created child process 5212
[Thu Apr 16 00:16:36 2009] [notice] Child 5212: Child process is running
[Thu Apr 16 00:16:36 2009] [notice] Child 5212: Acquired the start mutex.
[Thu Apr 16 00:16:36 2009] [notice] Child 5212: Starting 64 worker threads.
[Thu Apr 16 00:16:36 2009] [notice] Child 5212: Starting thread to listen on port 80.
[Thu Apr 16 00:16:57 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Apr 16 00:16:57 2009] [notice] Child 5212: Exit event signaled. Child process is ending.
[Thu Apr 16 00:16:58 2009] [notice] Child 5212: Released the start mutex
[Thu Apr 16 00:16:59 2009] [notice] Child 5212: Waiting for 64 worker threads to exit.
[Thu Apr 16 00:16:59 2009] [notice] Child 5212: All worker threads have exited.
[Thu Apr 16 00:16:59 2009] [notice] Child 5212: Child process is exiting
[Thu Apr 16 00:16:59 2009] [notice] Parent: Child process exited successfully.

Open in new window

0
jackjohnson44
Asked:
jackjohnson44
  • 3
  • 2
1 Solution
 
Chris GralikeSpecialistCommented:
This is a normal "shutdown" command in Apache. Something is triggering a shutdown after "~20" Secs. Please edit your PHP.ini to show startup errors, and please consult your Windows Application Log and let us know if anything shows up in those logs.
0
 
jackjohnson44Author Commented:
Thanks, I think the problem is that something is using port 80.  How do I check?

(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Press any key to continue . . .
0
 
Chris GralikeSpecialistCommented:
You can verify by using the netstat command. This command should work on both windows and linux.

If it is a Windows box you might want to do something like,

CD \
netstat -noab > used_ports.txt
edit the file C:\used_ports.txt to look at the results
.

The results should look something like the attached code.

Look at the Listening Entries, and use the PID in the process explorer to identify the actual process.
0
 
Chris GralikeSpecialistCommented:
Woeps, the attached code :-/

Active Connections
 
  Proto  Local Address   Foreign Address   State           PID
  TCP    0.0.0.0:135     0.0.0.0:0         LISTENING       1236
  c:\windows\system32\WS2_32.dll
  C:\WINDOWS\system32\RPCRT4.dll
  c:\windows\system32\rpcss.dll
  C:\WINDOWS\system32\svchost.exe
  C:\WINDOWS\system32\ADVAPI32.dll
  [svchost.exe]
 
  TCP 0.0.0.0:445         0.0.0.0:0        LISTENING       4
  [System]
 
  TCP 10.252.251.32:139   0.0.0.0:0        LISTENING       4
  [System]
 
  TCP 127.0.0.1:1041      0.0.0.0:0        LISTENING       2224
  [alg.exe]

Open in new window

0
 
jackjohnson44Author Commented:
Thanks, I did that, and under the local host with port 80, it says
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       288

That PID turns out to be Apache 2.2

Is there a way to tell what directory this apache executable is coming from?

I think this is remnants of another php/mysql thing I tried installing but did not work.  I uninstalled it, but I think it is still hanging around.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now