From owner-freebsd-questions@FreeBSD.ORG Tue Feb 10 17:33:37 2004 Return-Path: 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 BE91E16A4CE for ; Tue, 10 Feb 2004 17:33:37 -0800 (PST) Received: from mail.fabricinteractive.com (mail.fabricinteractive.com [65.61.135.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64DDE43D1F for ; Tue, 10 Feb 2004 17:33:37 -0800 (PST) (envelope-from mike@fabricinteractive.com) Received: from inspiron-xp (adsl-67-127-172-174.dsl.irvnca.pacbell.net [67.127.172.174]) (authenticated bits=0)i1B1XZBN014311 for ; Tue, 10 Feb 2004 17:33:36 -0800 (PST) (envelope-from mike@fabricinteractive.com) Date: Tue, 10 Feb 2004 17:32:47 -0800 From: Mike Bowie To: Message-ID: Mime-Version: 1.0 Organization: Buzmo Solutions X-Mailer: GoldMine [6.50.31113] Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Subject: FreeBSD 4.9, Apache 2.0.47 and PHP 4.3.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 01:33:37 -0000 All, I should probably be asking this in an Apache or PHP group, but given that the = source of the issue seems to be so elusive, I can't point the finger at either = just yet so I'm hoping someone here can point me in the right direction. I have a fresh FreeBSD 4.9 server running at a co-location facility. I've = twiddled the kernel a little for firewalling and removed all of the devices not = in use. Once the install was complete, I cvsup'd the ports tree to cvs release, in = order to have the more recent builds available and installed PostgreSQL, Apache = and PHP4 as I usually do. I then went to work preparing the sites to be = transferred to the new environment. The problem is, every now and then, (generally after Apache has been running = for about an hour, but sometime after only a few minutes,) Apache stops parsing = the files as PHP and starts serving them unparsed as application/x-httpd-php, = which obviously doesn't go over well. When it started to happen, I first blamed my rather sleek httpd.conf, which I = use on about four other servers as it is... without fault. So I setup my = virtual host entries etc in the default httpd.conf and went back to porting the = sites. It happened again... so I blamed the PHP module, so I rebuilt it again with = only the default options, minus mysql and plus postgresql. Same result. =20 So I reverted back to the original ports tree which shipped with 4.9 and = rebuilt PHP again. Same result. I then rebuilt Apache from the original 4.9 ports tree and PHP again to = match... same result. It's almost like PHP is core dumping somewhere... without warning or notice. I = can't seem to get anything special to come out in the logs, even when I run = "httpd -e debug -X" it happens and doesn't tell me anything. The most frustrating thing is the lack of knowing where to begin. Without = anything returning an error, I'm stumped. Any suggestions are welcomed! Thanks in advance, Mike. ps... I'd attach my whole httpd.conf and php.ini, but the problem presents = itself even when I use the stock versions from the ports installations. =3D=3D=3D=3D=3D begin virtualhost example =3D=3D=3D=3D=3D # Server values and flags ServerName my.domain.com ServerAlias testing.domain.com DocumentRoot "/usr/local/www/html" =20 # Parse .html files as PHP scripts AddType application/x-httpd-php .html # Compatibility flags while porting php_flag asp_tags on php_admin_flag register_globals on # Directory level controls Order allow,deny Allow from all =3D=3D=3D=3D=3D end virtualhost example =3D=3D=3D=3D=3D