Wednesday, October 2, 2013

How to Stop WordPress Asking for FTP details to Upgrade Plugins


  1. First, 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, 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/

No comments:

Post a Comment