WAMPGuy Posted July 8, 2009 Share Posted July 8, 2009 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 https://forums.phpfreaks.com/topic/165275-error-messages-upon-trying-to-start-apache-as-a-service-testing-php/ Share on other sites More sharing options...
shergold Posted July 8, 2009 Share Posted July 8, 2009 make sure you have IIS turned off in your services, then try and start again. Apache wont work if there is something else using port 80. Shergold. Link to comment https://forums.phpfreaks.com/topic/165275-error-messages-upon-trying-to-start-apache-as-a-service-testing-php/#findComment-871566 Share on other sites More sharing options...
shergold Posted July 8, 2009 Share Posted July 8, 2009 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 https://forums.phpfreaks.com/topic/165275-error-messages-upon-trying-to-start-apache-as-a-service-testing-php/#findComment-871567 Share on other sites More sharing options...
WAMPGuy Posted July 9, 2009 Author Share Posted July 9, 2009 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 https://forums.phpfreaks.com/topic/165275-error-messages-upon-trying-to-start-apache-as-a-service-testing-php/#findComment-871620 Share on other sites More sharing options...
shergold Posted July 9, 2009 Share Posted July 9, 2009 i don't know then, phpfreaks has an apache board so try there or ask a moderator or admin to move your thread there as you will get much more responses. Good luck, Shergold. Link to comment https://forums.phpfreaks.com/topic/165275-error-messages-upon-trying-to-start-apache-as-a-service-testing-php/#findComment-871632 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.