Fix WordPress update on free host

Many free web hosting provider, such as or, offer a iVista script to automatically install WordPress. It is very convenience. But the WordPress installed in this way have a big problem – you cannot easily upgrade WordPress or install plugins and themes using the built-in installer. WordPress will always want to upload the updates via FTP, but the installation always fail even you input all the ftp connection information correctly.

After searching for a few hours, here is how to solve the problem:

  • go to the VistaPanel (cpanel), open the Online File Manger
  • browse to the wordpress directory
  • edit the wp-config.php
  • add the following code to the end of the file and save
/** Override default file permissions */
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );