WordPress.org

Ready to get started?Download WordPress

Forums

problem updating plugins locally (10 posts)

  1. edou
    Member
    Posted 1 year ago #

    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?

    Thx

    E

  2. Rajesh Soni
    Member
    Posted 1 year ago #

    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', 'ftp.yoursite.com');
    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.

    Rajesh

  3. edou
    Member
    Posted 1 year ago #

    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...

    E

  4. Rajesh Soni
    Member
    Posted 1 year ago #

    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?

    Thanks.

    RS

  5. edou
    Member
    Posted 1 year ago #

    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?

  6. Rajesh Soni
    Member
    Posted 1 year ago #

    E,

    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.

    RS

  7. edou
    Member
    Posted 1 year ago #

    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

    E

  8. Rajesh Soni
    Member
    Posted 1 year ago #

    No problem.

    Cheers!

  9. edou
    Member
    Posted 1 year ago #

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

    Thanks again

  10. Rajesh Soni
    Member
    Posted 1 year ago #

    Glad I could be of help.

    Please mark your topic as "Resolved".

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.