From owner-freebsd-questions@FreeBSD.ORG Wed Aug 7 20:28:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CAFF91E2 for ; Wed, 7 Aug 2013 20:28:59 +0000 (UTC) (envelope-from christias@gmail.com) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [IPv6:2607:f8b0:400c:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8988E2724 for ; Wed, 7 Aug 2013 20:28:59 +0000 (UTC) Received: by mail-vb0-f41.google.com with SMTP id g17so2396063vbg.0 for ; Wed, 07 Aug 2013 13:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ViHOYyTLDcA2VQxSUcNnnGPU951AoX0zguikGQtBVtc=; b=S3WVKaC1FjYruhPy+2uAw0v5ZYL2hGTe2Sii1BoWajWdudCVU8H3Gai5kmZ64X5dRE m82a2xrNAcAL4hDWbTvLg4U3PlLmPFJaARs3S2XXXqa5XtlaCgBC2/VnVcG3gNpBZm1o 8mXaY3aegLJNEETUmLiK2Etgkj54Im98fbUi1bfSX3pHgc1zFB8xPzJtbxbKCGSAr08p p0KF/zrlIqRYmlNuvJ4z0dStqsYf/snWM7naa1Vqqt95JzUOgUE9mYRlnu4VHje8Ry/j +l2v0X19UFkahI+/A114eVXJ6xKIz+h1rM3LbqPT+6wpRaG3wVI6R6aS3ORDOzBjXcGs VWUw== MIME-Version: 1.0 X-Received: by 10.220.237.130 with SMTP id ko2mr2288962vcb.88.1375907338565; Wed, 07 Aug 2013 13:28:58 -0700 (PDT) Received: by 10.58.210.231 with HTTP; Wed, 7 Aug 2013 13:28:58 -0700 (PDT) In-Reply-To: References: <52006E74.9080905@msen.com> Date: Wed, 7 Aug 2013 23:28:58 +0300 Message-ID: Subject: Re: php problems From: Panagiotis Christias To: freebsd-questions Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Mark Moellering X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 20:28:59 -0000 On Tue, Aug 6, 2013 at 5:56 PM, mikel king wrote: > > On Aug 5, 2013, at 11:33 PM, Mark Moellering wrote: > > > A few years ago (2011) I set up an email system for a small internet > based company. I used postfix with a mysql backend for virtual accounts. > I also set up apache to test a php based webmail front-end. > > I set up several php scripts that would run from cron that would query = a > database and look for new email account requests and then do a variety of > tasks to get everything set up properly. > > After I left, someone else made modifications to the system and things > stopped working properly. A few months ago I was asked to try and get > things working again. > > > > I discovered that all php scripts now generate a seg fault. > > > > I tried a simple "hello world" type program > > the actual code is : > > > echo "test" > > ?> > > and the output was; > > > > testsegmentation fault > > > > The system is FreeBSD 8.2 and php 5.3 > > > > If anyone has any idea of what changes might have been made that could > cause this, please let me know. My other thought was to try reinstalling= / > upgrading php. > > > > Thanks in advance > > > > Mark Moellering > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > Hey Mark, > > Do you have a backup/alternative system you can test the code on? In lieu > of that I would seriously consider rebuilding php. After you get it worki= ng > it would be worth also considering upgrading to 55. > > Also make a complete revision backup of the code and config files once yo= u > get it working, this will save a lot of hair if the company in question > hires someone else to tweak things in the future=85 > > Cheers, > Mikel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Hello, If a simple command like "php -v" (no script) results a seg fault then you should follow Patrick's advice. Or try editing by hand /usr/local/etc/php/extensions.ini and comment out one by one the extensions mentioned in there. If you are lucky you will find one or more offending extensions that you don't need and leave them commented out on uninstall them. If not, you would have to recompile/reinstall the offending extensions or portupgrade php and all extensions. Latest php versions in ports tree (all branches: 5.4.x, 5.3.x, even 5.2.x) seem to have resolve this issue. Regards, Panagiotis --=20 Panagiotis Christias christias@gmail.com