Ask HN: Web programming for a C++ server developer? 17 years ago
Coming from C++, if you do not want to become crazy using untyped languages you might be interested by the haxe programming language.
A nice inference typed language which can be compiled down to neko bytecode (much like java bytecode), JavaScript (for the client side), Flash movies (idem), and even C++
Plus, haxe has a mod_neko for apache and lot of libraries to manipulate databases and templates.