The error_log is always there. But you want its size not to keep on growing? You may google for "log rotation". If you're using any control panel in your box, that options should also be there.
In order to disable to error_log you have to do two things, first to disable it in Apache configuration and secondly to also "off" it in php.ini. If you are not familiar with Apache configuration contact Management company they will do it for you. In my case it was done by Softalyer team. But its worth to tell what they have recommended me about error_log deletion. I hope it will help. -Regards.
You might want to disable it for PHP only by looking into the php.ini configuration variable, I believe it's log_errors.
possible reason for the core files getting generated is when a php process is killed, apache creates core files under your account .you can get rid off those core files by editing the httpd startup file on the server end Search for ulimit lines You need to add ulimit -c 0 at the end .Which will look like : Save it :wq Now Stop Apache and Start httpd restart Ex: root@server [~]# service httpd stop