This is a discussion on PHP does not work within the Linux Web Servers forums, part of the Web Server and Related Forums category; Greetings, I followed the instructions on the Apache and PHP website to get both installed. The following message showed up ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Greetings,
I followed the instructions on the Apache and PHP website to get both installed. The following message showed up in the error_log when httpd was started: =========== [Wed Mar 3 15:12:14 2004] [notice] Apache/1.3.29 (Unix) PHP/4.3.4 configured -- resuming normal operations =========== So Apache recognizes PHP fine. 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? Thanks in advance for any help, Bing |
|
|||
|
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 ** |