Hello! I have problem with Debian Lenny (a "Perfect" one + suphp) server getting filled with core dump files (eg. core.1234) that eats up the whole space of server soon. Can anyone suggest me how to stop this dumps being made, or identify what app does it make. The core dump files appear in /var/www/webXY/web dirs and subdirs where some PHP scripts reside... e.g. Code: # ls -la /var/www/web26/web/core* -rw------- 1 web26_info web26 33853440 Oct 9 14:44 /var/www/web26/web/core.12026 -rw------- 1 web26_info web26 35299328 Oct 9 14:54 /var/www/web26/web/core.1371 -rw------- 1 web26_info web26 33857536 Oct 9 14:45 /var/www/web26/web/core.14226 and the info i get with "file" Code: # file /var/www/web26/web/core.12026 /var/www/web26/web/core.12026: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'w/web26/phptmp' Any ideas? Is the Apache or php producing it and how to stop it? Thanks!
after googleing I found it was suPHP killing the Apache and that producing dumps: http://linuxblackmagic.com/viewtopic.php?p=198&sid=195f5ce35e992f8ef95dc1f01d2523cc http://piyecarane.wordpress.com/2008/06/30/disable-coredump-on-apache-with-suphp/ Now, the solution is there for /etc/init.d/httpd file, but I can't find proper place for this parameter in /etc/init.d/apache2 nor where to put it... Any suggestions from more experienced admins?
If you're using ISPConfig, you can put this directive in the Apache Directives field of that web site in ISPConfig.
Yes, I am using ISPConfig 2, but it comes on all accounts... is there a general place to put it for all Apache2 instances?