If You've Got a problem or obstacle when upgrading wordpress version of this probably looks like :
Downloading update from http://wordpress.org/wordpress-3.1.3.zip…
Unpacking the update…
Warning: copy(/home/situs_anda/public_html/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: Permission denied in /home/situs_anda/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 200
Could not copy files.
Installation Failed
How to overcome it is simple enough to modify user and group ownership of the file there are 2 possibilities:
The first: Add the following code into your wp-config.php
define('FS_CHMOD_DIR', (0755 & ~ umask()));
define('FS_CHMOD_FILE', (0644 & ~ umask()));
This will allow WordPress to change the wrong setting permissions on your hosting.
The second way: If this does not work, you can force WordPress to use FTP to upgrade your ftp credentials to define in wp-config.php
Add the following code to your account information in your wp-config.php
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/path/to/wordpress/');
define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/');
define('FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/');
//define('FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub');
//define('FTP_PRIKEY', '/home/username/.ssh/id_rsa');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'ftp.example.org');
define('FTP_SSL', false);
I hope this helps :)
0 komentar:
Posting Komentar