Terry L. Ensley schrieb:
> I just installed Apache 1.3.27 and PHP 4.3.0. I have it running. When I
> click on the Apache shortcut this message comes up in the dos window
> "Apache/1.3.27 (Win32) PHP/4/3/0 running ..."
> 
> But when I try to run my test program (test.php) it comes up with a blank
> screen. If I view the source I see the program -  I realize that php is not
> being called by apache to parse php files, but I don't know what else to
> try.  Here is the source code.
> 
> <html>
> <head><title>PhP Test Doc</title></head>
> <body>
> 
> <?php phpinfo(); ?>
> 
> </body></html>
> 
> I am running it out of C:\Program Files\Apache Group\Apache\htdocs - which
> is my doc directory - I have looked at all the paths and they seem correct.
> php is in C:\Files\PhP\
> 
> I am running Windows XP. All dll's have been copied over to the windows or
> window system dir.
> 
> I have both of these in my httpd.conf file:
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"

... seems that you try loading PHP as modul AND as CGI ... note: if you use
the PHP modul with

LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
 ...
AddModule mod_php4.c

you don't need the "Action application/..." Line!

Cause the Action meen that this extern program is called as a CGI. With the
modul version this functionality is bundeld into apache itself. Might be
confusing for Apache what he should do, call CGI and/or the modul.

If you wish to use the CGI version (not recommed) then you have to specify
the Path of the Action correctly. To do this you need also a line like:

ScriptAlias /php/ "C:/Files/PhP/"

so that apache know where the directory "/php/" is, so that it looks like:

ScriptAlias /php/ "C:/Files/PhP/"
...
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

Than you don't need the LoaModule & AddModule lines ! Comment it out like:

# LoadModule php4_module C:/PHP/SAPI/PHP4APACHE.DLL
 ...
# AddModule mod_php4.c

But the better way is to use the modul version !!!


hope this will help, regards, G.Lohmann

-- 
 @  Goetz Lohmann, Germany   |   Web-Developer & Sys-Admin
\/  ------------------------------------------------------
()  He's the fellow that people wonder what he does and
||  why the company needs him, until he goes on vacation.


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to