Jump to content

Error Messages Upon Trying to Start Apache as a Service / Testing PHP


WAMPGuy

Recommended Posts

According to the book I'm using, I've installed Apache2.2, PHP5.3, and MySQL, and am now testing the PHP installation.  The MySQL installation seems to be working fine.  However, when I test PHP with the usual phpinfo.php file, which I placed in the htdocs folder of my apache2 folder (per the instructions), it does not work when I type the URL in the web browser.  Here's the URL I'm using:  http://localhost/phpinfo.php

 

I suspect it has to do with the Apache service not started, so when I checked, it indeed was not started.  When I click to Start the service, I get and error message that reads:

 

"Windows could not start the Apache2.2 on Local Computer.  For more information, review the System Event Log.  If this is a non-Microsoft service, contact the service vendor, and refer to service-specific vendor, and refer to service-specific error code 1."

 

Any guidance on how to get this resolved?  Thanks!

 

Oh, I did also try the URL http://localhost/phpinfo.php.txt with no luck either.  And my IIS service (probably don't need it if I'm running Apache with PHP but I installed it anyway) doesn't seem to be all there, though it appeared to have installed correctly.  For instance, on the IIS console, I see no place to click on to in order to change the Handler Mappings.  To access the IIS console, I used the command inetmgr after going to Start, then Run.

 

Any help would be greatly appreciated! 

 

 

Link to comment
Share on other sites

Also are you using windows vista if so there is another service that uses port 80 that you need to stop, i have forgot the name ill try to find it now.

 

EDIT: you must also stop the windows service: World Wide Web Publishing on vista as this uses port 80 also.

EDIT: Skype also listens on port 80, so if you are using it exit the program before turning on apache.

 

Shergold.

Link to comment
Share on other sites

Hi shergold.  Thanks much for the response!  I tried what you said:  Turned off IIS and was prompted to reboot the computer, which I did.  When it came back on, I checked the services and discovered both IIS and Apache were started.  So, I stopped IIS - this time, I was not prompted to reboot. 

 

I tried the URL again.  This time, it just pulls up my PHP script exactly as I wrote it in Notepad:

 

<?php

            phpinfo();

?>

 

For good measure, I restarted the Apache service - no change when I re-entered the URL.

 

WAMP is strange ... 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.