Yes, the $ is just my command prompt. You can ignore it.
Here's the output of the test page.
Code: Select all
Input: 7
Output:
This script is only meant to run at the command line.
Status: Invalid
Command: /usr/local/bin/php -q /home/blah/public_html/cacti/install/cli_test.php 7
Nothing is showing up in the Apache error log or the Cacti error log.
Is the output "This script is only meant to run at the command line." expected behavior when running test.php from a web browser?
Running the command from the test.php script from the command line does not show errors and produces the correct results.
Code: Select all
$ /usr/local/bin/php -q /home/blah/public_html/cacti/install/cli_test.php 7
49
$
Where exactly in the code is the PHP check that is failing happening? Perhaps I can take a look as well...
Is that PHP check code new to 1.2.0, or was it also in 1.1.38?
Also... curious... What version of PHP are you using to test? Has the code been explicitly tested against PHP 5.6.39?
Sorry for the hassle... Very much appreciate your help!
