Try the following:
Apache as SAPI:
a) copied php4ts.dll to windows/system32 directory
b) added following lines to httpd.conf
LoadModule php4_module "c:/php/sapi/php4apache.dll"
# try it w/o this line AddModule mod_php4.c
AddType applicaton/x-httpd-php .php
Your phpinfo.php file should look like this:
<?php phpinfo(); ?>
No <html> or </html>. That's how it works for me. I'm not sure if that's an
issue or not though.
You're on the right track.
-Dash
-----Original Message-----
From: David Tod Sigafoos [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Help on new install please ..
I am having problems on a new install of PHP and Apache
Win2k, Php 4.2.2, apache 1.3.26
1) Install apache. Then browse to 127.0.0.1 and get the apache screen
2) unzip php and copy to c:/php
3) install.txt
a) dlls are all in the /php directory with php.exe (did not copy to
windows/system32
b) copied ini to windows director
c) modified ini file extension_dir = c:\php
d) modified ini file document_root = "c:\program files\apache
group\apache\htdocs\"
e) no extensions
Web Server Config: First try SAPI
a) copied php4ts.dll to windows/system32 directory
b) added following lines to httpd.conf
LoadModule php4_module "c:/php/sapi/php4apache.dll"
AddModule mod_php4.c
AddType applicaton/x-httpd-php .php
Start Server .. get message
[Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added,
skipping
Apache/1.3.26 (Win32) running...
Then bring up browse and try for phpinfo.php script in htdocs
I get the 'download' screen from my netscape browser. It doesnt
recognize php
Web Server Config: Now try php.exe (cgi)
a) shut down server
b) modify http.conf.
# out the lines mentioned above and add the following
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
c) start up server (no message as noted above)
d) bring up browser and try for phpinfo.php script in htdocs
I get a blank page. upon viewing the source it is
<html><body></body></html>
My phpinfo.php record is
<html>
<?php phpinfo(); ?>
</html>
This works well from my other server ...
So .. what have I missed ..
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php