From owner-freebsd-questions@FreeBSD.ORG Sat Jun 3 18:12:17 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 CB74F16A41F for ; Sat, 3 Jun 2006 18:12:17 +0000 (UTC) (envelope-from bsd@bathnetworks.com) Received: from lmail.bathnetworks.co.uk (mail.bathnetworks.com [84.92.24.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B68E43D55 for ; Sat, 3 Jun 2006 18:12:08 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: (qmail 19320 invoked by uid 510); 3 Jun 2006 19:18:44 +0100 Received: from 192.168.0.104 by lmail.bathnetworks.co.uk (envelope-from , uid 508) with qmail-scanner-1.24-st-qms (clamdscan: 0.88/1261. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(192.168.0.104):SA:0(-4.5/5.0):. Processed in 1.19986 secs); 03 Jun 2006 18:18:44 -0000 X-Spam-Status: No, hits=-4.5 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: bsd@bathnetworks.com via lmail.bathnetworks.co.uk X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(192.168.0.104):SA:0(-4.5/5.0):. Processed in 1.19986 secs Process 19313) Received: from unknown (HELO ubuntu.bathnetworks.local.bathnetworks.local) (bsd@bathnetworks.com@192.168.0.104) by lmail.bathnetworks.co.uk with SMTP; 3 Jun 2006 19:18:42 +0100 From: robert To: Free BSD Content-Type: text/plain Date: Sat, 03 Jun 2006 19:12:04 +0100 Message-Id: <1149358324.9348.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Subject: Apache22 + PHP5 installation issues 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: Sat, 03 Jun 2006 18:12:17 -0000 Hi all, I am having problems with setting up a web server. I'm running FreeBSD 6.1-Release-P1, updated of yesterday. I have installed Apache22, php5 and php5-extensions from the ports. (I did check the build Apache module option in the php5 config). My first problem is that the handbook still refers the to mod_php which is not available. A search of the archives gave me the answer that it has been removed. My httpd.conf has: LoadModule php5_module libexec/apache22/libphp5.so To which I have added: AddType application/x- httpd-php .php AddType application/x- httpd-php-source .phps As per the pkg-message. The problem is that although I can connect to apache, php does not appear to run, all I get in a browser is unknown file type and a suggestion to download the file. I have also tried adding index.php to the DirectoryIndex I have to follow the handbook and tried this: DirectoryIndex index.php index.html AddType application/x- httpd-php .php AddType application/x- httpd-php-source .phps ie with php5_module rather than mod_php, but that also fails to work There is nothing in the apache-error.log nor messages that help. Any ideas, suggestions please. Rob