Hosting Talk | Web Hosting talk India

Web Hosting   Add Host and Hosting News 


Go Back   Hosting Talk | Web Hosting talk India > Web Hosting Main Forums > Web Hosting > Web Hosting Tutorials


Thread Tools Display Modes
Old 06-12-2012, 11:17 PM
SolidShellSecurity SolidShellSecurity is offline
Join Date: Jun 2012
Posts: 31
Thumbs up exit signal Segmentation fault (11) – cPanel – Enable Apche core dump

If you are seeing “Segmentation fault (11)” entry in apache error log on your server, it tells something is wrong with your web server ( perhaps causing by any specific modules ). The best way to track the source of the error is by enabling apache coredump feature. To do it on a cPanel server, follow the below steps!

1. Enable coredump in httpd.conf. For that add the following directive to /usr/local/apache/conf/httpd.conf

CoreDumpDirectory /tmp/httpdump

2. Create the coredump directory and set necessory permission / ownership

mkdir /tmp/httpdump
chown nobody:nobody /tmp/httpdump
chmod 775 /tmp/httpdump

3. Now run apache distiller and rebuild httpd.conf

/usr/local/cpanel/bin/apache_conf_distiller –update

4. Edit /etc/init.d/httpd and add the following line to it, after the “ulimit” directives at the top of the script ( Apche inherit ulimit properties from the startup script )

ulimit -c unlimited

5. Now gracefully restart apache

/scripts/restartsrv http

6. Ok, we have completed the configuration. To check whether it’s working correctly send “SIGSEGV” to any of the apache child process.

Run – ps aux | grep http and pick a random PID
Run – tail -f /usr/local/apache/logs/error_log one terminal
Run – kill -SIGSEGV on terminal two and you can see a log entry as follows on terminal one

exit signal Segmentation fault (11), possible coredump in /tmp/httpdump

PS: Disable it when debugging is over!

Reply With Quote
Old 06-13-2012, 03:31 AM
jitender jitender is offline
Join Date: May 2012
Posts: 104

very impressive, now you can find the problematic module and get full source too.

Reply With Quote

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

All times are GMT. The time now is 11:53 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2018, SEO by YABBSEO 1.0 2012,