http://wordpress.org/about/requirements/
Based on the requirements page, the latest versions of PHP and MySQL should be fine.
How to upgrade them is a question for your web host. If you're running your own server, try asking on a server administration forum.