PHP or ASP
MySQL or similar databases
If supported URL Rewriting
The reasoning for that order is as follows...
Learn a serverside, the most popular is PHP but others exist like ASP which is the alternative to PHP.
Server management with URL rewriting is a bonus.