Reset CRON Job - Template + WAMP - cron

I've downloaded a template of an ADs site and I'm testing it on localhost with WAMP Server.
The problem is that the listings are not expiring after the end of their lifetime days.
I contacted the owner of the template and he said to reset the CRON job of my environment.
But I don't know how to do it.
Can anyone help me?

If you are using WAMP you are running on Windows.
If you are running on Windows you dont have access to cron as there is no cron on Windows.
So the reason you are not getting listings expired is that the jobs designed to do the expiration are not running.
You will either have to run it on a UNIX system or work out what jobs should be run and set them uninmf PHP CLI and then create tasks to run them using Windows Task Sceduler.

Related

Azure Recovery services scheduled tasks keep going disabled

I have installed Azure Recovery Services (MARS) onto a 2019 server. I can fully configure it using the GUI, but the scheduled backups just don't run.
I can run the back manually and it runs perfectly and completes quickly; however, when I try to use the scheduler, it doesn't run.
I have checked the Task Scheduler and the job keeps switching to disabled with the notification:
User "System" disabled Task Scheduler task "\Microsoft\OnlineBackup\Microsoft-OnlineBackup"
When I installed the application, I changed the default path to C:\Domain Services to keep them separate, is this where it went wrong?
I have other servers on the backup platform which are not having any issues at all, I have also tried the steps in:
https://learn.microsoft.com/en-us/azure/backup/backup-azure-mars-troubleshoot#backups-dont-run-according-to-schedule
And also
https://dirteam.com/bas/2019/01/09/the-mysterious-case-of-azure-backup-agent-not-running-its-schedule/
But it is not fixing the issue.
I am completely out of ideas, hoping that somebody can help me!
Change the settings in the task scheduler for Online Backups. See the snippet below.
I have no idea how, but the system is now working correctly and not being disabled. I tried to remove all the MARS software on the machine and re-installed it and it now works correctly and has been backing up for a few weeks now.
Thank you for all your assistance.

How to setup cron job in 000webhost (free account)

I have a website in 000webhost.com (free account) to house some php scripts. In the website, it mentioned that cron-job is available for free accounts as well.
I follow the instruction and setup the cron job as per the below links:
Setting up cronjob 000webhost
The accepted answer mention in the question does not work now.
Be specific, this is what I have done:
1. Login my 000webhost and click the Cron jobs in the dashboard
2. Update the cron job manager by adding php -f /home/a357xxxx/public_html/test.php for 10 minutes of everyday, everymonth
There is nothing happens for a day after the setup. However, I can run the php script if I run this through the browser so it should not be the php script issue.
I tried to ask the customer support in 000webhost first but they told me that they can only support me if I am a ‘paid’ member. They told me their forum is under maintenance and that’s why I cannot register and ask through the community.
Is there anyone who has experience of setting up cronjob in 000webhost that can share with me?
I am also thinking of moving out 000webhost if I cannot setup cronjob. Do anyone have any recommendation on the free hosting site with PHP+MYSQL+Cron job?

IBM Notes Scheduled agent does not execute

I wrote an agent that runs every 1:00 AM daily, but fails to execute the routine mysteriously. I've checked the agent log and saw that it ran and ends without any error. What I've been thinking about is when I trigger the agent or ran it manually it executes the routine I coded successfully and not when it is scheduled. I really don't know what's the issue there, thanks for help in advance.
there are a few things to try
Check the trigger property on the agent and set it to run on All documents or change it to None. Test both scenarios. There are some issues with this setting.
When you run an agent manually from the notes client or designer you are running it using the credentials from you id file. When running it scheduled you use the credentials from the server.
Make sure your server have enough access to perform what your script does. There is also a setting in the agent for increasing what the script is allowed to perform.
If you have access to the server console you can trigger the agent to run on server using the command: tell amgr run "database.nsf" 'agentname'

Automatically Restarting Website after IIS AppPool recyle

I'm using a website which interacts with SQL Server Agent in order to schedule the automatic processing and emailing of reports. I recently noticed that when the AppPool recyles, that i'm not getting reports afterwards - until someone logs into the website again. It's possible for the website not to get hit for hours/days, during which all the scheduled tasks are lost.
I'd like to set up a windows task to either run periodically or trigger off the AppPool recycle event. But I'm not sure what the task should be. I had one suggestion to set up a Windows task to exercise a .js script that would hit the website, but this only works with Windows Authentication (which isn't being used):
var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
xmlhttp.open("POST", "http://localhost/website/default.aspx", false);
xmlhttp.send();
Looking for some suggestions on how to "wake up" a website after an IIS AppPool recycle.
Thanks.
ab.
Why not run gnu wget from a scheduled task:
wget -O - http://mysite.com/default.aspx
I ran across this today which seems like it might help you out. It's the IIS Warm-up module. Depends on whether you can convince the your customer to install it, although it is an official IIS module, so hopefully it's no problem.

run cron on xampp

I know how to run a php script via cron of a cpanel of a live website, but I also want to learn how to do this cron thing via xampp on my localhost ?, anyone who can actually tell me the exact steps how to do it ?..my OS is win 7
There is no cron in xampp. Apache is a webserver. Scripts are called only uppon a reuest by some browser.
So if you like to call a PHP script via web at a special time, you will need a browser accessing this website at that time.

Resources