Does WordPress ask you for username and password to update? Solution

Interesting this tip that I found here. where it shows us a solution for when we need to update our plugins, themes or the database itself WordPress and it asks us for username and password.

wordpress_auth

This can be useful for a security issue, but if we want to avoid it, all we have to do is add to the file wp-config.php the lines:

define ('FS_METHOD', 'direct'); define ('FS_CHMOD_DIR', 0777); define ('FS_CHMOD_FILE', 0777);

And that's it 😉


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   eliotime3000 said

    Good tip, although I liked the mandatory login in WordPress (so I don't lose the habit of using root for "important" issues in GNU / Linux).

  2.   Nader said

    Or you can also do a chown and set the owner to www-data or put your user in that group.

    And if you're on shared hosting, screw you.

  3.   Nader said

    I must have offended someone to delete a comment without malicious intent

    1.    Nader said

      My apologies, it did not appear, now it does

  4.   Wilmer said

    I have searched for two days for the solution to that problem and thanks to your solution I have proceeded to create the website that I have to do, thank you very much!

  5.   Authorless said

    Great contribution! Thank you very much and continue like this!

  6.   Juan carlos said

    Thank you very much for this article. Solved the problem for me

  7.   Yoiler Diaz La Rosa said

    Good post 100% functional