Support » Localhost Installs » problem updating plugins locally

  • Hi,

    I’ve got a little problem that I didn’t succeed in resolving.
    I use WP for my website, and in order to make no mistake I’ve installed it as well localy on a nas I’ve got at home.
    When I try to update the plugins I installed in the offline version, so on the nas, I’m always redirected to the ftp of the live site, which is naturally what I don’t wish to do.
    I found in the offline database (wp-options) a string that contains all the values for the ftp site.
    I guess that’s the reason it wants to update the live version.
    Whta values should I write in order to make it work properly?

    The string looks like this, found in the option “ftp_credentials”:
    a:3:{s:8:”hostname”;s:11:”<b>http://ftp.domainname</b>“;s:8:”username”;s:7:”<b>domain name</b>“;s:15:”connection_type”;s:3:”<b>ftp</b>”;}

    Can anyone help?



Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    Did you check the folder / file permissions ? WordPress is picky about file ownerships and who can do what with those files. If your server uses a different username than what wordpress expects for the site it won’t allow it access without you providing those FTP login credentials every time you need to add, delete or upgrade a plugin.

    An alternate workaround, is to have the FTP detailed saved in your wp-config.php file.

    //*added ftp login credentials to avoid WordPress asking for FTP details every time I wanted to upgrade a plugin*
    define('FTP_HOST', '');
    define('FTP_USER', 'Your_FTP_Username');
    define('FTP_PASS', 'Your_FTP_password');
    //*If you can use a SSL connection set this to true*
    define('FTP_SSL', true);

    Hope that helps.


    Thx Rajesh,

    I had had a look to wp-config, but didn’t suspect I should do that.
    Is there a better place than another to place it in wp-config? If that matters…


    Hi E,

    I am not sure I understand what you meant in your last reply.
    Are you trying to say that you do NOT want to edit wp-config.php?

    Have you tried looking up folder permissions?



    no, I mean: should I place the code at the beginning or at the end of the wp-config file?

    Well another question: does this code imply that I should activate the ftp function of the nas in order to proceed those instructions?


    Try putting the code at the end of wp-config.php (if it doesn’t seem to work, try moving the code at the top).

    I am not pretty sure about your question about NAS.


    I just try and seems to work fine for the location.
    And about the ftp, I mean that it should then apparently work through a ftp connection type, which I haven’t set yet on my NAS drive.

    Thanks anyway for your help


    No problem.


    I just did and works fine.
    Needed indeed ftp protocol.

    Thanks again

    Glad I could be of help.

    Please mark your topic as “Resolved”.


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘problem updating plugins locally’ is closed to new replies.