RE: Which php??

2011-01-11 Thread Christer Solstrand Johannessen
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Gary Kline
 Sent: 11. januar 2011 20:34
 To: Brad Mettee
 Cc: FreeBSD Mailing List
 Subject: Re: Which php??
 
 On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote:
  Gary Kline wrote:
  On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote:
  
 
  If you execute php -version from the shell, what do you get?
 
 
 
   Rats. Now i get a segv..Last night, no.   Ideas?

Recompile PHP with debug support. No, seriously.

I have had the same problem for years with different versions of PHP, and
hours of googling has led me to that answer. Seems that nobody can explain
exactly why enabling debug support fixes the problem, but it does.

Some boring history:
I ran into this problem trying to get Horde/IMP working properly way back in
2003. IMP needs some PEAR modules to work, and they refused to install
because PEAR needs PHP to work, and got cought on something and segfaulted
trying to install the PEAR modules. Reworking the loading order of the PHP
extensions seemed to work for some time, but then my changes got lost in
one of many PHP upgrades and things got stuffed again. For a while I solved
the problem by uninstalling Horde/IMP, but lately (since 2007-ish) I've hit this
snag every now and then. At some point I just gave up, and then I stumbled
across the enable debug in php and php-extensions trick, and it's been
painless ever since.

Speed-wise, I can't tell the difference. I haven't run any real tests because my
servers aren't very busy and thus I haven't seen the point, but I'll grant that
on busy servers it may very well affect performance. YMMV.

Good luck!

- Christer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Lingua franca file system Linux-NetBSD-FreeBSD?

2010-08-24 Thread Christer Solstrand Johannessen

 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Polytropon
 Sent: 24. august 2010 12:55
 To: Thomas Mueller
 Cc: freebsd-questions@freebsd.org
 Subject: Re: Lingua franca file system Linux-NetBSD-FreeBSD?
 
 
  Also, Linux and the BSDs go separate ways with some newer file
  systems (ext4fs, btrfs, jfs in Linux; zfs in FreeBSD).
 
 An option would be to avoid the file system level at all. Maybe
 that's
 not a solution to your requirements, but let me mention this: In a
 interoperability environment, I did use a disk enclosure with
 built-in
 FTP server. In this way, all OSes can r/w access its content via
 FTP.
 There are no limits regarding 8.3 filenames. Even MacOS X runs
 well
 in such a setting. The downside, of course, is that you have to
 run
 a FTP session for every transfer (instead of just mounting a
 disk's
 partition), but it's basically no problem to use a kind of FTP-
 backed
 file system, I think I have seen this in some KDE or Gnome...

I've successfully used CIFS/Samba and NFS between Linux, OpenBSD,
FreeBSD, Solaris and Windows for years. Easy to set up and works well.

If there are no Windows clients involved, I'd use NFS or AFS; with
Windows in the mix, CIFS/Samba may be a better choice as Windows NFS
clients are dodgy at best.

- Christer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org