Internal Server Error (error 500) after upgrade to 18.0.1.3

Use tail -f instead of nano and try to login. Check what errors is printed.