|
In the process of upgrading Comic Press on a Wordpress blog I ran into the following problem.
Downloading install package from http://downloads.wordpress.org/plugin/comicpress-manager.1.4.8.zip.
Unpacking the package.
Could not copy file /usr/home/homedirectory/www/blogdirectory/wp-content/upgrade/comicpress-manager.1.4.8/somefile.php
I searched on-line and the only solution I could find on-line was an article telling to remove many nested wp-content folders but this did not work for me as I did not have nested folders as described
This error also happened when I attempted to install any plugin via the web interface.
I worked through the error and found that for the most part this was a ftp problem on the Freebsd 7.2 server.
I went into wp-config.php and changed the following settings; I set the FTP_CONTENT_DIR and FTP_PLUGIN_DIR as shown below:
define('FTP_BASE', '/www/blogdirectory/');
define('FTP_CONTENT_DIR', '/www/blogdirectory/wp-content/');
define('FTP_PLUGIN_DIR', '/www/blogdirectory/wp-content/plugins/');
After doing this I got past the above error "Could not copy file" but now I was faced with a "Plugin upgrade Failed" error .
The error looked like this:
Downloading update from http://downloads.wordpress.org/plugin/comicpress-manager.1.4.8.zip.
Unpacking the update
Deactivating the plugin
Removing the old version of the plugin
Could not remove the old plugin
Plugin upgrade Failed
I knew I was getting close to a resolution. Through a bit of trial and error I ended up needing to set the FS_METHOD to ftpsockets in the wp-config.php as shown below and it worked like a charm:
define('FS_METHOD', 'ftpsockets');
So now the ftp settings in the wp-config.php are as follows:
define('FS_METHOD', 'ftpsockets');
define('FTP_BASE', '/www/blogdirectory/');
define('FTP_CONTENT_DIR', '/www/blogdirectory/wp-content/');
define('FTP_PLUGIN_DIR', '/www/blogdirectory/wp-content/plugins/');
This solved my problem and I hope it helps to solve other people's issues when working with Wordpress.
I recently started a Wordpress blog about running called Running Samadhi. If you are interested in running please let me know what you think of it. |