Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default php segfaults

    I'm having an odd problem. At first, it was taking php pages a long time to load, upwards of 2 minutes. So I just recompiled php and apache and got no errors, and now my php scripts still take about 2 minutes to load, but then they don't load, apache wants me to download them. They run correctly on commandline using the syntax /usr/bin/php < /path/to/file.php but php segfaults when I do /usr/bin/php /path/to/file.php, but only after printing all of the HTML that the script is supposed to return! And my httpd.conf has the required application type. Is there something to check that I'm not thinking of?
    Last edited by fuzzymonkey; 04-11-2006 at 04:49 PM.

  2. #2
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    check your /tmp directory to make sure its not full

    also what version mysql are you running ?
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default

    Thanks for replying, MySQL 4.0.25, and /tmp has 24K in it, how much is full?

  4. #4
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    ssh and then df

    this will show used and free space in all partitions

    what version apache and php and what OS ?
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  5. #5
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default

    RHEL-3, apache 1.3.34, php 4.4.1, plenty of free space on all partitions.

  6. #6
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    give this a try

    rm -fr /home/cpapachebuild

    then /scripts/easyapache

    then /scripts/installzendopt

    have no idea if this will help or not but it will give you a complete fresh install

    make sure you check verbose and uncheck skip apache in easyapache

    watch the install for errors
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  7. #7
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default

    thanks, still no change : ( is there something other than LoadModule, AddModule, and the application type that I'm supposed to have in httpd.conf? Is there some way to test the apache php module, but not over an http connetion?

    Edit: I found an error:

    [PEAR] PEAR: Installation failed: invalid package file
    Last edited by fuzzymonkey; 04-11-2006 at 10:26 PM.

  8. #8
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    what options are you compiling with in easyapache ?
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  9. #9
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default

    Expires Module
    Raise FD_SETSIZE to 16384 (System Wide)
    Prevent Users from reading other webroots
    Frontpage Module
    Raise HARD_SERVER_LIMIT
    Php Module (Version 4.3.3)
    -Php version 4.4.2
    -Bc Math
    -Calendar Support
    -FTP
    -Magic QuotesZlib
    -Mysql ModuleVersioning
    -Discard Path
    -PearSockets
    -Track Vars



    Then:
    Report Build Errors to cPanel
    Rewrite Module
    SSL Module (Version 2.8.25)
    suEXEC Module
    Verbose Build (show configure and gcc output)

    I believe these are all the defaults for option 1.

    Apache's error log says:
    Code:
    [Tue Apr 11 23:00:33 2006] [error] (22)Invalid argument: setrlimit(RLIMIT_AS): failed to set memory usage limit
    [Tue Apr 11 23:00:34 2006] [notice] child pid 13859 exit signal Segmentation fault (11)
    Last edited by fuzzymonkey; 04-11-2006 at 11:02 PM.

  10. #10
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    http://forums.cpanel.net/showthread....ight=setrlimit

    Down toward the bottom is some fixes that appear to have worked
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  11. #11
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default

    Thanks, it got rid of the error, but php still doesn't work!!

  12. #12
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    what does <? phpinfo() ?> show ? or does it try to download ?
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

Similar Threads & Tags
Similar threads

  1. PHP 5.3.2 segfaults on CentOS 5.4
    By Misiek in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-20-2010, 03:49 AM
  2. cpsrvd.so segfaults
    By nickp666 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-09-2009, 03:33 AM
  3. Multiple segfaults
    By robb3369 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-17-2008, 02:27 PM
  4. Segfaults all over the place!
    By ozzi4648 in forum cPanel and WHM Discussions
    Replies: 44
    Last Post: 07-24-2003, 06:45 PM
  5. easyapache -> segfaults
    By eva2000 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-15-2003, 12:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube