C could be used as a CGI script but if you want to get the project completed fast I would recommend php. Then either MySQL or PostgreSQL. MySQL appears on all linux based servers PostgreSQL only appears on some. Keep in mind however a text turn based game is a huge undertaking. The one I wrote took me 3 months. However, it was the second project I had ever done in PHP I would imagine an experienced PHP programmer could do it faster.