How2CentOS posted a tutorial about installing PHP 5.3 on CentOS 5.7
The assumption for this CentOS 5.7 tutorial is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully.Installing PHP 5.3 on CentOS 5.7