WordPress.org has released WordPress 4.2.1 which is a critical security release that fixes a cross-site scripting vulnerability in WordPress core. The vulnerability was publicly disclosed immediately after the 4.2.1 release went out yesterday so please upgrade immediately to prevent hackers from exploiting this vulnerability on your system.
You can read more about the issue and fix on the WordPress.org blog. We are publishing this announcement because we are still seeing many sites that have not yet updated to 4.2.1, so kindly upgrade the installation with latest release.
First make backup of the wordpress database and the wordpress blog installation directory :
mysqldump username_DBname > username_DBname.sql
tar -cvf public_html.tar public_html
tar -cvf directoryname.tar directoryname
cd /directoryname (where wordpress installed)
Download latest wordpress CMS
follow all the steps as given below :
tar xfz latest.tar.gz
rm -rf ./wp-includes/
rm -rf ./wp-admin/
scp -rp * ../
rm -rf ./wordpress/
rm -f latest.tar.gz
Step # 3: Change ownership to user now :
chown user:user * -R
Step # 4: Run update Script :
Open a browser and run update script such as
That’s it !
PrewebHost Hosting Solutions.
Cheap & Affordable Hosting Service Provider Since 2010