Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:30 PM
bertoulin@hotmail.com
Guest
 
Posts: n/a
Default 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!


  #2  
Old July 17th, 2005, 01:30 PM
Janwillem Borleffs
Guest
 
Posts: n/a
Default 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




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.