Re: PHP - HOW TO MAKE IT WORK WITHIN APACHE
| From: | Scott Lamb | Date: | Wed, 17 Jul 2002 19:18:21 +0000 |
| Subject: | Re: PHP - HOW TO MAKE IT WORK WITHIN APACHE | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7787@lists.php.net to get a copy of this message | ||
J Fazenda wrote:
Hi Scott, Many thanks for your help. 1 - I do see several blocks <IfDefine>...</IfDefine> in httpd.conf but I only got:Start Apache first. :) That command will show you all the running Apache processes, their arguments, and a bunch of other information about them.root 3353 0.0 0.3 1728 564 pts/1 s 15:48 0:00 fgrep httpdwhen I didps auxww | fgrep httpd
4 - It still doesn't work. I'm testing with following index.html. Can you suggest any other test ?Yeah, don't name your test index.html. Use index.php. PHP will process all the filetypes it has been told to. You should find something like this in your configuration file:
<IfDefine HAVE_PHP4>
AddType application/x-httpd-php .php
</IfDefine>
(after the LoadModule/AddModule stuff.) If you want that to be in the default list of things to check in a new directory, make sure index.php is in your DirectoryIndex line.
You could have an equivalent AddType line for .html, but it would be dumb. PHP would process all HTML files, which would slow things down unnecessarily.
--
Scott Lamb