Step 1: (adding the repo)
paste the code below into the file we created above using your favourite text editor
Step 2: (Installing Suhosin patch on centos 5.x)
From the command line run the following command
yum install php-suhosin
Step 3: (Restart Apache web server)
service httpd restart (restarting apache so it re-reads the php.ini)
Step 4: ( Making sure suhosin is working)
To test that it is all working copy and paste the code below into a command prompt
echo "< ?php phpinfo(); ?>" > /var/www/html/phpinfo.php
you should see a lot of information and in there if you search you will see suhosin related information.
Congratulations you now have a hardened php install and no complicated work or rebuilding of packages required.