red error when installing on Ubuntu 12.04, Warning: PHP CLI

Ask your questions regarding TimeTrex installation here.
Post Reply
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

red error when installing on Ubuntu 12.04, Warning: PHP CLI

Post by mmahdi »

Image

Code: Select all

PHP CLI Requirements:	Warning: PHP CLI requirements failed while executing 
""/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer"
Likely caused by having two PHP.INI files with different settings.
I've tried for about 4-5 hours to resolve this error with no success. Tried 3 clean installs as well. Please let me know how I can resolve this error so we can continue with the setup.

Running on Ubuntu 12.04. Thanks in advance!
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

If you run that command manually from the terminal, what is the output?
""/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer"
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

This was the reply:

Code: Select all

----WARNING----WARNING----WARNING-----
--------------------------------------
Minimum PHP Requirements are NOT met!!
--------------------------------------
Failed Requirements: GD
--------------------------------------


Failed Requirements: Require,GD
I went ahead and installed GD (apt-get install php-gd). Now the response is

Code: Select all

Requirements all pass successfully!
The web installer still shows the same red PHP CLI warning. :(
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

Try running the command as the same user your web server runs as, usually something like this:
su www-data -c ""/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer"
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

When I ran

Code: Select all

"/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config
the following was the output:

Code: Select all

PHP Notice:  Undefined offset: 2 in /home/mmahdi/payroll/timetrex/tools/unattended_upgrade.php on line 44
PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/mmahdi/payroll/timetrex/classes/modules/core/Exception.class.php:84) in /home/mmahdi/payroll/timetrex/classes/modules/core/Redirect.class.php on line 54
When I ran

Code: Select all

"/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer"
the following was the output:

Code: Select all

/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php: line 1: syntax error near unexpected token `;'
'home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php: line 1: `;
Not too sure what to do next.
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

shaunw wrote:Try running the command as the same user your web server runs as, usually something like this:
su www-data -c ""/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer"
When ran as root, the response is:

Code: Select all

Requirements all pass successfully!
When ran as another user (the only other user on the server), the response was:

Code: Select all

Password:
su: Authentication failure
The root password and the user password were both tried, without success.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

Your www-data user may not have a shell set for its login.

Can you send a full uncropped screenshot of the installer Requirements page please?
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

Attached is a screenshoot of the full page.

Image
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

Enable debug logging as described near the bottom of this FAQ:
http://forums.timetrex.com/viewtopic.php?f=6&t=89

That should cause debug information to be displayed at the very bottom of the Requirements page, please copy and paste that here.
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

Code: Select all

Debug Buffer
============================================================================
Memory Usage: 6621348 Buffer Size: 416
----------------------------------------------------------------------------
DEBUG [L0444] [8ms]:	[Function](): URI: /interface/install/Requirements.php?action%3Are-check=Re-Check&external_installer=1 IP Address: 192.168.2.137
DEBUG [L0447] [8ms]:	[Function](): Version: 7.3.10 Edition: 10 Production: 0 Database: Type: postgres8 Name: timetrex Config: /home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php Demo Mode: 0
DEBUG [L0167] [41ms]:	TTDate::setTimeZone(): Setting TimeZone: Europe/Moscow
DEBUG [L0089] [70ms]:	[Function](): Bypassing Authentication
DEBUG [L0427] [72ms]:	TTi18n::getBrowserLanguage(): HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
DEBUG [L0260] [72ms]:	TTi18n::tryLocale(): FAILED TRYING LOCALE: en_US,en_US.UTF-8,en,en.UTF-8
DEBUG [L0260] [72ms]:	TTi18n::tryLocale(): FAILED TRYING LOCALE: en,en.UTF-8,en_US,en_US.UTF-8
DEBUG [L0531] [72ms]:	TTi18n::chooseBestLocale(): Unable to find and set a locale.
DEBUG [L1903] [77ms]:	Misc::detectMobileBrowser(): User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 Retval: 
DEBUG [L1464] [83ms]:	Misc::cleanDir(): Cleaning: /tmp2/timetrex Exclude Regex: 
DEBUG [L0110] [83ms]:	Install::isInstallMode(): Install Mode is ON
DEBUG [L0692] [84ms]:	Install::checkPHPVersion(): Comparing with Version: 5.2.6
DEBUG [L1081] [481ms] Array: Install::checkBaseURL(): Checking Base URL: http://localhost:8085/interface/install/install.php
array(7) {
  [0]=>
  string(15) "HTTP/1.1 200 OK"
  [1]=>
  string(35) "Date: Thu, 07 Aug 2014 01:18:42 GMT"
  [2]=>
  string(72) "Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6"
  [3]=>
  string(23) "X-Powered-By: PHP/5.2.6"
  [4]=>
  string(19) "Content-Length: 318"
  [5]=>
  string(17) "Connection: close"
  [6]=>
  string(23) "Content-Type: text/html"
}


