The 500 internal server error often appears when importing emails to an existing blacklist of bigger size. After alot php tweaking, it was still the same with me. However, I noticed that since making changes in timeout values and memory size limits in PHP is not making any effect. I moved onto the apache itself. A simple fix is to increase timeout value for the apache and that will resolve the issue.