• nthali

    (@nthali)


    When i click on update plugin on my localhost, it asks me for hostname, ftp username and password. do i need to actually set up an ftp server and credentials to be able to update plugins?

    Thanks,

    Nilesh

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Thread Starter nthali

    (@nthali)

    Thanks. informative read, but not entirely satisfactory for two reasons:

    1. didn’t solve my issue – based on the myriad suggestions for chowning/chgrping, i decided to chgrp the dirs wp-content, wp-content/plugins to www-data (the user/group that seems to be running wordpress in my localhost). Now the plugin update fails because of “inconsistent file permissions”
    2. which brings me to the second point:
      • might it be possible to include any chmod/chown/chgrp work in the installation script itself, by asking what kind of webserver etc. we are running on?
      • OR, list a set of such commands that the user can run themselves, so they are aware and responsible for changes to their system?
      • OR, update the “changing file permissions” page to provide more than the generic info available there?

    Ultimately, i went into the plugins folder and did some hacky chgrp’ing on various folders and files, which seemed to solve the akismet update, but i’m under no illusion that installing/upgrading other plugins, or themes will not run into similar issues.

    • This reply was modified 1 year ago by nthali.
    Moderator threadi

    (@threadi)

    You must set the permissions in all directories of the WordPress installation so that the web server you are using can write to them. WordPress cannot read this information and suggest to you what you need to set up and how. The settings must be made on the hosting with the knowledge of the technology used there. Therefore, there is no universal solution for this, as every hosting uses different settings.

    However, as soon as you set the permissions for all WordPress directories as you have obviously done for Akismet, there should be no further problems for you.

    Tip: with tools like localwp, you don’t have to fiddle with this kind of thing yourself on a local installation. It will take care of the settings for you.

    Hi @nthali ,

    Please add this code in wp-config.php file on main project folder file.

    define('FS_METHOD', 'direct');

    Also, set project folder permission 775 in your localhost.

    Let me know if you face any other issue.

    Thanks

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

The topic ‘updating plugins on localhost’ is closed to new replies.