The main issue here is that apache does not have access to the folders. The default permission is given to the ec2-user in the AMI.
sudo chown -R apache:apache /var/www/html
Try this code in your wp config file
define('FS_METHOD', 'direct');
First follow what Faizan said to do and put the following line if your wp-config.php
:
# you will want this as close to the bottom as possible
define('FS_METHOD', 'direct');
Then you need to TEMPORARILY swap your file permissions to a more open state. In the command line type the following:
sudo chmod 777 -R /your_whole_wp_project
Now run your updates and then change the permissions back to something sane like:
sudo chmod 664 -R /your_whole_wp_project
I'm aware this is a security issue and maybe not the best way to do this, but its the only thing I could try that got it to work for me.
No comments:
Post a Comment
Dharamart.blogspot.in