Create messages folder and fix server error