Follow the following steps! It is so easier.
Sometimes you may face problems with WordPress auto update, theme installs and plugins installs while using MY HOST 21 hosting service. But it is very easier to resolve the problem. You can use any of the following option you think easier for you.
Option 01:
Fixes WordPress’ inability to find the install directory when it’s not in the root folder. This includes hosting services such as MY HOST 21, 5Gigs and Bytehost. This is a plugin workaround of the “Cannot find Content directory (WP-Content)” or “Unable to locate WordPress Root directory. Installation Failed” errors to get the following built in features working : Plugin Installation, Theme Installation and WordPress AutoUpdate.
- Download the zip file from THIS LINK
- Uncompress the plugin or just keep it as it it
- Upload the entire plugin folder to the /wp-content/plugins/ directory or upload the Zip file and UnZip it using Online File Manager or FTP Client
- Activate the plugin through the ‘Plugins’ menu in WordPress
- That’s it! Enjoy the restored functionality!
Option 02:
The trick is very easy.
- Just log in to Vista Panel and go into Online File Manager. Or, Use any FTP Client. Change the CHMOD or File Permission of wp-config.php to 0751
- Then edit the file wp-config.php.
- Well, the last sections that file add this code before the sign ?>
if(is_admin()) {
add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ ));
define( ‘FS_CHMOD_DIR’, 0751 );
}
After that save your wp-config.php file and try installing new Themes or Plugins.
You may change the CHMOD or File Permission of wp-config.php to the previous state again.
Try it! It is easier.
