I have big error_log

ogah

New member
last month i have delete error_log in my account, but start from October 22 until now file size of the error_log has been 3.64 MB
and all the contents of the error_log only kind like this error

[22-Oct-2014 07:53:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

its look like come from misconfiguration the server

cpanel username: ddlgen
domain: ddlgen.net
 

un4saken

Administrator
It's a known cPanel issue. Just delete your error_log file time to time. I'll try to find a way to fix it later
 

un4saken

Administrator
I use this code in my index page so it deletes the error log file everytime it loads

PHP:
unlink('error_log');

you may want to add error_reporting(0); incase there's no error log file
 

jaran

New member
Or use this one if error_log file doesnt exist.
PHP:
<?php 
if(file_exists('error_log')){
    unlink('error_log');
}else{
    echo '';
}
 ?>
 

ogah

New member
i always use error_reporting(0); in my all website.
but in this case error_reporting() not effect, because the error not come from php script
 

un4saken

Administrator
This should be fixed now.

It seems our module "ffmpeg.so" was not compatible with the current php version. so i had to reconfigure the php.