Cannot output to browser but can on shell (Apache segfault 11)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bertoulin@hotmail.com

    Cannot output to browser but can on shell (Apache segfault 11)

    When I run my script via the shell (e.g. "php test.php") the script
    generates the correct output everytime. If I attempt to access the
    script via the web (e.g. http://localhost/test.php), Apache reports a
    segfault:
    - [notice] child pid 11005 exit signal Segmentation fault (11)

    Occasionally, the script will create vaild output to the browser (but
    this is rare). If I stop the httpd service and run "httpd -X", the
    script works flawlessly and Apache reports no errors.

    PHP is working correctly -- simpler php applications and phpinfo(); can
    generate valid output using the httpd service.

    I am running:
    - Linux Fedora Core 3 (2.6.11-1.14_FC3)
    - Apache (Apache/2.0.52 (Fedora)) rebuilt RPM with oci8
    (instantclient support)
    - PHP (4.3.11)
    - PEAR::DB (1.7.5)
    - Smarty PHP Template engine (2.6.9)

    Thanks for the help!

  • Janwillem Borleffs

    #2
    Re: Cannot output to browser but can on shell (Apache segfault 11)

    bertoulin@hotma il.com wrote:[color=blue]
    > PHP is working correctly -- simpler php applications and phpinfo();
    > can generate valid output using the httpd service.
    >[/color]

    You should debug trouble scripts step by step, increasing the functionallity
    down the line.

    Also, see if there are common extensions/functions used in scripts causing
    the segmentation fault.


    JW




    Comment

    Working...