From owner-freebsd-questions@FreeBSD.ORG Thu Nov 3 14:57:08 2005 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 34A7E16A41F for ; Thu, 3 Nov 2005 14:57:08 +0000 (GMT) (envelope-from th.linton@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91CF443D45 for ; Thu, 3 Nov 2005 14:57:07 +0000 (GMT) (envelope-from th.linton@gmail.com) Received: by nproxy.gmail.com with SMTP id l24so105715nfc for ; Thu, 03 Nov 2005 06:57:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Chf+eQSFI+cz1cQM3UVE0PI88mMjCcGDr3FwfB3dmwb3v4ttDIIY0W0vRXOWuGOz/+CEw+/3BDVbHZHhqIPrejMrm5MGini0UYyzC1QAa0+gm33myWTyoUIhX/oz8gGeADkyY0lJtzwKNam33Ccl2YUbKDAspCz5WN7gHVaiMV8= Received: by 10.48.240.8 with SMTP id n8mr371357nfh; Thu, 03 Nov 2005 06:57:06 -0800 (PST) Received: by 10.48.229.16 with HTTP; Thu, 3 Nov 2005 06:57:06 -0800 (PST) Message-ID: Date: Thu, 3 Nov 2005 15:57:06 +0100 From: Thomas Linton To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Apache + PHP : Exec format error 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: Thu, 03 Nov 2005 14:57:08 -0000 I can't get the package WebCalendar-1.0.0 to work; I always get following error in /var/log/httpd-error.log (8)Exec format error: exec of '/usr/local/www/data-dist/WebCalendar/index.php' If I put #!/usr/local/bin/php at the beginning of the index.php it works, however I would like to use the apache module php4_module instead of php as CGI. I'm running 5.4-STABLE with the pkg apache-2.0.54_4 and php4-4.4.0 (Apache Module and CLI). The httpd.conf includes the line "LoadModule php4_module libexec/apache2/libphp4.so". Any ideas?