Add error pages, fix error handling and PHP conf
Add memory limit setting in unit tests