change permission for error-php.log to 777
add php configuration for error handling