"MikeDawg" <mikedawg DeleteThis @gmail.com> wrote in message
news:1156519192.711122.233370@75g2000cwc.googlegroups.com...
>
> Frederick wrote:
>> Hi,
>>
>> So I have installed Appache Server 2.2, the service is running. But
>> when I place a *.php in the root directory it ask me if I want to
>> download the the file instead of running it.
>>
>> I have install Mysql 5 and PHP 4. how do I make the apache server
>> reconize php file.
>
>
> You'll want to add the following lines in your httpd.conf file, this
> applies to Apache 2.0, so I'm not 100% about apache 2.2, you may want
> to double check these:
>
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
> AddType application/x-httpd-php .inc
> AddType application/x-httpd-php .class
>
You make a reference to 'the service' which suggests running on xp. I run
linux so I can't say how this affects you, but you should have a single
directory where all the scripts lives, and that directory must be configured
to execute the scripts, not serve them. It's all in the docs.
Stuart
>> Stay informed about: Apache server does not recognize PHP file