TOM

Hi
I am using WordOps for my VPS to manage WP and the structure like below:

My website is located at /var/www/mywebsite.com/htdocs
the wp-config.php is located at /var/www/mywebsite.com/wp-config.php

I've created the file at /usr/local/bin/wp-update and paste your bash script there, chmod +x for it and set chown is www-data:www-data (correct user:group of the website files).

Put in the crontab command: /usr/local/bin/wp-update /var/www/mydomain.com/htdocs
runs every minute to test.

But no luck, the plugins do not get auto upgrade.

Should I need to your bash script to modify the path to wp-config.php file?

Please advise,
Thanks

Note: Your comment form does not have the email field so how can I get notified if you respond to my comment?

Fri, 25/02/2022 - 02:46 Permalink

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <p> <br> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA