?
Solved

appserv not working on vista

Posted on 2009-04-15
5
Medium Priority
?
952 Views
Last Modified: 2012-05-06
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
Comment
Question by:jackjohnson44
  • 3
  • 2
5 Comments
 
LVL 11

Expert Comment

by:Chris Gralike
ID: 24156774
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
 

Author Comment

by:jackjohnson44
ID: 24164885
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
 
LVL 11

Expert Comment

by:Chris Gralike
ID: 24165784
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
 
LVL 11

Accepted Solution

by:
Chris Gralike earned 2000 total points
ID: 24165791
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
 

Author Comment

by:jackjohnson44
ID: 24232678
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Suggested Courses
Course of the Month16 days, 10 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question