Page 1 of 1

php: not found

Posted: 04 Jun 2018, 15:23
by silentheal
Hi
I tryed to install Uaseco on my dédicated Maniaplanet server but when i try to run Uaseco i have "php: not found"
I'am on Debian with PHP 7.1
Sorry for my bad egnlish and thanks for your help.

Re: php: not found

Posted: 04 Jun 2018, 15:51
by undef.de
Try

Code: Select all

sudo apt-get install php7.1-cli
EDIT: Changed 7 to 7.1

Re: php: not found

Posted: 04 Jun 2018, 16:17
by silentheal
Hi and thx in install PHP 7.2 now i don't have php not found.
But i have that in logs file

Code: Select all

PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/TM2/Uaseco/uaseco.php:74
Stack trace:
#0 {main}
  thrown in /home/TM2/Uaseco/uaseco.php on line 74

Re: php: not found

Posted: 04 Jun 2018, 16:26
by undef.de
As you can see at https://www.uaseco.org/documentation/in ... quirements you need some extensions for PHP.

You can try

Code: Select all

sudo apt-get install php7.1-common php7.1-mysql php7.1-curl php7.1-gd php7.1-json php7.1-mbstring php7.1-xml php7.1-ftp php7.1-iconv
that should install all requirements.

EDIT: PHP/7.2 don't have the mbstrings extension anymore, so currently max. PHP/7.1 is supported.
EDIT: Or was it mcrypt? ...unsure about it.

Re: php: not found

Posted: 04 Jun 2018, 16:36
by silentheal
Thx i'll try

Re: php: not found

Posted: 04 Jun 2018, 17:08
by silentheal
I did what you said i Downgrade php 7.2 to 7.1 but now i have:

Code: Select all

PHP Warning:  Declaration of Database::query($sql) should be compatible with mysqli::query($query, $resultmode = NULL) in /home/TM2/Uaseco/includes/core/database.class.php on line 431
thx again for you help

Re: php: not found

Posted: 04 Jun 2018, 20:36
by silentheal
I reinstall all PHP and Mysqli and now it's work fine.
Thx for help

Re: php: not found

Posted: 04 Jun 2018, 20:41
by undef.de
For PHP/7.1 you should use the current development version 0.9.6 from github, which has been changed to support PHP/7.x.