Date: Wed, 04 Oct 2006 18:05:58 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: CTLD Design Ltd <webmaster@ctld.co.uk> Cc: freebsd-apache@freebsd.org Subject: Re: help please Message-ID: <4523DBE6.5000905@quip.cz> In-Reply-To: <001001c6e7c9$bc742990$0600a8c0@CTLDLTD> References: <001001c6e7c9$bc742990$0600a8c0@CTLDLTD>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <? (short open tag), you need short_opent_tag = On in your php.ini file Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4523DBE6.5000905>