Answer the question
In order to leave comments, you need to log in
Why might the scheduler not run a script that works when accessed directly through the browser?
Ispmanager is installed on the server, configured the scheduler to run a specific script, rights 777, run once a minute - does not work. The "Fill" button in the scheduler panel in ispmanager (to check the script) runs the script but gives the following errors:
root# #_path_to_script_from_server_root_#
#_path_to_script_from_server_root_#: line 1: ?php: No such file or directory
#_path_to_script_from_server_root_#: line 2: syntax error near unexpected token `('
#_path_to_script_from_server_root_#: line 2: `$_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../..");'
but if you access the script directly from the browser, everything will work without errors.What could be the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question