I deployed the code base https://github.com/openstreetmap/openstreetmap-website under aws apache server and I followed instruction at https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md as it is. Now every thing seems to be ok, but I got an error when I tried to register, login and diary. The error message is at bellow. Please try to give the solution
The OpenStreetMap server encountered an unexpected condition that prevented it from fulfilling the request (HTTP 500)
Feel free to contact the OpenStreetMap community if your problem persists. Make a note of the exact URL / post data of your request.
This may be a problem in our Ruby On Rails code. 500 occurs with exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code)