View Single Post

  #2 (permalink)  
Old 03-04-2004
Dan Wilga
 
Posts: n/a
Default Re: PHP does not work

In article <c25isk$h4j$1@news.iastate.edu>, Bing Du <bdu@iastate.edu>
wrote:

> But a very simple php file was either displayed as it is or asking for
> download when being accessed in browser. PHP docs say checking to see
> if PHP is enabled in Apache. How should I check?


You need to have a section like this somewhere in httpd.conf:

PHPINIDir /etc
AddType application/x-httpd-php .php .phtml

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

--
Dan Wilga dwilga-MUNGE@mtholyoke.edu
** Remove the -MUNGE in my address to reply **