Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2006 09:09:26 -0500
From:      Jonathan Horne <jhorne@dfwlp.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: PHP not working
Message-ID:  <200605140909.27323.jhorne@dfwlp.com>
In-Reply-To: <cf841d6b0605140132i579b7efrdeb00463b91f5727@mail.gmail.com>
References:  <2cd0a0da0605140042m1e89c38bw1f0c33ddb44569a8@mail.gmail.com> <cf841d6b0605140132i579b7efrdeb00463b91f5727@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 14 May 2006 03:32, Pablo Mora wrote:
> On 5/14/06, Maan Jee <maanjee@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605140909.27323.jhorne>