Home | Recovery | Cisco How To Net How To | Blog | Search | Forums | Services | Setup Guide | Chicagotech MVP | IT Exam Practice  |  About Us | Contact Us|

 

 

PHP 5 doesn't work in Windows

Situation: after installing Apache 2 and PHP 5 in Windows, test http://localhost doesn't work.

Case 1: the Index.php has a coding problem. This this simple one first: <?php phpinfo(); ?> .

Case 2: The extension_dir is mistyping looks like this extension_dir = "c:\php\ext". It should be extension_dir = "c:/php/ext".

Case 3: The Windows path need to add c:\php folder. Check this article: How to add PHP folder to Windows path

Case 4: There are two php.ini in the system. One of them in located in c:\windows.

Case 5: The client installed PHP 5.3 Windows Installer version or MSI and then install it manually. We may need to open registry to clear them.

Case 6: The Apache is version 2.2, the httpd.conf should has LoadModule php5_module "c:/php/php5apache2_2.dll" instead of LoadModule php5_module "c:/php/php5apache2.dll".

 

 

 

 

 

 

 

 

Post your questions, comments, feedbacks and suggestions

Contact a consultant

Related Topics

 

 

 

Bob Lin Photography services

Real Estate Photography services 

 

  This web is provided "AS IS" with no warranties.
Copyright © 2002-2018 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.