Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2013, 10:00 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Apache server didn't get restart after editing the httpd.conf file with PHP code

Hi,
I have bought this book last year and since then i am trying to fix this issue. but didn't got any success.
Please help me with this:
All the three APP PHP, Apache and MySql has been installed and have checked it after installing but only PHP is not getting success as Apache server didn't get restart after editing the httpd.conf file with the given steps to configure the PHP Modules.
these are the commands:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:\PHP"

and LoadModule php6_module “C:\PHP\php6apache2_2.dll”

after activating all these line the Apache server doesn't get started. but once i ll comment these lines and then restart the service it starts and if i try to test the php script it gives error.

Detailed Error Information
Module IsapiModule
Notification ExecuteRequestHandler
Handler PHP
Error Code 0x8007007e
Requested URL http://localhost:80/test.php
Physical Path C:\inetpub\wwwroot\test.php
Logon Method Anonymous
Logon User Anonymous

at the same time if i run http://localhost:8080 i get result as it works!

using Windows Vista 32bit OS...

please help me to resolve this problem other wise i won't b able to move ahead with the book end up without learning PHP.

Thanks
Swati G

Last edited by Swati G; October 1st, 2013 at 04:23 AM.. Reason: to add some more details
 
Old March 13th, 2014, 04:36 AM
Registered User
 
Join Date: Mar 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Swati G View Post
Hi,
I have bought this book last year and since then i am trying to fix this issue. but didn't got any success.
Please help me with this:
All the three APP PHP, Apache and MySql has been installed and have checked it after installing but only PHP is not getting success as Apache server didn't get restart after editing the httpd.conf file with the given steps to configure the PHP Modules.
these are the commands:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:\PHP"

and LoadModule php6_module “C:\PHP\php6apache2_2.dll”

after activating all these line the Apache server doesn't get started. but once i ll comment these lines and then restart the service it starts and if i try to test the php script it gives error.

Detailed Error Information
Module IsapiModule
Notification ExecuteRequestHandler
Handler PHP
Error Code 0x8007007e
Requested URL http://localhost:80/test.php
Physical Path C:\inetpub\wwwroot\test.php
Logon Method Anonymous
Logon User Anonymous

at the same time if i run http://localhost:8080 i get result as it works!

using Windows Vista 32bit OS...

please help me to resolve this problem other wise i won't b able to move ahead with the book end up without learning PHP.

Thanks
Swati G
you have to change the listen port of the apache. find #listen 12.34.56.78:80 in the httpd.conf. Under this line Listen 8080 will be found if localhost:8080 is work. to use just localhost, change this to Listen 80. Save restart and try it. I hope it work





Similar Threads
Thread Thread Starter Forum Replies Last Post
Restart SQL Server instance on Windows Cluster katty.jonh BOOK: Professional IIS 7 ISBN: 978-0-470-09782-3 1 July 25th, 2012 04:10 AM
httpd-vhosts.conf Brainerd BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 0 January 10th, 2010 03:29 PM
role permission of tempdb due to server restart ctatvasoft SQL Server 2008 0 November 14th, 2009 04:42 AM
apache tomcat dev directory conf schradermj11 Apache Tomcat 0 November 21st, 2005 10:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.