Magento is officially compatible with PHP versions 5.2.13 - 5.3.15. You should be advised that there is a bug in PHP 5.2.9 that, in some cases, will cause Magento’s get/set magic methods not to create underscores properly. This can result in direct item links being broken.
There should be the minimal version PHP 5.2.13 or newer, so you see that there will be a lot of bugs on your Magento version.
We recommend you the last PHP version. You have the server and there is PHP version 5.2.9, so Magento doesn’t work on it.
If you want it works, you need to update PHP version.
If it is not your server, you need to contact your host provider or run PHP like cgi application.