From: Roderick D. T. <tho...@ms...> - 2009-11-05 20:16:02
|
I'm trying to install Apache/PHP/MySql on my computer (Windows XP) strictly for development purposes. I installed Apache 2.2.14 and it appears to be working fine. I get the "it's working" page at http://localhost/ I then installed PHP 5.3.0 but .php pages aren't being recognized. I've been reading through support Apache and PHP support pages with no luck. I tried follow instructions below from the PHP install.txt file: Installing as an Apache module You should add the following lines to your Apache httpd.conf file: Example 2-3. PHP as an Apache 1.3.x module This assumes PHP is installed to c:\php. Adjust the path if this is not the case. For PHP 5: # Add to the end of the LoadModule section LoadModule php5_module "C:/php/php5apache.dll" ------------------------------------------------------------------------------------------------------------------------ I inserted the following line but Apache didn't like it. Apache won't restart when it's there. LoadModule php5_module C:\Program Files\PHP\php5apache.dll And I can't make sense of the rest of the instructions. ------------------------------------------------------------------------------------------------------------------------ # Add to the end of the AddModule section AddModule mod_php5.c For both: # Add this line inside the <IfModule mod_mime.c> conditional brace AddType application/x-httpd-php .php # For syntax highlighted .phps files, also add AddType application/x-httpd-php-source .phps |