doublec16
08-28-01, 10:31 AM
I'm running RH7.0, and Apache 1.3.17. I have tried all sorts of versions of php. I have php4.0.something and the corresponding mod_php installed. How do I get the mod_php to work with Apache so it parses php files? PHP works fine when I use it on the command line, but when I look at them with a browser it prompts me to save the file instead of parsing it. I have inserted the following lines into my httpd.conf file:
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
and
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Any advice would be greatly appreciated. Thanks.
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
and
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Any advice would be greatly appreciated. Thanks.