PHP CLI requirements errors can someone help !

Ask your questions regarding TimeTrex installation here.
Post Reply
orlando
Posts: 4
Joined: Wed Feb 02, 2022 8:11 am

PHP CLI requirements errors can someone help !

Post by orlando »

I have been trying to install Timetrex but stuck at this last bit I am install on Cpanel which i host my self any input on how to get this working would be much appreciated.

Please see error below ----------->


PHP CLI requirements failed while executing:
"/usr/bin/php" "/home/svacademycouk/public_html/staff-clocking-timetrex/tools/unattended_upgrade.php" --config "/home/svacademycouk/public_html/staff-clocking-timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer
Likely caused by having two PHP.INI files with different settings.Detailed Error Messages

PHP CLI Requirements Output:
Access-Control-Allow-Origin: http://clocking.svacademy.co.uk
Access-Control-Allow-Headers: Content-Type, REQUEST_URI_FRAGMENT
Content-type: text/html; charset=UTF-8

This script can only be called from the Command Line. (cgi-fcgi)

Debug Buffer
============================================================================
Memory Usage: 821664 Buffer Size: 7
----------------------------------------------------------------------------
DEBUG [L0480] [00064ms]: GLOBAL: URI: IP Address:
DEBUG [L0481] [00064ms]: GLOBAL: USER-AGENT: N/A
DEBUG [L0482] [00064ms]: GLOBAL: Version: 15.1.5 (PHP: v7.4.27 [8]) Edition: 10 Production: 1 Server: N/A OS: LINUX Database: Type: mariadb Name: svacademycouk_timetrex Config: /home/svacademycouk/public_html/staff-clocking-timetrex/
DEBUG [L0482] [00064ms]: GLOBAL: includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0353] [00102ms]: TTDate::setTimeZone(): Setting TimeZone: GMT
DEBUG [L0457] [00105ms]: TTShutdown(): Server Response Time: 0.10457491874695
DEBUG [L0466] [00105ms]: TTShutdown(): Shutting down completely...
============================================================================
PHP CLI Requirements Output:
Access-Control-Allow-Origin: http://clocking.svacademy.co.uk
Access-Control-Allow-Headers: Content-Type, REQUEST_URI_FRAGMENT
Content-type: text/html; charset=UTF-8

This script can only be called from the Command Line. (cgi-fcgi)

Debug Buffer
============================================================================
Memory Usage: 821664 Buffer Size: 7
----------------------------------------------------------------------------
DEBUG [L0480] [00061ms]: GLOBAL: URI: IP Address:
DEBUG [L0481] [00061ms]: GLOBAL: USER-AGENT: N/A
DEBUG [L0482] [00061ms]: GLOBAL: Version: 15.1.5 (PHP: v7.4.27 [8]) Edition: 10 Production: 1 Server: N/A OS: LINUX Database: Type: mariadb Name: svacademycouk_timetrex Config: /home/svacademycouk/public_html/staff-clocking-timetrex/
DEBUG [L0482] [00061ms]: GLOBAL: includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0353] [00098ms]: TTDate::setTimeZone(): Setting TimeZone: GMT
DEBUG [L0457] [00100ms]: TTShutdown(): Server Response Time: 0.099956035614014
DEBUG [L0466] [00100ms]: TTShutdown(): Shutting down completely...
============================================================================
PHP CLI Requirements Output:
Access-Control-Allow-Origin: http://clocking.svacademy.co.uk
Access-Control-Allow-Headers: Content-Type, REQUEST_URI_FRAGMENT
Content-type: text/html; charset=UTF-8

This script can only be called from the Command Line. (cgi-fcgi)

Debug Buffer
============================================================================
Memory Usage: 821664 Buffer Size: 7
----------------------------------------------------------------------------
DEBUG [L0480] [00058ms]: GLOBAL: URI: IP Address:
DEBUG [L0481] [00058ms]: GLOBAL: USER-AGENT: N/A
DEBUG [L0482] [00058ms]: GLOBAL: Version: 15.1.5 (PHP: v7.4.27 [8]) Edition: 10 Production: 1 Server: N/A OS: LINUX Database: Type: mariadb Name: svacademycouk_timetrex Config: /home/svacademycouk/public_html/staff-clocking-timetrex/
DEBUG [L0482] [00058ms]: GLOBAL: includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0353] [00093ms]: TTDate::setTimeZone(): Setting TimeZone: GMT
DEBUG [L0457] [00096ms]: TTShutdown(): Server Response Time: 0.09515905380249
DEBUG [L0466] [00096ms]: TTShutdown(): Shutting down completely...
============================================================================
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: PHP CLI requirements errors can someone help !

Post by shaunw »

It appears you are trying to run that from a web browser instead of an actual command line, so thats the first problem.

The next problem is the database is set to "mariadb" which is not a supported database.
orlando
Posts: 4
Joined: Wed Feb 02, 2022 8:11 am

Re: PHP CLI requirements errors can someone help !

Post by orlando »

Thank you for your reply and point taken so there no way I can run this in CPanel webserver ? Is what your saying
Post Reply