PHP not working

Duane Whitty duane at greenmeadow.ca
Sun May 14 00:51:38 PDT 2006


Maan Jee wrote:
> Hello,
>
> I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to 
> open
> index.php file in the browser instead of getting the Output Html page, 
> I get
> SAVE "index.php" file popup.
>
> What is the wrong, I have added these lines in httpd.conf
> AddType application/x- httpd-php . php
> AddType application/x- httpd-php-source . phps
>
> Thanks
>
> vj
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
>
>
>
Hi,

You need to add index.php to the DirectoryIndex line
in /usr/local/etc/apache22/httpd.conf
It should look like

DirectoryIndex index.html index.php

Hope this helps.

Sincerely,

Duane Whitty
-- 
duane at greenmeadow.ca


More information about the freebsd-questions mailing list