How to stop generating core files

You may come across core files which gets generated within your accounts . The possible reason for the core files getting generated is when a php process is killed, apache creates core files under your account .

 

On phpSuexec servers this may cause due to incorrect php.ini file placed in your account and if it is caused due to php/apache then you can get rid off those core files by editing the httpd startup file on the server end. Following are the steps to edit httpd startup file.

 

 

 


root@server [~]#which httpd

/usr/sbin/httpd

 

root@server [~]# nano /usr/sbin/httpd

 

Search for ulimit lines .For eg : you can see these lines

 

ulimit -n 1024

ulimit -n 4096

ulimit -n 8192

ulimit -n 16384

 

You need to add ulimit -c 0 at the end .Which will look like :

 

ulimit -n 1024

ulimit -n 4096

ulimit -n 8192

ulimit -n 16384

ulimit -c 0
 
root@server [~] /etc/init.d/httpd restart
  • 28 Users Found This Useful
Was this answer helpful?

Related Articles

 Cannot upload images to phpBB posts

The issue is mainly occurring due to the absence of some code. To fix this issue, do the...

 How to Change Your FTP Port

Lately FTP has been a problem for a lot of hosting providers. Especially since the recent influx...

 Child pid xxx exit signal Segmentation fault (11)

Sometimes apache is crashing and all or some PHP pages are showing blank when you browse it. Also...

 Mailman Error “Bug in Mailman version 2.1.11.cp3?

If you are getting following error when trying to modify mailinglist then execute following...

 cPanel :: Unable to locate clamd

If you are not able to restart clamd on cpanel server and getting following...