Generally, for this type of application you want to go with the LAMP structure. (LAMP = Linux Apache Mysql PHP, Perl, Python) You got linux, apache, and mysql. You just have to figure out what P you want to use to "glue" your web data to mysql.
Any of the three will do and its a matter of preference which one you use. PHP is probably the most widely used for this type of application so I'd go with that.
Check out
www.onlamp.com for some resources on the LAMP platform.