From owner-freebsd-questions@FreeBSD.ORG Sun May 14 14:09:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B0A216A476 for ; Sun, 14 May 2006 14:09:32 +0000 (UTC) (envelope-from jhorne@dfwlp.com) Received: from zeus.int.dfwlp.com (zeus.dfwlp.com [208.11.134.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FF7D43D60 for ; Sun, 14 May 2006 14:09:31 +0000 (GMT) (envelope-from jhorne@dfwlp.com) Received: from hera.int.dfwlp.com (hera.int.dfwlp.com [192.168.125.82]) (authenticated bits=0) by zeus.int.dfwlp.com (8.13.6/8.13.6) with ESMTP id k4EE9RAl078345 for ; Sun, 14 May 2006 09:09:28 -0500 (CDT) (envelope-from jhorne@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Sun, 14 May 2006 09:09:26 -0500 User-Agent: KMail/1.9.1 References: <2cd0a0da0605140042m1e89c38bw1f0c33ddb44569a8@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605140909.27323.jhorne@dfwlp.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on zeus.int.dfwlp.com Subject: Re: PHP not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 14:09:32 -0000 On Sunday 14 May 2006 03:32, Pablo Mora wrote: > On 5/14/06, 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 > > 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