Connecting Tech Pros Worldwide Help | Site Map

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

bertoulin@hotmail.com
Guest
 
Posts: n/a
#1: Jul 17 '05
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
Guest
 
Posts: n/a
#2: Jul 17 '05

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


bertoulin@hotmail.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




Closed Thread