# Download and unzip wordpress

cd /home/$USER/public_html
wget http://wordpress.org/latest.zip
unzip latest.zip
rm latest.zip

# remove superfluous directory

mv wordpress/* ./
rmdir wordpress/

# Make wordpress writeable by the webserver/or USER

mkdir wp-content/uploads wp-content/cache
chown apache:apache wp-content/uploads wp-content/cache
chown -R $USER. ./