Re: Problems installing PHP
| From: | DL Neil | Date: | Mon, 11 Mar 2002 17:47:12 +0000 |
| Subject: | Re: Problems installing PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88050@lists.php.net to get a copy of this message | ||
Hi Berlina,
> Im trying to install an Apache Web Server and PHP in a Windows NT .
>
> * Apache 1.2.23
> * PHP 4.1.1
> * Windows NT Server 4.0 with SP4
>
> The installation of Apache Web Server and PHP was succesfully ok, but
when I
> configure the PHP and Apache, editing the PHP.ini and httpd.conf
files, as
> installation manual says, was not any problem neither.
>
> The problem appears when i try to load a php file with the web server,
then
> shows all the content of a file. The server reads and show the file
but not
> execute it.
> And, of course I added the lines:
> LoadModule php4_module PATH/php4apache.dll
> AddType application/x-httpd-php .php
> in my httpd.conf file.
My (NT) system is Apache 1.3.20, PHP 4.0.6, NTWS 4.0 SP6a
Entries in httpd.conf that you didn't mention:
ScriptInterpreterSource registry
and in:
<IfModule mod_alias.c>
ScriptAlias /php/ "C:/Program Files/PHP/"
later (in addition to what you described) in:
<IfModule mod_mime.c>
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php .phtml .php3 .php4
- watch those PATHs!?
I'm not sure if any/all of them might be useful to you - I'm no Apache
specialist, but I followed the instructions given and everything runs
really well.
Regards,
=dn