For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > March 2005 > Re: [PHP-INSTALL] windows xp sp2 installation problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-INSTALL] windows xp sp2 installation problems
Brad Kowalczyk

2005-03-09, 8:57 am

Pat Moore wrote:
> 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com