Click to See Complete Forum and Search --> : Apache & PHP - test file function not initiating...


Balitzilart
07-25-2003, 11:04 AM
I am running XP and my goal is to install Apache/PHP/MySQL. My issue is with the PHP install.

Apache (v1.3.2) is up and running - successful test page.

I've tried both PHP4&5 with the installer and without. I'm now using PHP5 (module, not cgi) which has me manually copying files to c:\Apache\PHP.
- I've updated httpd.conf with:
LoadModule php4_module c:/apache/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
- updated PHP.ini (extensions,upload,session)
-placed a PHP test file containing (<?php phpinfo(); ?>) in c:\apache\htdocs\test.php

In IE5 address, I enter "http://localhost/test.php" and only the contents of the test.php file appears in the window.(?)

I believe PHP is just not running - did I miss something?

Any thoughts would greatly be appreciated.

Thanks!

hi-liter
07-25-2003, 06:57 PM
i used apache2, but think you'll only have to change one line (LoadModule php4_module c:/php/sapi/php4apache2.dll ) of this:

Installing PHP 4.3.2 as a module for Apache2 on Windows XP Pro:

Download_ and extract php-4.3.2-Win32.zip

For more info review "install.txt", namely under:
"Windows Manual installation from zip binary distribution_"

Place or extracted PHP files in C:\PHP\

Copy php.ini-dist into C:\WINDOWS

Rename to php.ini

Edit php.ini:
(this part is only if you want to use GD)

Change line 428:
extension_dir = "./"
to
extension_dir = "C:\PHP\extensions"

Change line 546
;extension=php_gd2.dll
to
extension=php_gd2.dll
(end part only if you want to use GD)

Copy "php4ts.dll" into "C:\Program Files\Apache Group\Apache2\bin"
(where Apache.exe is located).

Edit httpd.conf:

add the following:

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

add index.php to DirectoryIndex:
DirectoryIndex index.html index.html.var index.php

Copy the dll files from C:\PHP\dlls into C:\WINDOWS\SYSTEM32

Restart Apache2

Hopefully this will help some.

edit: pretty annoying that certain words above appear to automatically become links to ads. what's up with that?