A
A
Alexander Andreev2019-01-23 12:47:44
ISPmanager
Alexander Andreev, 2019-01-23 12:47:44

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

1 answer(s)
A
Alexander, 2019-01-23
@maler1988

because the script for the scheduler must have a different beginning
written in the very first line and then maybe already <?php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question