Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2013 23:28:58 +0300
From:      Panagiotis Christias <christias@gmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Cc:        Mark Moellering <mark@msen.com>
Subject:   Re: php problems
Message-ID:  <CAOnqd9uv7Mn_QJM3DOFOn6b7wgVRqczwrQHtAa72hZPD1Vcjfg@mail.gmail.com>
In-Reply-To: <E191CC7A-C143-4831-BB73-C5793A0AB9A4@gmail.com>
References:  <52006E74.9080905@msen.com> <E191CC7A-C143-4831-BB73-C5793A0AB9A4@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 6, 2013 at 5:56 PM, mikel king <mikel.king@gmail.com> wrote:

>
> On Aug 5, 2013, at 11:33 PM, Mark Moellering <mark@msen.com> 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 :
> > <?php
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOnqd9uv7Mn_QJM3DOFOn6b7wgVRqczwrQHtAa72hZPD1Vcjfg>