Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Pricetx

    (@pricetx)

    Why not just leave it to the default method (“direct”)?

    http://core.trac.ww.wp.xz.cn/browser/tags/3.6/wp-admin/includes/file.php#L857

    As per the official docs, this can be done, if your PHP runs as SFTP user, which is possible with PHP-FPM. If your PHP runs as “www-data” or “nobody” or similar, you are right in doing what you’ve been doing so far.

    Thanks! Really!

    I’ve known for over a year now that there is some mysterious way you could get WordPress by default to use SFTP, so I’ve always used the SSH SFTP Updater plugin.

    To get PHP to execute as the correct user, I had to create a folder fpm.d, and in there have a config file for each site on it’s own port. Then, in nginx I gave the specific PHP-FPM port for that site instead of the generic one.

    Now, instead of asking for details, it does it automatically, and WordPress updated flawlessly. This is great as it means that I don’t even have to give my WordPress users shell access anymore, as PHP-FPM itself handles the authentication.

    Still doesn’t explain why I couldn’t update using the plugin, as it had worked for previous updates, and for a friend for this update, but I can’t really complain, as this solution is far better than getting that working!

    Thread Starter Pricetx

    (@pricetx)

    When you host yourself, why would you need ssh-sftp-updater plugin (or any plugin) to let automatic updates work?

    Since you use nginx, I assume, you run php-fpm that can be configured to run as SFTP/SSH user.

    I run SSH SFTP Updater as it allows me to update / install things over SFTP instead of having to run an FTP daemon.

    When updating, I always SFTP into whichever account owns the wordpress files. However, i’ll go test setting everything to chmod 777 temporarily on one of the sites and seeing if it fixes the updater.

    Thread Starter Pricetx

    (@pricetx)

    Are you self-hosting? No? Try contacting your hosting provider.

    I am hosting this myself on a dedicated server. 🙂

    Thread Starter Pricetx

    (@pricetx)

    – If the auto update did not work, try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!
    – Always backup everything (including your database).

    I just attempted a manual update on one of my wordpress installations, and it worked fine.

    However, i’m still unsure as to why the automatic updater isn’t working, and would like to get to the bottom of the issue still.

Viewing 4 replies - 1 through 4 (of 4 total)