PHP install on Apache win 2000 Pro
| From: | John D . Wiles | Date: | Sat, 30 Mar 2002 16:09:56 +0000 |
| Subject: | PHP install on Apache win 2000 Pro | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6511@lists.php.net to get a copy of this message | ||
Can anyone assist me with this strange problem?
After installing PHP on my WIndows 2000 Pro machine with Apache web server, when I run the suggested
"test" program:
<?php phpinfo();?>
at http://127.0.0.1/test.php the expected
"phpinfo" page is displayed in beautiful html.
However, the following script will not run:
<?php echo "This is a test"; ?>
Strangely though, the following will run:
<?php
echo "This is a test";
<?php phpinfo();?>
?>
as expected with This is a test displayed before the phpinfo HTML.
Then when I cut the <?php phpinfo();?> out of the script and re-run it, I get:
This is a test
as originally expected! until I try again in a NEW browser window then it will not work again! What
gives!!???
Windows 2000 Professional machine
Apache 1.3.22 web server with several virtual hosts
IIS is running for FTP only
I download the PHP 4.1.2 installer [920Kb] and ran the install. Then I added the recommended three
lines to my Apache http.conf file:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
I moved php4ts.dll to the windows/system
I wanted to do the sapi install so I had to "manually" create the php/sapi directory,
download the zip package to find the php4apache.dll file, and then copy it into the php/sapi
directory.
The only change I made to the php.ini was doc_root = c:\apache\apache\htdocs
Please help.
- John
_____________________________________________________________
Get a free email account at http://freemail.wwwddd.com
_____________________________________________________________
Run a small business? Then you need professional email like you@yourbiz.com from Everyone.net http://www.everyone.net?tag