Wordpress auto update - how to get the process started


Results 1 to 1 of 1

Thread: Wordpress auto update - how to get the process started

  1. #1
    Join Date
    Nov 2024
    Posts
    86

    Lightbulb Wordpress auto update - how to get the process started

    Hey dear friends,

    Well I have a wordpress site up and running. Which steps are needed for the site updates...
    A The plugin
    B. The theme
    C. The whole wordpress

    Automatically..( that is when I am trying to get the process started in the dashboard ).?
    Heard that I have to do some corrections in the configuration file?!

    Is that correct? Is that the line that should be corrected?

    PHP Code:
    define( ?WP_AUTO_UPDATE_CORE?, true 
    );

    Love to hear from you


    Many thanks 🙏 in advance


    update: well - whats essential for me: How exactly do automatic updates work? I've always wondered exactly how it works?
    When trying to update trough the dashboard - WordPress asks for the FTP details during the Automatic Updates/Upgrade Plugins.
    For me the question is: what to do if WordPress asks me for the FTP details if i want to run Automatic Updates/Upgrade Plugins (and themes) - what to do to stop this!? How to get this process of the automatic updates get started from the dashboard. This must be possible.

    Background: well I run wp for more than 2 years now: And in some cases, we are not able to update/upgrad either the WordPress and the plugins to a newer version without providing the FTP-connection information. In other words - it fails what can i do here?

    Is there some editing in the configuration-file needed!?

    look forward to hear from you.

    greetings

    update II Well dear friends - I think that I found out some more:

    The question is: How to get updates of plugin, theme etc processed through the dashboard.
    After some research I have found out a interesting article:

    see the url: https://stackoverflow.com/questions/...ing-ftp-access

    As stated before none of the perm fixes work anymore. You need to change the perms accordingly AND put the following in your wp-config.php:

    Code:
        define('FS_METHOD', 'direct');
    Auto o update steering WordPress will only prompt you for your FTP connection information while trying to install plugins or a WordPress update if it cannot write to /wp-content directly. Otherwise, if your web server has write access to the necessary files, it will take care of the updates and installation automatically. This method does not require you to have FTP/SFTP or SSH access, but it does require your to have specific file permissions set up on your webserver.

    It will try various methods in order, and fall back on FTP if Direct and SSH methods are unavailable.

    [URL unfurl="true"]https://github.com/WordPress/WordPress/blob/4.2.2/wp-admin/includes/file.php#L912[/URL]

    WordPress will try to write a temporary file to your /wp-content directory. If this succeeds, it compares the ownership of the file with its own uid, and if there is a match it will allow you to use the 'direct' method of installing plugins, themes, or updates.

    Now, if for some .... bla bla bla

    ', 'ssh', 'ftpext' or 'ftpsockets' and it will use that method. Keep in mind that if you set this to 'direct', but your web user (the username under which your web server runs) does not have proper write permissions, you will receive an error.
    In summary, if you do not want to (or you cannot) change permissions on wp-content so your web server has write permissions, then add this to your wp-config.php file:



    Code:
      define('FS_METHOD', 'direct)
    reason you do not want to rely on the automatic check for which filesystem method to use, you can define a constant, 'FS_METHOD' in your wp-config.php file, that is either 'direct
    Well I think that I have to add the FS - Method to the configuration to get the update process working..

    Dear friends - what do you think about this ideas that were discussed at Stack exchange?


    Look forward to hear from you

    have a great day


    update: ,,,,at february 14th - the valentines day...

    update -- this did the trick - now i can install plugins etc. etx through the backend.. - now this thread can be marked as solved

    Code:
    define( 'FS_METHOD', 'direct' );
    now its working as expected - i am happy.
    Last edited by dhubs; Yesterday at 09:46 AM.
    ....Love Linux - and the Digital Innovation Hubs (network) supporting digital future: towards digital transformation, commitment to sustainability,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •