How to Stop WordPress Asking for FTP details to Upgrade Plugins

  1. First, doctor we need to see what user Apache is running under. Type the following into a New file in any text editor. Save As whoami.php in the /var/www directory (or wherever you set Apache to serve files from):
    <?php echo(exec("whoami")); ?>
  2. Open this file in a browser (for instance, store localhost/whoami.php). It should reveal who the user is
  3. This tells you that the web server is running under the user webuser.

    You can now give that user recursive ownership (all subfolders) of your WordPress installation using the command:

    chown -hR webuser:webuser /var/mydomain.com/public_html/wordpress/

Revisions

No comments yet.

Leave a Reply