Cron task not working properly

There are a number of issues here: every_minute doesn’t exist as a cron schedule, so while you’ve successfully scheduled the cron job, WordPress doesn’t know when to run it. keep in mind that WP Cron isn’t precise, if nobody visits your site it won’t run, so it won’t run every minute unless your site is … Read more

does wordpress auto update work without a cron job?

The latest versions of WordPress will update automatically. AKA. you do absolutely nothing and then at random times you’ll receive an email telling you it has self updated. This does not require any cronjobs etc. As for setting this up, it may or may not require FTP credentials (can’t recall off the top of my … Read more

I want to write something that restarts the httpd service when my apache server dies

You need something like this: #!/bin/bash #test-httpd.sh client=”yourname” mailboxes=”[email protected]” # write to that file monitorfile=”/var/www/html/monitor.php” #empty monitor.php > $monitorfile APACHE=`/bin/pidof httpd` echo $APACHE if [ “$APACHE” == “” ] then echo APACHE_FAILURE | mail -s “$client””: CRITICAL : APACHE FAILURE !!!!” $mailboxes #trying to restart it /etc/init.d/httpd stop /etc/init.d/httpd start echo -e “apache:FAIL\n” >> $monitorfile … Read more

Add cron schedule to upload video on save_post

I think the best approach would be to only save a post meta value ( [or use a custom table][1] ) which indicates that a video upload should happen. Also register a schedule that will query for all posts that are marked as “upload needed” and do the upload in the schedule execution. https://gist.github.com/EdwardBock/85c971633ea1abf8f248f4fb468344ed You … Read more

Call a PHP file from Cronjob

Your best option is probably to first explore your current hosting environment for the possibilities of Cronjobs. It might be called “Scheduled Tasks” or similar. Alternatively you can schedule a task from within WordPress via wp_schedule_event() (though if you’re using the default WP Cron, you can’t be certain of it running at the specified time) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)