PHP did not return expected result / File not found
Moderators: Moderators, Developers
Re: PHP did not return expected result / File not found
What’s the fix? I mean cacti has been working fine but as of 1.2 the checks are finding a problem that isn’t clear what is needed to fix. How do I troubleshoot?
Re: PHP did not return expected result / File not found
Try doing this, within mysql:
Ensure you remove log/install-complete.log then run through the install until your problem email the install-complete.log to [email protected]
Code: Select all
REPLACE INTO settings ('log_install','5');
Official Cacti Developer
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Re: PHP did not return expected result / File not found
Can you do the following?
Then try this:
and post all the output here.
Code: Select all
ll /usr/bin/php
Code: Select all
/usr/bin/php <<cacti_path>>/install/cli_check.php 8
Official Cacti Developer
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Re: PHP did not return expected result / File not found
Tried a clean install of 1.2.6.
I added the log_install 5 to the db. I have emailed the logs over.
ll /usr/bin/php returned:
-rwxr-xr-x 1 root root 937 Aug 6 03:54 /usr/bin/php
/usr/bin/php .../install/cli_check.php 8 returned:
Content-type: text/html; charset=UTF-8
<br><strong>This script is only meant to run at the command line.</strong>
I also tried:
/usr/local/bin/php .../install/cli_check.php 8
/opt/cpanel/ea-php56/root/usr/bin/php .../install/cli_check.php 8
and these returned no result at all
I added the log_install 5 to the db. I have emailed the logs over.
ll /usr/bin/php returned:
-rwxr-xr-x 1 root root 937 Aug 6 03:54 /usr/bin/php
/usr/bin/php .../install/cli_check.php 8 returned:
Content-type: text/html; charset=UTF-8
<br><strong>This script is only meant to run at the command line.</strong>
I also tried:
/usr/local/bin/php .../install/cli_check.php 8
/opt/cpanel/ea-php56/root/usr/bin/php .../install/cli_check.php 8
and these returned no result at all
Re: PHP did not return expected result / File not found
Add a -q before the script filename and see what you get back.
Official Cacti Developer
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Re: PHP did not return expected result / File not found
Tried that but same result. Did the logs show anything obvious?
Re: PHP did not return expected result / File not found
My bad, it is install/cli_test.php not install/cli_check.php
Official Cacti Developer
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Re: PHP did not return expected result / File not found
It gives a result of 64 if I use a different php binary but the default php path you suggested gave the same message saying it’s only meant to be run at command line
Re: PHP did not return expected result / File not found
OK, that would suggest then that your default php binary is operating in web mode for some reason. I would change your path_php_binary in the settings table to the other location though I am curious why the local bin version does operate in non-cli mode.
Official Cacti Developer
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Re: PHP did not return expected result / File not found
Is there any chance of having remote access to this system so I can actually compare the differences? If so, email me [email protected] and we can discuss as I would be curious if it's something that I can try and trap within the installation wizard.
Official Cacti Developer
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8