Search found 15 matches

by Comenius
Mon Jan 14, 2019 12:47 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

OK, cool, sounds good. I'll wait for a code update from you that will hopefully get me past the looping final step of the installation / upgrade. Fingers crossed. :)

Really appreciate all your help!
by Comenius
Mon Jan 14, 2019 11:37 am
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I just ran the modified script and emailed you the results. My setup is as follows: Apache version: Apache/2.4.37 PHP version: 5.6.39 MySQL version: 10.1.37-MariaDB Distro Name: CentOS Linux release 7.6.1810 (Core) Kernel Version: 3.10.0-957.1.3.el7.x86_64 Also, for what it's worth, I seem to be stu...
by Comenius
Sun Jan 13, 2019 12:31 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

If I delete all 3 of those tests, the file executes successfully: Input: 58 Output: 3364 Status: Valid Command: /usr/local/bin/php -q /home/blah/public_html/cacti/install/cli_test.php 58 Updated, working cli_test.php file: #!/usr/bin/php -q <?php /* +-------------------------------------------------...
by Comenius
Sun Jan 13, 2019 12:18 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

Just out of curiosity, I reversed the #2 and #3 tests and the script is also dying at #3:

Code: Select all

Input: 60
Output: 
ERROR 3 - 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 60
by Comenius
Sun Jan 13, 2019 12:12 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I corrected the syntax errors and now get the following result: Input: 37 Output: ERROR 2 - 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 37 Updated cli_test.php, which now runs without error fro...
by Comenius
Sun Jan 13, 2019 12:06 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I just ran the modified cli_test.php from the command line and it's generating an error: $ /usr/local/bin/php -q /home/blah/public_html/cacti/install/cli_test.php 7 PHP Parse error: syntax error, unexpected '{' in /home/blah/public_html/cacti/install/cli_test.php on line 29 The unmodified cli_test.p...
by Comenius
Sun Jan 13, 2019 11:56 am
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I made the changes to cli_test.php per your instructions, and strangely, it appears as if neither of those 3 items is triggering the error message. The "This script is only meant to run at the command line." message is now missing. If I revert back to the original file, though, that error message re...
by Comenius
Sat Jan 12, 2019 8:54 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

Hah, if only it were that easy... 8)

Unfortunately I've tried uninstalling ModSecurity and restarting Apache without any improvement.
by Comenius
Sat Jan 12, 2019 8:00 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

Yes, the $ is just my command prompt. You can ignore it. Here's the output of the test page. 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 e...
by Comenius
Sat Jan 12, 2019 3:19 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I don't have a cli_check.php file in my cacti/install directory, although there is a cli_test.php file. Running that file gives an output of 4, as expected: $ php -q ./cli_test.php 2 $ 4 No errors are presents in the Apache error log, just the entries from the last time Apache was started. [Fri Jan ...
by Comenius
Sat Jan 12, 2019 8:31 am
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I just sent you the log file via email.

Thanks for your help!
by Comenius
Fri Jan 11, 2019 8:40 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

I made the database changes you requested and have the install-complete.log file but unfortunately it appears I don't yet have permissions to send a private message to you. Is there some other way for me to get the log file to you? Also, in case it matters, I'm running MariaDB 10.1.37. [~]$ /usr/bin...
by Comenius
Fri Jan 11, 2019 8:22 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

Re: PHP did not return expected result / File not found

Before I saw your message I manually changed the PHP path in the database to /usr/local/bin/php It had previously been /bin/php under 1.1.38 which had run successfully for over a year. With /usr/local/bin/php in the database I'm now getting a "File not found" error instead. Progress? :D Would you st...
by Comenius
Fri Jan 11, 2019 7:19 pm
Forum: Help: General
Topic: PHP did not return expected result / File not found
Replies: 32
Views: 2970

PHP did not return expected result / File not found

I'm trying to upgrade a 1.1.38 installation to 1.2.0. Using the install wizard goes fine until step 5, when binary paths are checked. I'm getting a "PHP did not return expected result" error on the PHP binary path. I have /usr/local/bin/php entered which is definitely correct. No errors are showing ...