Support » Fixing WordPress » processes of automatic-update: how to achieve this

  • tangermaroc

    (@tangermaroc)


    good day dear dear community

    well can you advice me

    – what is needed to run the automated updates of plugins!?
    – do i need to have suPHP enabled
    – what else do i need to have?

    by the way
    – i need to have a overview on all necessary conditions and things…. – there a plugin suggests to get done all the things – i t is called infinitewp – but i guess that – to run this – i need to have the horrible server conditions too!?

    Well i want to dig into the processes of the automatic-update: at the moment my server does not fullfill the needs that are mandantory to be met if one wants to run the automatic-updates:

    i did a search on the net and found some ideas – for example this one:
    see: https://wordpress.stackexchange.com/questions/290709/a-shorter-way-to-automatically-update-wordpress

    This is how we can start to update WordPress daily:

    
    cat <<-"CRON_DAILY" > /etc/cron.daily/nses_cron_daily
        for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp plugin update --all --allow-root; done
        for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp core update --allow-root; done
        for dir in /var/www/html/*/; do cd "$dir" && /usr/local/bin/wp theme update --all --allow-root; done
        chown www-data:www-data /var/www/html/* -R
        find /var/www/html/* -type d -exec chmod 755 {} \;
        find /var/www/html/* -type f -exec chmod 644 {} \;
    CRON_DAILY
    chmod +x /etc/cron.daily/nses_cron_daily

    I create the file with the heredocument, change permissions, and run daily.
    Is there a shorter, pluginless way to update?

    Update: with the above mentioned approach we dodn’t need to change basically anything inside wp-config.php besides database credentials.

    Well to sume up. Is this code still necessary in these days – or do we have further options in any updating – tasks

    love to hear from you

    ps. Keep up the great work – it rocks and i am a big big fan of WordPress – and i am pretty sure that wp has got fans all over the planet

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.