-
Notifications
You must be signed in to change notification settings - Fork 190
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
Comments
This means that your version of php-xml is not compatible with your version of php. |
Greg, Thanks for you quick reply! Based on the php version we installed what version of php-xml you recomment to install . Thanks |
The procedure you used looks correct to me; I don't know why it produced incorrect results. |
PHP 5.6 is very old; maybe try again with 7.3. |
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. |
We installed terminus client on RedHat Linux 7 server and followed below steps:
Installed with below command
wget https://github.com/pantheon-systems/terminus/releases/download/2.3.0/terminus.phar
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
Also installed php-xml using below command :
Modified php.ini file to point extension=/usr/lib64/php/modules/dom.so
I get below exception when i run php --ini command:
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
when i ran terminus.phar client
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
The text was updated successfully, but these errors were encountered: