• [ Moderator note: moved to Fixing WordPress. ]

    I am running a Linux->Apache->WordPress setup on a friend’s server. Updates are configured to use FTP so every time I update I must use a username and password. The problem is that when I download updates the file ownership changes from Owner:Jay Group:Apache to Owner:Jay Group:Jay and I have to manually go in and change the group to Apache in order to get everything working again. Where would I find the setting to change this? I don’t think i’m asking Dr. Google the right question.

    • This topic was modified 9 years, 1 month ago by jayhova4x4.
    • This topic was modified 9 years, 1 month ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Auto Update overall requires that files owner matches user Apache runs under. If that is not the case it falls back to other filesystem methods (FTP, SSH) and so prompts for password.

    You can define credentials in constants in wp-config.php so you don’t get prompted for them.

    Take a look at WordPress Upgrade Constants in Codex

    Thread Starter jayhova4x4

    (@jayhova4x4)

    well that’s good to know but what I am most I’m most interested in is how to make sure the Ownership and group don’t change and break things when I update

    Thread Starter jayhova4x4

    (@jayhova4x4)

    I added the two lines to WordPress

    define( ‘FTP_USER’, ‘username’ );
    define( ‘FTP_PASS’, ‘password’ );

    and then updated a plugin the plugin undated with no problems and no need for input on my part. However, the ownership of the files and subdirectories in the plugin became Jay/Jay instead of jay/apache. I am unable to find the setting that controls this.

    I see the problem. Looks like it is something related to WordPress. May be this can help you:

    http://www.charleshooper.net/blog/wordpress-auto-upgrade-and-dumb-permissions/

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

The topic ‘FTP ownership’ is closed to new replies.