From owner-freebsd-questions@FreeBSD.ORG Sun May 14 07:51:38 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 6BE3816A401 for ; Sun, 14 May 2006 07:51:38 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id B380A43D4C for ; Sun, 14 May 2006 07:51:37 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip01.eastlink.ca ([24.222.10.5]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IZ800LNMWGRYFM0@mta01.eastlink.ca> for freebsd-questions@freebsd.org; Sun, 14 May 2006 04:50:51 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip01.eastlink.ca with ESMTP; Sun, 14 May 2006 04:51:38 -0300 Date: Sun, 14 May 2006 04:50:50 -0300 From: Duane Whitty In-reply-to: <2cd0a0da0605140042m1e89c38bw1f0c33ddb44569a8@mail.gmail.com> To: Maan Jee Message-id: <4466E15A.2050303@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= References: <2cd0a0da0605140042m1e89c38bw1f0c33ddb44569a8@mail.gmail.com> User-Agent: Thunderbird 1.5.0.2 (X11/20060503) Cc: freebsd-questions@freebsd.org 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 07:51:38 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@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@greenmeadow.ca