Step1: Download the Magento-Cleanup.php from Blow link (unzip it ) http://www.magentocommerce.com/wiki/_media/groups/227/magento-cleanup2.zip
Step2:Upload The file In the magento Root directory
Step3: Open the Browser url
Like:www.somesite.com/magento/magento-cleanup.php
That’s it When you the see below window Everything Allright
--------------------------------------------XXXXX---------------------------------
----------------------- CLEANUP START -------------------------
*************** SETTING PERMISSIONS ***************
Setting all folder permissions to 755
Setting all file permissions to 644
Setting pear permissions to 550
****************** CLEARING CACHE ******************
Clearing var/cache
Clearing var/session
************** CHECKING FOR EXTENSIONS ***********
-= WARNING =- Overrides or extensions exist in the app/code/community folder
------------------- CLEANUP COMPLETED in:0.7012 seconds ------------------
*************** SETTING PERMISSIONS ***************
Setting all folder permissions to 755
Setting all file permissions to 644
Setting pear permissions to 550
****************** CLEARING CACHE ******************
Clearing var/cache
Clearing var/session
************** CHECKING FOR EXTENSIONS ***********
-= WARNING =- Overrides or extensions exist in the app/code/community folder
------------------- CLEANUP COMPLETED in:0.7012 seconds ------------------
Now open your magento directory in browser and Continuing Install….
--------------------------XXXXXXXXXXXXXX----------------------------------------------