954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP Installation

I'm trying to get PHP up and running on my computer. I'm running win xp and trying to install php 4.3.7 and using apache 2 webserver.
When I try to load a php file on by web browser I get a blank screen. According to php.net the issues is this:

" Do a 'view source' in the web browser and you will probably find that you can see the source code of your PHP script. This means that the web server did not send the script to PHP for interpretation. Something is wrong with the server configuration - double check the server configuration against the PHP installation instructions."

I've checked and rechecked my configuration against the install instructions and still nothing. Maybe some here can help. Here is what I have currently done:

php.ini file is in the C:/Windows
set doc_root = C:/programfiles/apachegroup/apache2/htdocs

php4ts.dll is in C:/windows/system32

The following lines have been added to my apache conf file:
LoadModule php4_module c:/php/php-4.3.7-Win32/sapi/php4apache2.dll
AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps

Squires
Junior Poster
125 posts since Jun 2004
Reputation Points: 93
Solved Threads: 1
 

just missing action parameters. add under addtype

Action application/x-httpd-php path_to/php.exe

BinaryMayhem
Junior Poster
176 posts since Jun 2004
Reputation Points: 15
Solved Threads: 10
 


<?php
phpinfo ( );
?>

psusme1
Newbie Poster
1 post since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You