This script won't make a lot of sense unless you came from the page linked above.
#!/bin/sh
cd /app
scp production-4:/tmp/$1.tar /app || exit 2
rm -rf /app/htdocs
rm -rf /app/php*
tar xf $1.tar
find . -type d | xargs -i chmod 775 {}
find . -type f | xargs -i chmod 664 {}
echo Done
If a search engine dropped you directly into this document, you should go to the index page to find out what you're reading. This document is a record of a project from 1999-2000 -- it is not a current guide to installing any software product.