Run Tests by webcron
Posted: Sat Aug 26, 2017 5:39 pm
Hi there,
I found the FreeNATS script and wanted to install it. Installation went quite well, except the tester-scripts.
I have shell access to my server, but I can't set cronjobs here - my webhoster offers me web-Cronjobs (calling a php script by HTTP/HTTPS), but it seems as this is not an official supported way.
I digged through the scripts myselve and copied tester.php and test-threaded.php to webroot and changed the include to require("../bin/include.php");
Sadly the scripts still don't run. By manually calling them (HTTPS Request) they output following:
test-threaded.php
tester.php:
How can I get FreeNATS running without a proper cronjob - just webcron?
Thank's in advance
I found the FreeNATS script and wanted to install it. Installation went quite well, except the tester-scripts.
I have shell access to my server, but I can't set cronjobs here - my webhoster offers me web-Cronjobs (calling a php script by HTTP/HTTPS), but it seems as this is not an official supported way.
I digged through the scripts myselve and copied tester.php and test-threaded.php to webroot and changed the include to require("../bin/include.php");
Sadly the scripts still don't run. By manually calling them (HTTPS Request) they output following:
test-threaded.php
Code: Select all
test-threaded.sh: spawning node tester processes php ./tester.php freenats > /tmp/nr.freenats &
Warning: exec() has been disabled for security reasons in /www/htdocs/wwwroot/test-threaded.php on line 45
Code: Select all
NATS Tester Script Starting Tester Already Running: Cleared Test ID: 52 (Started at 18:27:50 26/08/2017) NodeID: freenats Ping Test: Yes
Fatal error: Call to undefined function socket_create() in /www/htdocs/base/tests/ppping.inc.php on line 263
Thank's in advance