Re: HELP-- PHP wouldn't work with Apache/W2K
| From: | Patrick LOK | Date: | Tue, 04 Mar 2003 07:49:34 +0000 |
| Subject: | Re: HELP-- PHP wouldn't work with Apache/W2K | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10262@lists.php.net to get a copy of this message | ||
RE: [PHP-INST] HELP-- PHP wouldn't work with Apache/W2KI have exact config/setup w/ yours
except loading sapi! Mine is working fine!
FYI, SAPI won't work on W2K; so the last 2 inserts are meaningless (you may remove them).
DId you 'Restart' Apache?
./pl
"Jip Kongruengkit" <jkongruengkit@lendingtree.com> wrote in message news:92B00EFA01D8464AB005885A5A6EDEDB2A5FF5@cltexch1.lendingtree.net...
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