server - Can not run php scripts anymore !

02
2013-08
  • Sarfraz

    I had been running php script successfully for a year or so with WAMP but yesterday i noticed that scripts were not opening/running. When i go to http://localhost, the page just keeps on loading indefinitely. Of course, there is no errors in the scripts.

    I tried:

    • Re-starting All Services
    • Re-installing WAMP
    • Even tried easyphp (similar to wamp)
    • uninstalled the suspicious softwares

    When i tried "o localhost 80" command at telnet, it says "Connecting to localhost..." but it never connects.

    Interesting:

    Am able to run script inside PHP Designer (the editor for php) but not on browser using WAMP as said before.

    OS: XP SP2 with Avira Antivirus

    Any help will be highly appreciated as it is very important for me to be able to run php scripts on browser to finish some urgent tasks....

    Update: Here is my apache log, i can't figure out what does it say:

    [Wed Feb 17 10:27:35 2010] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations [Wed Feb 17 10:27:35 2010] [notice] Server built: Jan 18 2008 00:37:19 [Wed Feb 17 10:27:35 2010] [notice] Parent: Created child process 740 [Wed Feb 17 10:27:36 2010] [notice] Child 740: Child process is running [Wed Feb 17 10:27:36 2010] [notice] Child 740: Acquired the start mutex. [Wed Feb 17 10:27:36 2010] [notice] Child 740: Starting 64 worker threads. [Wed Feb 17 10:27:36 2010] [notice] Child 740: Starting thread to listen on port 80. [Wed Feb 17 10:31:15 2010] [notice] Parent: Received shutdown signal -- Shutting down the server. [Wed Feb 17 10:31:15 2010] [notice] Child 740: Exit event signaled. Child process is ending. [Wed Feb 17 10:31:16 2010] [notice] Child 740: Released the start mutex [Wed Feb 17 10:31:17 2010] [notice] Child 740: All worker threads have exited. [Wed Feb 17 10:31:17 2010] [notice] Child 740: Child process is exiting [Wed Feb 17 10:31:18 2010] [notice] Parent: Child process exited successfully. [Wed Feb 17 10:31:28 2010] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations [Wed Feb 17 10:31:28 2010] [notice] Server built: Jan 18 2008 00:37:19 [Wed Feb 17 10:31:28 2010] [notice] Parent: Created child process 2200 [Wed Feb 17 10:31:28 2010] [notice] Child 2200: Child process is running [Wed Feb 17 10:31:28 2010] [notice] Child 2200: Acquired the start mutex. [Wed Feb 17 10:31:28 2010] [notice] Child 2200: Starting 64 worker threads. [Wed Feb 17 10:31:28 2010] [notice] Child 2200: Starting thread to listen on port 80. [Wed Feb 17 10:34:20 2010] [notice] Parent: Received shutdown signal -- Shutting down the server. [Wed Feb 17 10:34:22 2010] [notice] Child 2200: Exit event signaled. Child process is ending. [Wed Feb 17 10:34:24 2010] [notice] Child 2200: Released the start mutex [Wed Feb 17 10:34:25 2010] [notice] Child 2200: All worker threads have exited. [Wed Feb 17 10:34:25 2010] [notice] Child 2200: Child process is exiting [Wed Feb 17 10:34:26 2010] [notice] Parent: Child process exited successfully. [Wed Feb 17 10:43:32 2010] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations [Wed Feb 17 10:43:32 2010] [notice] Server built: Jan 18 2008 00:37:19 [Wed Feb 17 10:43:32 2010] [notice] Parent: Created child process 3640 [Wed Feb 17 10:43:33 2010] [notice] Child 3640: Child process is running [Wed Feb 17 10:43:33 2010] [notice] Child 3640: Acquired the start mutex. [Wed Feb 17 10:43:33 2010] [notice] Child 3640: Starting 64 worker threads. [Wed Feb 17 10:43:33 2010] [notice] Child 3640: Starting thread to listen on port 80. [Wed Feb 17 10:46:27 2010] [notice] Parent: Received shutdown signal -- Shutting down the server. [Wed Feb 17 10:46:27 2010] [notice] Child 3640: Exit event signaled. Child process is ending. [Wed Feb 17 10:46:28 2010] [notice] Child 3640: Released the start mutex [Wed Feb 17 10:46:29 2010] [notice] Child 3640: All worker threads have exited. [Wed Feb 17 10:4

  • Answers
  • Lance Rushing

    Turn off anything running on port 80 ie Skype (you can run skype after wampserver starts but not before)

    I have the same problem also happen to me in Internet explorer are you using that browser? If you are running certain addons in IE it will cause this issuse such as "AVG safe search" if i recall that was the one causing me problems... but you may want to disable add-ons and try that... try different browsers...

    edit: one more thing: check out one of my tutorials on how to edit the host file you may try remove line 19 and save the file and then restart your server and try localhost again or your local ip 127.0.0.1

    http://vzio.com/learn_web-design_development/how-to-customize-localhost-to-anything-you-choose-httpmypage/


  • Related Question

    windows - WAMP not working anymore
  • Sarfraz

    I had been successfully using WAMP on my PC for a year or so but after I got internet connection through LAN, I noticed that WAMP has stopped working. When I go to http://localhost or http://127.0.0.1 (port is set to 80), the page just keeps on loading indefinitely (of course there are no errors on the page, this is not related to any script errors).

    I tried:

    • Re-installing wamp
    • Re-starting computer
    • Checking to see if port 80 is used by some other program (none used that)
    • I don't use SKype
    • Saw server log of apache; nothing suspicious found
    • Tried running on different browser

    Also all services are running fine.

    What Works:

    • I can access MySQL successfully
    • I can run PHP scripts inside an editor like PHP Designer 2005

    Any ideas please, i have become very dejected, so please help.

    Details:

    Windows XP SP2 with Avira Antivirus

    Thanks in advance.


  • Related Answers
  • Ernestas Stankevičius
    • WAMP is fine.
    • Disable LAN.
    • Disable any chat and community program(steam and so on)
    • Turn off antivirus.
    • Working? No?
    • Renistall windows or try t install wamp on your second partition.