PHP not working

Jonathan Horne jhorne at dfwlp.com
Sun May 14 07:09:32 PDT 2006


On Sunday 14 May 2006 03:32, Pablo Mora wrote:
> On 5/14/06, Maan Jee <maanjee at gmail.com> 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
>
> Once modified the httpd.conf file you must restart apache. As root:
> apachectl restart
>
> don't forget add enable_apache2="YES" to /etc/rc.conf
>
> regards.

i would back up one step, and make sure that you have the 
file /usr/local/libexec/apache/libphp5.so.  currently as of port version 
php5-5.1.4, this required component does not automatically compile.

also after that, make sure that you added index.php to the DirectoryIndex 
line.

jonathan


More information about the freebsd-questions mailing list