PHP CLI requirements failed during System Check

Ask your questions regarding TimeTrex installation here.
Post Reply
tadd
Posts: 10
Joined: Wed Mar 21, 2018 7:24 am

PHP CLI requirements failed during System Check

Post by tadd » Wed Apr 11, 2018 5:37 am

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?
Attachments
Untitled.png
Untitled.png (71.54 KiB) Viewed 432 times

mikeb
Posts: 382
Joined: Thu Jul 27, 2006 11:58 am

Re: PHP CLI requirements failed during System Check

Post by mikeb » Wed Apr 11, 2018 7:50 am

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

tadd
Posts: 10
Joined: Wed Mar 21, 2018 7:24 am

Re: PHP CLI requirements failed during System Check

Post by tadd » Wed Apr 11, 2018 8:09 am

That is the install instructions I followed whist substituting custom links.

mikeb
Posts: 382
Joined: Thu Jul 27, 2006 11:58 am

Re: PHP CLI requirements failed during System Check

Post by mikeb » Wed Apr 11, 2018 12:52 pm

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.

tadd
Posts: 10
Joined: Wed Mar 21, 2018 7:24 am

Re: PHP CLI requirements failed during System Check

Post by tadd » Wed Apr 11, 2018 10:27 pm

I have had to add /usr/bin to my open base dir in domain php settings.

Post Reply