Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: **Solved** Segfault Rendering Sugar Useless - PHP5.X.X

  1. #1
    Denyerec is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    14

    Angry **Solved** Segfault Rendering Sugar Useless - PHP5.X.X

    I have so far tried:

    PHP 5.0.5
    PHP 5.2.0
    PHP 5.1.2

    Installation is fine, most operations are fine, but if I try to view a contact or a user, blank screen. Nothing. No Sugar log entry, nothing at all.... except....

    ....The dreaded Segfault 11 in the apache Error log.

    This problem didn't occur on PHP4 but I need PHP5 on my server as this isn't 2002 anymore and it's time to move on.

    Other users report success with PHP5 so I'm totally stuck as to what to do next. I removed 5.2 and installed 5.0.5, that didn't work so I updated my entire linux server to Ubuntu Dapper (From Breezy) so I could access PHP 5.1.2 as that was on the Sugar supported list.

    Much to my dismay, this doesn't work either.

    Has anyone got *ANY* idea what's causing this? I've searched the forum and the only proposed fix (Register long arrays) does nothing for my problem. Neither does upgrading to PHP 4 as that's not an option.

    This happens on my mature sugar install as well as the clean one I installed out of desperation.

    Please, any offers of advice, or areas to investigate would be greatly appreciated. This issue has already caused 2 days of downtime and isn't doing my faith any favours

    Thanks in advance,
    Denyerec
    Last edited by Denyerec; 2006-12-20 at 08:50 PM. Reason: Solved

  2. #2
    Jacob's Avatar
    Jacob is offline Senior Member
    Join Date
    Oct 2004
    Posts
    331

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    I have this exact stack running beside me. The one component that I do not have is JSON.

    Do you have an accelerator installed (Zend Platform, APC, ...)?

    What version of Sugar are you running? (e.g. 4.5.0a Enterprise)

    Does turning off the JSON extension help?

    Jacob

  3. #3
    Jacob's Avatar
    Jacob is offline Senior Member
    Join Date
    Oct 2004
    Posts
    331

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    Can you send your php.ini?

    We definitely support PHP 5. In fact, we are moving to make it a minimum requirement.

    Jacob

  4. #4
    Denyerec is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    14

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    Hi there,

    Disabling JSON didn't alleviate the problem, sadly.
    I am not running any accelerators and I'm using sugar Open Source Version 4.5.0g (Build 1234) (Free version). I was using version F, the same problem ocurred and sadly updating to g didn't solve it.

    PHP is version 5.1.2 from the Ubuntu Dapper main trunk repository, nothing fancy there.

    Apache is version 2, again from the Dapper main repository.

    I have uploaded my php.ini file and you can find it here:

    http://www.denyerec.co.uk/files/php.ini.txt

    Thankyou for your swift response!

  5. #5
    kpit's Avatar
    kpit is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Dec 2005
    Location
    Memphis, TN
    Posts
    996

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    try reinstalling apache and php there may be some missing libraries. json extension leave out for now. I have had problems with json extention when not version 1.1.1.

    You also to be very specific on versions. for example apache 2.0.53... not just version 2.
    Cheers,

    Max W. Blackmer, Jr.

    Blog
    Phone: +1 (901) 672-2694



  6. #6
    Denyerec is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    14

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    My apache version is: 2.0.55-4ubuntu2
    The modules associated are:

    apache-common install
    apache-dev install
    apache2 install
    apache2-common install
    apache2-doc install
    apache2-mpm-prefork install
    apache2-threaded-dev install
    apache2-utils install
    libapache2-mod-auth-mysql install
    libapache2-mod-auth-plain install
    libapache2-mod-php4 deinstall
    libapache2-mod-php5 install
    libapache2-mod-python install
    libapache2-mod-python2.4 install
    libapache2-svn install

    Is there anything missing from that, or surplus to requirements? My apache was updated in the move from Breezy to Dapper Ubuntu, so as far as I am aware it's a new installation. If you think it would be of any benefit I could post the httpd.conf ?

    For completeness, the PHP modules installed are:

    libapache2-mod-php4 deinstall
    libapache2-mod-php5 install
    php-pear install
    php4-common install
    php4-gd deinstall
    php4-mysql deinstall
    php5 install
    php5-cgi install
    php5-cli install
    php5-common install
    php5-curl install
    php5-gd install
    php5-imap install
    php5-json install
    php5-ldap install
    php5-mcrypt deinstall
    php5-mhash install
    php5-mysql install
    php5-mysqli install
    php5-snmp deinstall
    php5-sqlite install
    php5-xmlrpc install
    php5-xsl install

    You may also view my phpinfo() here: http://sozutux.dyndns.org/jahealth/phpinfo.php

    Thankyou kindly for your continued support!

  7. #7
    Denyerec is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    14

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    Anyone else out there have any other suggestions? I'm at my wit's end on this one

  8. #8
    matteo1 is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Oakland, CA
    Posts
    24

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    You could try a LAMP distribution, to make sure that your PHP, MySQL, Apache and LInux are all truly compatible.

    Matt Anderson

  9. #9
    Jacob's Avatar
    Jacob is offline Senior Member
    Join Date
    Oct 2004
    Posts
    331

    Default Re: Segfault Rendering Sugar Useless - PHP5.X.X

    Try turning off compatibility mode....

    zend.ze1_compatibility_mode = Off

    This is trying to make PHP5 behave like PHP4 from a reference perspective. It might be throwing off some of our code.

    In my stack, I have it off.


    ------------------------------------------

    You can also try our stack installer. It will create a new copy of MySQL, Apache, and PHP, but it should work and will give you a reference to compare against.

    http://www.sugarforge.org/content/downloads/
    Bitrock Linux Installer 4.5.0g

    Once you have the stack installed, you can copy your application over for testing.

    Jacob

  10. #10
    Denyerec is offline Sugar Community Member
    Join Date
    Dec 2006
    Posts
    14

    Smile Re: Segfault Rendering Sugar Useless - PHP5.X.X

    Oh my word.


    *SOLVED*

    Compatibility mode was indeed causing the segfault. Now quite WHY this was the case remains a mystery, but turning off compatibility mode in the PHP.INI now enables all the pages to render without segfaulting.

    Of course now scripts that require it will not function, but fortunately I don't rely on any such scripts for my local work.

    Thankyou kindly for your help here, I hope that this might shine a light onto the root cause of whatever is causing the segfault.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •