RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K
| From: | Kongruengkit, Jip | Date: | Mon, 03 Mar 2003 22:14:39 +0000 |
| Subject: | RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10259@lists.php.net to get a copy of this message | ||
Sorry all, I forgot to mention these steps:
In Apache's config file (httpd.conf), I did the following:
- inserted ScriptAlias /php/ "c:/php/"
- inserted AddType application/x-httpd-php .php
- inserted Action application/x-httpd-php "/php/php.exe"
- inserted LoadModule php4_module c:/php/sapi/php4apache.dll
- inserted AddModule mod_php4.c
-----Original Message-----
From: Rich Gray [mailto:rich@f1central.net]
Sent: Monday, March 03, 2003 11:55 PM
To: Jip Kongruengkit; php-install@lists.php.net
Subject: RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2K
> Hi all,
>
> I have installed PHP 4.3.1 on Apache 1.3.27 on Windows2000
> Server, and I've
> created a test file with just <? php phpinfo(); ?>, but when I
> tried to view
> that file via my browser, I got a blank screen. And when I did 'view
> source' in the browser, I was able to see the source code of the
> PHP script.
>
> According to the FAQ, this means that the web server did not send
> the script
> to PHP for interpretation, but I have double checked the Apache
> configuration against the PHP installation instructions many many
> times, and
> there doesn't seem to be anything wrong.
>
> Here are the steps that I followed when installing PHP:
> 1. Extracted the files to c:\php
> 2. Copied php4ts.dll, php4apache.dll, and all files in c:\php\dlls to
> c:\winnt\system32
> 3. Copied php.ini-optimized to c:\winnt and renamed it php.ini
> 4. In php.ini, set extension_dir = c:\php\extensions\
> 5. In php.ini, set doc_root = c:\Inetpub\wwwroot\php\ (this is
> also where I
> put my test file)
> 6. Gave php.ini read permission to Everyone.
>
> Is there anything that I missed or did wrong? Thanks for any help.
Er ... did you configure Apache?
Rich