Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having issues with Terminus client installation on linux. #2125

Closed
uday-wssc opened this issue Mar 5, 2021 · 5 comments
Closed

Having issues with Terminus client installation on linux. #2125

uday-wssc opened this issue Mar 5, 2021 · 5 comments

Comments

@uday-wssc
Copy link

We installed terminus client on RedHat Linux 7 server and followed below steps:

  1. Installed with below command

    wget https://github.com/pantheon-systems/terminus/releases/download/2.3.0/terminus.phar

  2. we have also installed php5.6 , below are the packages:

rpm -qa | grep php

rh-php56-php-gd-5.6.25-1.el7.x86_64
rh-php56-php-pdo-5.6.25-1.el7.x86_64
rh-php56-php-mysqlnd-5.6.25-1.el7.x86_64
rh-php56-php-common-5.6.25-1.el7.x86_64
rh-php56-php-5.6.25-1.el7.x86_64
php-xml-5.4.16-48.el7.x86_64
rh-php56-php-cli-5.6.25-1.el7.x86_64
rh-php56-php-mbstring-5.6.25-1.el7.x86_64
rh-php56-runtime-2.3-1.el7.x86_64
rh-php56-php-pecl-jsonc-1.3.6-3.el7.x86_64
php-common-5.4.16-48.el7.x86_64

  1. Also installed php-xml using below command :

     yum install php-xml
    
  2. Modified php.ini file to point extension=/usr/lib64/php/modules/dom.so

  3. I get below exception when i run php --ini command:

      php --ini
    

PHP Warning: PHP Startup: dom: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
Configuration File (php.ini) Path: /etc/opt/rh/rh-php56
Loaded Configuration File: /etc/opt/rh/rh-php56/php.ini
Scan for additional .ini files in: /etc/opt/rh/rh-php56/php.d
Additional .ini files parsed: /etc/opt/rh/rh-php56/php.d/20-bz2.ini,
/etc/opt/rh/rh-php56/php.d/20-calendar.ini,
/etc/opt/rh/rh-php56/php.d/20-ctype.ini,
/etc/opt/rh/rh-php56/php.d/20-curl.ini,
/etc/opt/rh/rh-php56/php.d/20-exif.ini,
/etc/opt/rh/rh-php56/php.d/20-fileinfo.ini,
/etc/opt/rh/rh-php56/php.d/20-ftp.ini,
/etc/opt/rh/rh-php56/php.d/20-gd.ini,
/etc/opt/rh/rh-php56/php.d/20-gettext.ini,
/etc/opt/rh/rh-php56/php.d/20-iconv.ini,
/etc/opt/rh/rh-php56/php.d/20-mbstring.ini,
/etc/opt/rh/rh-php56/php.d/20-mysqlnd.ini,
/etc/opt/rh/rh-php56/php.d/20-pdo.ini,
/etc/opt/rh/rh-php56/php.d/20-phar.ini,
/etc/opt/rh/rh-php56/php.d/20-sockets.ini,
/etc/opt/rh/rh-php56/php.d/20-sqlite3.ini,
/etc/opt/rh/rh-php56/php.d/20-tokenizer.ini,
/etc/opt/rh/rh-php56/php.d/20-zip.ini,
/etc/opt/rh/rh-php56/php.d/30-mysql.ini,
/etc/opt/rh/rh-php56/php.d/30-mysqli.ini,
/etc/opt/rh/rh-php56/php.d/30-pdo_mysql.ini,
/etc/opt/rh/rh-php56/php.d/30-pdo_sqlite.ini,
/etc/opt/rh/rh-php56/php.d/40-json.ini

  1. when i ran terminus.phar client

       terminus.phar
    

PHP Warning: PHP Startup: dom: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
PHP Warning: array_map(): An error occurred while invoking the map callback in phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/annotated-command/src/AnnotatedCommandFactory.php on line 299
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class DOMDocument does not exist' in phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/output-formatters/src/Transformations/DomToArraySimplifier.php:24
Stack trace:
#0 phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/output-formatters/src/Transformations/DomToArraySimplifier.php(24): ReflectionClass->isSubclassOf('DOMDocument')
#1 phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/output-formatters/src/FormatterManager.php(372): Consolidation\OutputFormatters\Transformations\DomToArraySimplifier->canSimplify(Object(ReflectionClass))
#2 phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/output-formatters/src/FormatterManager.php(194): Consolidation\OutputFormatters\FormatterManager->canSimplifyToArray(Object(ReflectionClass))
#3 phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/output-formatters/src/FormatterManager.php(189): Consolidation\OutputFo in phar:///home/WSSCNT/ugodav1/terminus/terminus.phar/vendor/consolidation/output-formatters/src/Transformations/DomToArraySimplifier.php on line 24

Any help to resolved this issue is much appreciated.

Thanks
uday

@greg-1-anderson
Copy link
Member

Class DOMDocument does not exist means that php-xml is not loaded.

PHP Warning: PHP Startup: dom: Unable to initialize module means that php-xml did not load.

Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match

This means that your version of php-xml is not compatible with your version of php.

@uday-wssc
Copy link
Author

Greg,

Thanks for you quick reply!

Based on the php version we installed what version of php-xml you recomment to install .

Thanks
uday

@greg-1-anderson
Copy link
Member

The procedure you used looks correct to me; I don't know why it produced incorrect results.

@greg-1-anderson
Copy link
Member

PHP 5.6 is very old; maybe try again with 7.3.

@stovak
Copy link
Member

stovak commented Jun 22, 2021

FYI: Version 3.0 of terminus will only support local versions of PHP 7.4+. You will have the ability to host sites on older versions, but locally the developer will need to install 7.4 or 8.

@stovak stovak closed this as completed Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants