Jump to content


BloodBaz

Member Since 12 Sep 2017
Offline Last Active Oct 18 2017 08:38 AM
-----

Topics I've Started

US CRON enabled but doesn't run.

18 October 2017 - 05:03 AM

Hi

I'm running UniServer Zero XIII 13.3.2 to run Apache/PHP/MySQL in a Windows Server environment.

I've set up the Cron facility under the Extra menu:

 - Enable/Disable run Cron: Run Cron = CHECKED

 - Enable/Disable Cron logging: Cron logging = CHECKED

 

Config File:

[moodle]
start  = 2017-09-12 1:00:00
period = hourly
path   = http://xxx.yyy/moodle/admin/cron.php?password=xxxyyyzzz
ref    = 1508327224

When I go into Cron and close the box again, the Cron service runs as a *one off* (assuming it was last run over an hour ago) but it does not run hourly from there on e.g.

Here is the log file.  The timestamps on the "Run OK" entries are when I actually went into the Extra > Cron menu then closed it again.

13/09/2017 12:21:08 ### Log Start ===========================================
13/09/2017 12:29:13  - Run OK --- http://localhost/moodle/admin/cron.php
13/09/2017 13:41:20  - Run OK --- http://localhost/moodle/admin/cron.php
17/10/2017 13:09:49  - Run OK --- http://localhost/moodle/admin/cron.php
18/10/2017 10:48:12  - Run OK --- http://derbylearn.net/moodle/admin/cron.php?password=VC0SJFZj6vefzXmo3

Can anyone explain why my cron isn't running every hour?

I'm running my webstack as a service (i.e. via Unifrom Server XIII Service).

 

Thanks,

Chris


PHP cURL not running when installed as a Service

12 September 2017 - 07:21 PM

Hi,

I'm running UniServer Zero XIII 13.3.2 with PHP 5.6.30 to run an old Moodle 2.7 site.

 

Moodle 2.7 requires php_curl (among other extensions) which I can configure in UniServer and when I run the Moodle site, the Site Administration > Server > Environment confirms that all required php extensions (including curl) are all OK.

 

I then stop the Apache and MySQL servers in UniServer Zero and install and run both as a service using UniService.exe (UniService XIII 2.2.0).  

Everything installs, Moodle runs but the same environment check says:

 

 

php_extension curl must be installed and enabled

The cURL PHP extension is now required by Moodle, in order to communicate with Moodle repositories.

Check

(see image)

 

All other extensions are OK. 

When I stop/uninstall and the launch services via UnIController.exe, everything is okay again.

 

I've ran the UnIService "Apache service test" but no errors were highlighted.  Can anyone advise on what I should do to fix this?

 

Thanks,

Chris