Greetings -
Running apache 2.0.39 on RH 7.3, with a recent flavor of PHP installed
(standalone - not as mod_php). I want to install and run a package
that requires processing/accessing files with a .php extension.
I added the following to my httpd.conf file
ScriptAlias /php/ "/usr/bin/php"
and
AddType application/x-httpd-php .php .php4 .phtml
I restarted httpd, and yet, whenever I try to access a file with a
php extension, rather than executing it (i.e., displaying it in the
browser), it asks me if I want to save it to disk (it shouldn't
matter, but I'm using Mozilla for my borwser).
I suspect I've either done some wrong with the ScriptAlias or AddType
directives, but after several attempts, can't figure out what.
Alternatively, they may be correct, but I need something else in the
httpd.conf file.
Any suggestions (pointers to the obvious)?
Thanks!