DEBUG [L1098] [481ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
DEBUG [L1145] [530ms] Array: Install::checkPHPCLIRequirements(): PHP CLI Requirements Command: "/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer Output:
array(27) {
  [0]=>
  string(38) "----WARNING----WARNING----WARNING-----"
  [1]=>
  string(38) "--------------------------------------"
  [2]=>
  string(38) "Minimum PHP Requirements are NOT met!!"
  [3]=>
  string(38) "--------------------------------------"
  [4]=>
  string(36) "Failed Requirements: DatabaseType,GD"
  [5]=>
  string(38) "--------------------------------------"
  [6]=>
  string(0) ""
  [7]=>
  string(0) ""
  [8]=>
  string(56) "Failed Requirements: Require,DatabaseType,GD,WConfigFile"
  [9]=>
  string(4) "
"
  [10]=>
  string(23) "Debug Buffer
"
  [11]=>
  string(80) "============================================================================
"
  [12]=>
  string(41) "Memory Usage: 4155736 Buffer Size: 12
"
  [13]=>
  string(80) "----------------------------------------------------------------------------
"
  [14]=>
  string(208) "DEBUG [L0447] [7ms]:	[Function](): Version: 7.3.10 Edition: 10 Production: 0 Database: Type: postgres8 Name: timetrex Config: /home/mmahdi/payroll/timetrex/includes/../timetrex.i
ni.php Demo Mode: 0
"
  [15]=>
  string(87) "DEBUG [L0167] [24ms]:	TTDate::setTimeZone(): Setting TimeZone: Europe/Moscow
"
  [16]=>
  string(103) "DEBUG [L0692] [27ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [17]=>
  string(103) "DEBUG [L0692] [28ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [18]=>
  string(93) "DEBUG [L0531] [30ms]:	TTi18n::chooseBestLocale(): Unable to find and set a locale.
"
  [19]=>
  string(76) "DEBUG [L0144] [30ms]:	[Function](): Checking requirements only...
"
  [20]=>
  string(79) "DEBUG [L0147] [30ms]:	[Function]():   Launched from web installer...
"
  [21]=>
  string(112) "DEBUG [L1464] [30ms]:	Misc::cleanDir(): Cleaning: /tmp2/timetrex Exclude Regex: \.ZIP|upgrade_staging
"
  [22]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [23]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [24]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [25]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [26]=>
  string(80) "============================================================================
"
}


DEBUG [L0692] [702ms]:	Install::checkPHPVersion(): Comparing with Version: 5.2.6
DEBUG [L1081] [883ms] Array: Install::checkBaseURL(): Checking Base URL: http://localhost:8085/interface/install/install.php
array(7) {
  [0]=>
  string(15) "HTTP/1.1 200 OK"
  [1]=>
  string(35) "Date: Thu, 07 Aug 2014 01:18:43 GMT"
  [2]=>
  string(72) "Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6"
  [3]=>
  string(23) "X-Powered-By: PHP/5.2.6"
  [4]=>
  string(19) "Content-Length: 318"
  [5]=>
  string(17) "Connection: close"
  [6]=>
  string(23) "Content-Type: text/html"
}


DEBUG [L1098] [883ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
DEBUG [L1145] [932ms] Array: Install::checkPHPCLIRequirements(): PHP CLI Requirements Command: "/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer Output:
array(27) {
  [0]=>
  string(38) "----WARNING----WARNING----WARNING-----"
  [1]=>
  string(38) "--------------------------------------"
  [2]=>
  string(38) "Minimum PHP Requirements are NOT met!!"
  [3]=>
  string(38) "--------------------------------------"
  [4]=>
  string(36) "Failed Requirements: DatabaseType,GD"
  [5]=>
  string(38) "--------------------------------------"
  [6]=>
  string(0) ""
  [7]=>
  string(0) ""
  [8]=>
  string(56) "Failed Requirements: Require,DatabaseType,GD,WConfigFile"
  [9]=>
  string(4) "
"
  [10]=>
  string(23) "Debug Buffer
"
  [11]=>
  string(80) "============================================================================
"
  [12]=>
  string(41) "Memory Usage: 4155736 Buffer Size: 12
"
  [13]=>
  string(80) "----------------------------------------------------------------------------
"
  [14]=>
  string(208) "DEBUG [L0447] [7ms]:	[Function](): Version: 7.3.10 Edition: 10 Production: 0 Database: Type: postgres8 Name: timetrex Config: /home/mmahdi/payroll/timetrex/includes/../timetrex.i
ni.php Demo Mode: 0
"
  [15]=>
  string(87) "DEBUG [L0167] [24ms]:	TTDate::setTimeZone(): Setting TimeZone: Europe/Moscow
"
  [16]=>
  string(103) "DEBUG [L0692] [27ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [17]=>
  string(103) "DEBUG [L0692] [29ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [18]=>
  string(93) "DEBUG [L0531] [30ms]:	TTi18n::chooseBestLocale(): Unable to find and set a locale.
"
  [19]=>
  string(76) "DEBUG [L0144] [30ms]:	[Function](): Checking requirements only...
"
  [20]=>
  string(79) "DEBUG [L0147] [30ms]:	[Function]():   Launched from web installer...
"
  [21]=>
  string(112) "DEBUG [L1464] [30ms]:	Misc::cleanDir(): Cleaning: /tmp2/timetrex Exclude Regex: \.ZIP|upgrade_staging
"
  [22]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [23]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [24]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [25]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [26]=>
  string(80) "============================================================================
"
}


DEBUG [L0692] [941ms]:	Install::checkPHPVersion(): Comparing with Version: 5.2.6
DEBUG [L1081] [1136ms] Array: Install::checkBaseURL(): Checking Base URL: http://localhost:8085/interface/install/install.php
array(7) {
  [0]=>
  string(15) "HTTP/1.1 200 OK"
  [1]=>
  string(35) "Date: Thu, 07 Aug 2014 01:18:43 GMT"
  [2]=>
  string(72) "Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6"
  [3]=>
  string(23) "X-Powered-By: PHP/5.2.6"
  [4]=>
  string(19) "Content-Length: 318"
  [5]=>
  string(17) "Connection: close"
  [6]=>
  string(23) "Content-Type: text/html"
}


DEBUG [L1098] [1137ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
DEBUG [L1145] [1185ms] Array: Install::checkPHPCLIRequirements(): PHP CLI Requirements Command: "/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer Output:
array(27) {
  [0]=>
  string(38) "----WARNING----WARNING----WARNING-----"
  [1]=>
  string(38) "--------------------------------------"
  [2]=>
  string(38) "Minimum PHP Requirements are NOT met!!"
  [3]=>
  string(38) "--------------------------------------"
  [4]=>
  string(36) "Failed Requirements: DatabaseType,GD"
  [5]=>
  string(38) "--------------------------------------"
  [6]=>
  string(0) ""
  [7]=>
  string(0) ""
  [8]=>
  string(56) "Failed Requirements: Require,DatabaseType,GD,WConfigFile"
  [9]=>
  string(4) "
"
  [10]=>
  string(23) "Debug Buffer
"
  [11]=>
  string(80) "============================================================================
"
  [12]=>
  string(41) "Memory Usage: 4155736 Buffer Size: 12
"
  [13]=>
  string(80) "----------------------------------------------------------------------------
"
  [14]=>
  string(208) "DEBUG [L0447] [7ms]:	[Function](): Version: 7.3.10 Edition: 10 Production: 0 Database: Type: postgres8 Name: timetrex Config: /home/mmahdi/payroll/timetrex/includes/../timetrex.i
ni.php Demo Mode: 0
"
  [15]=>
  string(87) "DEBUG [L0167] [24ms]:	TTDate::setTimeZone(): Setting TimeZone: Europe/Moscow
"
  [16]=>
  string(103) "DEBUG [L0692] [27ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [17]=>
  string(103) "DEBUG [L0692] [28ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [18]=>
  string(93) "DEBUG [L0531] [30ms]:	TTi18n::chooseBestLocale(): Unable to find and set a locale.
"
  [19]=>
  string(76) "DEBUG [L0144] [30ms]:	[Function](): Checking requirements only...
"
  [20]=>
  string(79) "DEBUG [L0147] [30ms]:	[Function]():   Launched from web installer...
"
  [21]=>
  string(112) "DEBUG [L1464] [30ms]:	Misc::cleanDir(): Cleaning: /tmp2/timetrex Exclude Regex: \.ZIP|upgrade_staging
"
  [22]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [23]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [24]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [25]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [26]=>
  string(80) "============================================================================
"
}


DEBUG [L0692] [1320ms]:	Install::checkPHPVersion(): Comparing with Version: 5.2.6
DEBUG [L1081] [1512ms] Array: Install::checkBaseURL(): Checking Base URL: http://localhost:8085/interface/install/install.php
array(7) {
  [0]=>
  string(15) "HTTP/1.1 200 OK"
  [1]=>
  string(35) "Date: Thu, 07 Aug 2014 01:18:44 GMT"
  [2]=>
  string(72) "Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6"
  [3]=>
  string(23) "X-Powered-By: PHP/5.2.6"
  [4]=>
  string(19) "Content-Length: 318"
  [5]=>
  string(17) "Connection: close"
  [6]=>
  string(23) "Content-Type: text/html"
}


DEBUG [L1098] [1512ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
DEBUG [L1145] [1562ms] Array: Install::checkPHPCLIRequirements(): PHP CLI Requirements Command: "/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer Output:
array(27) {
  [0]=>
  string(38) "----WARNING----WARNING----WARNING-----"
  [1]=>
  string(38) "--------------------------------------"
  [2]=>
  string(38) "Minimum PHP Requirements are NOT met!!"
  [3]=>
  string(38) "--------------------------------------"
  [4]=>
  string(36) "Failed Requirements: DatabaseType,GD"
  [5]=>
  string(38) "--------------------------------------"
  [6]=>
  string(0) ""
  [7]=>
  string(0) ""
  [8]=>
  string(56) "Failed Requirements: Require,DatabaseType,GD,WConfigFile"
  [9]=>
  string(4) "
"
  [10]=>
  string(23) "Debug Buffer
"
  [11]=>
  string(80) "============================================================================
"
  [12]=>
  string(41) "Memory Usage: 4155736 Buffer Size: 12
"
  [13]=>
  string(80) "----------------------------------------------------------------------------
"
  [14]=>
  string(208) "DEBUG [L0447] [7ms]:	[Function](): Version: 7.3.10 Edition: 10 Production: 0 Database: Type: postgres8 Name: timetrex Config: /home/mmahdi/payroll/timetrex/includes/../timetrex.i
ni.php Demo Mode: 0
"
  [15]=>
  string(87) "DEBUG [L0167] [24ms]:	TTDate::setTimeZone(): Setting TimeZone: Europe/Moscow
"
  [16]=>
  string(103) "DEBUG [L0692] [27ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [17]=>
  string(103) "DEBUG [L0692] [29ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [18]=>
  string(93) "DEBUG [L0531] [30ms]:	TTi18n::chooseBestLocale(): Unable to find and set a locale.
"
  [19]=>
  string(76) "DEBUG [L0144] [30ms]:	[Function](): Checking requirements only...
"
  [20]=>
  string(79) "DEBUG [L0147] [30ms]:	[Function]():   Launched from web installer...
"
  [21]=>
  string(112) "DEBUG [L1464] [30ms]:	Misc::cleanDir(): Cleaning: /tmp2/timetrex Exclude Regex: \.ZIP|upgrade_staging
"
  [22]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [23]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [24]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [25]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [26]=>
  string(80) "============================================================================
"
}


DEBUG [L0692] [1564ms]:	Install::checkPHPVersion(): Comparing with Version: 5.2.6
DEBUG [L1081] [1740ms] Array: Install::checkBaseURL(): Checking Base URL: http://localhost:8085/interface/install/install.php
array(7) {
  [0]=>
  string(15) "HTTP/1.1 200 OK"
  [1]=>
  string(35) "Date: Thu, 07 Aug 2014 01:18:44 GMT"
  [2]=>
  string(72) "Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6"
  [3]=>
  string(23) "X-Powered-By: PHP/5.2.6"
  [4]=>
  string(19) "Content-Length: 318"
  [5]=>
  string(17) "Connection: close"
  [6]=>
  string(23) "Content-Type: text/html"
}


DEBUG [L1098] [1740ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
DEBUG [L1145] [1789ms] Array: Install::checkPHPCLIRequirements(): PHP CLI Requirements Command: "/usr/bin/php" "/home/mmahdi/payroll/timetrex//tools/unattended_upgrade.php" --config "/home/mmahdi/payroll/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer Output:
array(27) {
  [0]=>
  string(38) "----WARNING----WARNING----WARNING-----"
  [1]=>
  string(38) "--------------------------------------"
  [2]=>
  string(38) "Minimum PHP Requirements are NOT met!!"
  [3]=>
  string(38) "--------------------------------------"
  [4]=>
  string(36) "Failed Requirements: DatabaseType,GD"
  [5]=>
  string(38) "--------------------------------------"
  [6]=>
  string(0) ""
  [7]=>
  string(0) ""
  [8]=>
  string(56) "Failed Requirements: Require,DatabaseType,GD,WConfigFile"
  [9]=>
  string(4) "
"
  [10]=>
  string(23) "Debug Buffer
"
  [11]=>
  string(80) "============================================================================
"
  [12]=>
  string(41) "Memory Usage: 4155736 Buffer Size: 12
"
  [13]=>
  string(80) "----------------------------------------------------------------------------
"
  [14]=>
  string(208) "DEBUG [L0447] [7ms]:	[Function](): Version: 7.3.10 Edition: 10 Production: 0 Database: Type: postgres8 Name: timetrex Config: /home/mmahdi/payroll/timetrex/includes/../timetrex.i
ni.php Demo Mode: 0
"
  [15]=>
  string(87) "DEBUG [L0167] [24ms]:	TTDate::setTimeZone(): Setting TimeZone: Europe/Moscow
"
  [16]=>
  string(103) "DEBUG [L0692] [27ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [17]=>
  string(103) "DEBUG [L0692] [28ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [18]=>
  string(93) "DEBUG [L0531] [30ms]:	TTi18n::chooseBestLocale(): Unable to find and set a locale.
"
  [19]=>
  string(76) "DEBUG [L0144] [30ms]:	[Function](): Checking requirements only...
"
  [20]=>
  string(79) "DEBUG [L0147] [30ms]:	[Function]():   Launched from web installer...
"
  [21]=>
  string(112) "DEBUG [L1464] [30ms]:	Misc::cleanDir(): Cleaning: /tmp2/timetrex Exclude Regex: \.ZIP|upgrade_staging
"
  [22]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [23]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [24]=>
  string(103) "DEBUG [L0692] [30ms]:	Install::checkPHPVersion(): Comparing with Version: 5.3.10-1ubuntu3.13
"
  [25]=>
  string(79) "DEBUG [L1098] [30ms]:	Install::checkPHPOpenBaseDir(): Open BaseDir: 
"
  [26]=>
  string(80) "============================================================================
"
}


============================================================================
============================================================================
								PROFILER OUTPUT
============================================================================
Calls					 Time  Routine
-----------------------------------------------------------------------------
  1	1707.6588 ms (95.52 %)	 Main
 16	54.5042 ms (3.05 %)	 __autoload
  1	25.1822 ms (1.41 %)	 unprofiled

		0.3986 ms (0.02 %)	 Missed
============================================================================
		1787.7438 ms (100.00 %)	 OVERALL TIME
============================================================================
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

So it appears that your database drivers and GD are not installed when executing PHP from the command line as your web-server user.
Failed Requirements: DatabaseType,GD
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

We have tried apt-get install php5-gd, got the following:

Code: Select all

root@hrtest3:/home/mmahdi/payroll# apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-gd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
And apt-get install postgresql, and got the following:

Code: Select all

root@hrtest3:/home/mmahdi/payroll# apt-get install postgresql
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
We are still getting the same errors. How do we go about taking care of those errors?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

For some reason it would appear that the CLI PHP binary used by the www-data user is different than your other php.ini file used by your web server. I would search your disk for all php.ini copies and see if any don't include the necessary extensions.
mmahdi
Posts: 8
Joined: Wed Aug 06, 2014 11:01 am

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by mmahdi »

I removed all the other php.ini files, rebooted, and still get the same error.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: red error when installing on Ubuntu 12.04, Warning: PHP

Post by shaunw »

Something is incorrect with your PHP installation, it has nothing to do with TimeTrex itself, but strictly your PHP installation and not having certain extensions enabled that is preventing TimeTrex from running.

If you are unable to find the cause of the issue, you may want to consider our free Cloud Hosted Community Edition instead.
Post Reply