I made it possible to execute the cronjob by removing the following from cron/status.cron.php
if(!psm_is_cli()) {
die('This script can only be run from the command line.');
}
It seems to run perfectly fine.
I do understand the reasons not to have this publicly accessible, but ask that you add a possibility to enable/disable this (and just leave it disabled as default).
Good idea, we are accepting PR.
I dont really understand why you need that. You have the Update button that does the same thing.
To be Able to run "http cron" on share hosting servers
:+1:
Hi,
my workaround:
Create a file execute.php (or something else) in the cron folder:
nano execute.php
and fill it with:
<?php
exec('php /FOLDERS/TO/phpservermon/cron/status.cron.php');
?>
now execute
http://yourdomain/cron/execute.php
Create a file execute.php (or something else) in the cron folder:
If the purpose of this was to run a cron over http on shared hosting servers, this wouldn't help because 99% of shared hosting servers will have exec() disabled, and if it doesn't, you have bigger problems...
@Jonchun If exec() is enabled it will work, my shared host provider has exec() enabled...
Resolved by #358 thanks @pieter-groeneweg