From owner-freebsd-apache@FreeBSD.ORG Wed Oct 4 16:07:36 2006 Return-Path: X-Original-To: freebsd-apache@freebsd.org Delivered-To: freebsd-apache@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 529F716A407 for ; Wed, 4 Oct 2006 16:07:36 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from slimak.dkm.cz (slimak.dkm.cz [62.24.64.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 6B7C943D70 for ; Wed, 4 Oct 2006 16:07:34 +0000 (GMT) (envelope-from 000.fbsd@quip.cz) Received: (qmail 75705 invoked by uid 0); 4 Oct 2006 16:05:58 -0000 Received: from grimm.quip.cz (HELO ?192.168.1.2?) (213.220.192.218) by slimak.dkm.cz with SMTP; 4 Oct 2006 16:05:58 -0000 Message-ID: <4523DBE6.5000905@quip.cz> Date: Wed, 04 Oct 2006 18:05:58 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, en, cs, en-us MIME-Version: 1.0 To: CTLD Design Ltd References: <001001c6e7c9$bc742990$0600a8c0@CTLDLTD> In-Reply-To: <001001c6e7c9$bc742990$0600a8c0@CTLDLTD> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org Subject: Re: help please X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Oct 2006 16:07:36 -0000 CTLD Design Ltd wrote: > Hi > > I have just aquired a server with freebsd on it, the site I want to run on it needs to be able to show php within a html document, using a .htaccess file in the root directory of the site. > I have tried many different ways within the htaccess file but it just keeps trying to download the file, have I wasted my money or is there a work around for this, changing the pages file extension is not an option, the site is currently on an ensim server and works fine for running php within html. > > Not sure if this email is going to the correct people, sorry if any inconvenience is caused I don't know what you have in .htaccess file, but you need something like this in httpd.conf and restart Apache LoadModule php5_module libexec/apache22/libphp5.so AddType application/x-httpd-php .html (if you need *.html files processed by PHP interpeter) Also look in to your files to PHP open tag, if you are using