CanadaAirVirtual Posted October 18, 2018 Report Share Posted October 18, 2018 How would I go about setting up the below cron job, or can anyone direct myself to any tutorials on how. Our VA runs phpVMS Version simpilot 5.5.2 Cron If you have the ability, it's best to setup a cron-job to run the maintenance script. The command to add is: php -f /home/canadaai/public_html/admin/maintenance.php It's recommended to run this sometime between 2-6am (pick an artibrary time when you would least-likely have any flights). Also, remember to change in local.config.php, USE_CRON to true, so phpVMS doesn't try to automatically schedule these tasks to run. Note: If you setup the cron to run, it's recommended to also run it by hand once to ensure data is populated, unless you want to wait for it to run automatically. Quote Link to comment Share on other sites More sharing options...
CanadaAirVirtual Posted October 18, 2018 Author Report Share Posted October 18, 2018 (edited) I think I figured it out. Would I not just navigate to /core/local.config.php, then replace the following script Config::Set('USE_CRON', false); with this Config::Set('USE_CRON', true); then add the following command to a cron job php /home/canadaai/public_html/admin/maintenance.php Any help/assistance would be greatly appreciated. Edited October 18, 2018 by CanadaAirVirtual Quote Link to comment Share on other sites More sharing options...
CanadaAirVirtual Posted October 19, 2018 Author Report Share Posted October 19, 2018 Did I do something wrong?...28 hours and not 1 reply, how disappointing. How are we (newbies) supposed to learn anything? 1 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted October 20, 2018 Administrators Report Share Posted October 20, 2018 With my host, there is a menu item in CPanel under Advanced called Cron jobs. This is where you would set up the cron job. The command to enter there is the one in your first post --- php -f /home/canadaai/public_html/admin/maintenance.php In local.config.php you have to have Config::Set('USE_CRON', true); That should work - but you will have to find how to enter the cron job with your host if you don't have CPanel access Quote Link to comment Share on other sites More sharing options...
CanadaAirVirtual Posted October 21, 2018 Author Report Share Posted October 21, 2018 (edited) Awesome, I have now setup a cron-job to run the maintenance script once a day, thank you for the assistance ProAvia! Edited October 21, 2018 by CanadaAirVirtual Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted October 21, 2018 Administrators Report Share Posted October 21, 2018 Glad you got it working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.