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

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?

Related

Change Azure VM Time (not timezone) running Windows Server 2022

I would like to change an Azure server's local time to a month ago. This is for testing purposes on a custom application. Happy if it changes back after reboot.
There are a number of similar posts with answers, but most either refer to changing the timezone, or are old(ish) posts whose answers are not valid anymore. Not sure if Microsoft has made some changes.
What I have tried to to stop the Hyper-V Time Synchronization service as well as the Windows Time service, but to no avail. I also wrote a small c# program to try and do this, but no success.
Anything else that might work?
Thank you DeepDave-MT . Posting your recommendation into answer section as per Cameron Castillo confirmation. This would help other community members.
Steps to change time settings in Local Server section of the Server Manager:
Open the time and date settings in the Local Server section of the Server Manager.
from the opened time manager window, make the required changes.

How to set up a Cronjob for auto-import of Data in Shopware 5

I've been struggling to figure out how to set up cronjobs for Shopware 5 in general.
The documentation does not provide enough information to set cronjobs up from scratch, I've also asked for some help on their official slack channel but have not been answered at all.
As someone who is new to shopware and the concept of cronjobs, I've been having a lot of trouble finding a solution to my problem. I'd like to be pointed in the right direction since I've been shooting arrows in the dark at this point.
Cronjobs in Shopware 5 are pretty well documented here.
First of all you need to install and activate the "Cron" plugin in the Plugin Manager. It is required to run cronjobs in Shopware 5. Then you can configure the cronjobs in Configuration > Basic Settings > System > Cronjobs.
But this is not enough, you have to trigger the cronjobs from your OS. How you can do this depends on your hosting provider. Some hosting plans doesn't allow to configure cronjobs. So you have to contact your hosting provider to find out if you can configure cronjobs and how to do this.
The recommended way to execute cronjobs is via shell, as described in the documentation:
php bin/console sw:cron:run
By "auto-import of data" you probably mean to use the Import/Export plugin. The plugin provides its own cronjob "CronAutoImport", which you can configure in settings. According to the documentation you have to deposit your CSV or XML files in the directory files/import_cron/ and include the profile name you want to use in the filename. The files will be imported automatically.

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.

Reset CRON Job - Template + WAMP

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.

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.

Resources