Hello,
I can't get PHP5.0 to work with apache 1.3.29 on my windows xp sp2 IBM thinkpad. I get a blank screen when I point my browser to a file containing the following code:
<html> <?php phpInfo(); ?> </html>
but I get the code printed (not the information) when I just have:
<?php phpInfo(); ?>
I followed the install instructions to the letter. After downloading and extracting the zip file to the
c:\PHP folder, I changed the name of the
php.ini-recommended file to php.ini, edited it and put
it in the c:\windows folder. The edits to the file
were as follows:
extension_dir = c:\PHP
document_root = c:\Apache\htdocs
Note: my apache.exe file is in the c:\Apache folder.
I tried putting the php.ini file in the c:\windows\system, c:\windows\system32, c:\php and the c:\apache folders as well with no luck (each time stopping and starting apache before trying to read the phpinfo file).
I also edited the httpd.conf file in apache as directed. In particular, I added the following lines in the appropriate places in the file:
LoadModule php5_module c:/PHP/php5apache.dll AddModule mod_php5.c AddType application/x-httpd-php .php
Of course, I stopped and started apache after making the httpd.conf edits. I also tried putting double quotes around c:/php/php5apache.dll. No luck.
Any thoughts (other than switch to Linux)?
Thanks,
Pat Moore
the php files are not being parsed by php, try commenting out the line: AddModule mod_php5.c
I don't have it in my httpd.conf on my Windows box
Cheers,
-- Brad Kowalczyk Web Developer www.ibiscode.com