Zavier Sheran schrieb:
> I installed PHP 4.3.0 and Apache 1.3.27 on XP Pro.
>
> When I try to access a .php file with the browser, it offers it for
> download.
>
> Yep, I have this in my httpd.conf:
>
> LoadModule php4_module C:\PHP\sapi\php4apache.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
>
> I browsed the archives and this issue seems common and goes back for years
> on Linux/Windows and a variety of php 4.x and apache 1.3.x and 2.x versions.
> Nobody, in this time period of years, came up with a solution that solved
> the problem of the poster.
>
> I spent the last hours trying to get it work to no avail. I had it working 2
> years ago on a Win 2K machine. Now this...
>
> Does anybody actually know what wrong (Rasmus??)? It's all setup according
> to manual and double and quadruple checked.
>
> All's fine when I execute on the command prompt. I can access al .html and
> .jpg .gif files via browser.
>
If it offers you the file to download then this mean the PHP engine didn't
run and parse the file. Maybe take care of the "/" and "\" in the file and
folder settings cause in linux directorys are with "/" NOT with "\" !
Yes, you are on windowz, but Apache came from *nix systems ...
my working httpd.conf shows like:
<snip>
...
LoadModule php4_module k:/PROGRA~1/AppServ/php/sapi/php4apache.dll
...
AddModule mod_php4.c
...
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php index.php3
</IfModule>
...
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
...
<snip>
be sure that you have also copy some files to the win\system32 directory,
... maybe something like "php4ts.dll" ... but look in your php directory
for "install.txt" there is a section howto install PHP with Apache on Windowz !
regards
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php