WordPress requires FTP information to update plug-ins

I’m trying to update WordPress plug-ins, and I’m presented with the familiar FTP login screen.

I have read other posts indicating the lines in wp-config.php to be filled in. However, I don’t have FTP installed on this server, just SFTP.

Read More

Also, I don’t want to have to do this for each WordPress install.

As far as I know, wp-content is already owned by apache:apache, and PHP is also running as user apache.

Is there something I’m missing? Is there some other way to handle this?

Related posts

Leave a Reply

2 comments

  1. After trying everything I could find regarding permissions, I added the following line of code to this site’s wp-config.php:

    define(‘FS_METHOD’, ‘direct’);

    That immediately solved the problem. Not sure if I also needed to modify the permissions first, since i did that before trying this fix.

  2. This has happened to me alot, when installing wordpress on my own server. Usually it has to do with a permission problem.

    A lot webservers use the user www-data, instead of apache. So check your apache configuration for what your webserver user is set to.

    Also you will want to check your directory permissions, and make sure both the user and group has read, write, and execute access. I am not sure if execute access is necessary, but that is usually what I set my server too.

    You can do this with the command

    chmod 775 -r your_wp_content_directory

    And if all else fails, if you have shell access you can also use wget in the directory to install plugins.