Page 1 of 1

PHP CLI requirements failed during System Check

Posted: Wed Apr 11, 2018 5:37 am
by tadd
I am trying to install Timetrex 11.2.1 on Centos7 with Plesk Onyx Version 17.0.17 Update #49. I am getting the below.

PHP OPEN_BASEDIR setting (/var/www/vhosts/orielplacements.co.uk/:/tmp/) does not include directory of PHP CLI binary (/usr/bin)PHP CLI (/usr/bin/php) does not exist or is not executable.PHP CLI requirements failed while executing

Code: Select all

"/usr/bin/php" "/var/www/vhosts/orielplacements.co.uk/httpdocs/tt/tools/unattended_upgrade.php" --config "/var/www/vhosts/orielplacements.co.uk/httpdocs/tt/includes/../timetrex.ini.php" --requirements_only --web_installer
Likely caused by having two PHP.INI files with different settings.

I have swiched to apache user /bin/bash and ran the command

Code: Select all

"/usr/bin/php" "/var/www/vhosts/orielplacements.co.uk/httpdocs/tt/tools/unattended_upgrade.php" --config "/var/www/vhosts/orielplacements.co.uk/httpdocs/tt/includes/../timetrex.ini.php" --requirements_only --web_installer
. I got back Requirements all pass successfully!

What could be wrong with the browser installer?

Re: PHP CLI requirements failed during System Check

Posted: Wed Apr 11, 2018 7:50 am
by mikeb
I can't speak to Plesk and its not supported, but here is a link to the install guide for CentOS:

Code: Select all

https://www.timetrex.com/how-to-install-timetrex-on-linux-centos

Re: PHP CLI requirements failed during System Check

Posted: Wed Apr 11, 2018 8:09 am
by tadd
That is the install instructions I followed whist substituting custom links.

Re: PHP CLI requirements failed during System Check

Posted: Wed Apr 11, 2018 12:52 pm
by mikeb
The PHP.ini file that the web browser is using is likely different than what the PHP CLI (command line interface) uses... The browser one is often more restricted (ie: has Open BaseDir restrictions), therefore TimeTrex isn't able to access the necessary files.

The issues to focus on are the PHP Open BaseDir and PHP CLI executable. If those are resolved the PHP CLI Requirements will likely be resolved too. If you can disable Open BaseDir restrictions, that will likely fix your issue.

Re: PHP CLI requirements failed during System Check

Posted: Wed Apr 11, 2018 10:27 pm
by tadd
I have had to add /usr/bin to my open base dir in domain php settings.