Skip to main content
Formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 56
  • 77

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

For example, if I run php -m | grep dom from the command line I will get no results returned. If I run sudo yum install php81-php-dom then yum returns "Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version."

I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so. There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns "HP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

  • For example, if I run php -m | grep dom from the command line I will get no results returned.

  • If I run sudo yum install php81-php-dom then yum returns

    Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version.
    
  • I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so.

  • There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

  • I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns

    HP Warning:  PHP Startup: Unable to load dynamic library 'dom'
    (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory),
            /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory))
    in Unknown on line 0
    

I am not sure what I need to do to get this extension and others to be available for PHP. I also tried 8.0.

Any help is greatly appreciated.

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

For example, if I run php -m | grep dom from the command line I will get no results returned. If I run sudo yum install php81-php-dom then yum returns "Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version."

I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so. There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns "HP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

I am not sure what I need to do to get this extension and others to be available for PHP. I also tried 8.0.

Any help is greatly appreciated.

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

  • For example, if I run php -m | grep dom from the command line I will get no results returned.

  • If I run sudo yum install php81-php-dom then yum returns

    Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version.
    
  • I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so.

  • There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

  • I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns

    HP Warning:  PHP Startup: Unable to load dynamic library 'dom'
    (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory),
            /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory))
    in Unknown on line 0
    

I am not sure what I need to do to get this extension and others to be available for PHP. I also tried 8.0.

Any help is greatly appreciated.

Added that 8.0 is tried as well.
Source Link
Josh
  • 111
  • 1
  • 3

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

For example, if I run php -m | grep dom from the command line I will get no results returned. If I run sudo yum install php81-php-dom then yum returns "Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version."

I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so. There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns "HP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

I am not sure what I need to do to get this extension and others to be available for PHP. I also tried 8.0.

Any help is greatly appreciated.

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

For example, if I run php -m | grep dom from the command line I will get no results returned. If I run sudo yum install php81-php-dom then yum returns "Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version."

I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so. There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns "HP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

I am not sure what I need to do to get this extension and others to be available for PHP.

Any help is greatly appreciated.

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

For example, if I run php -m | grep dom from the command line I will get no results returned. If I run sudo yum install php81-php-dom then yum returns "Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version."

I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so. There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns "HP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

I am not sure what I need to do to get this extension and others to be available for PHP. I also tried 8.0.

Any help is greatly appreciated.

Source Link
Josh
  • 111
  • 1
  • 3

PHP Extensions Are Not Enabled

I am running RHEL 7 and I am trying to use PHP 8.1. PHP is installing and the extensions are installed (per-Yum) but not enabled per-PHP.

For example, if I run php -m | grep dom from the command line I will get no results returned. If I run sudo yum install php81-php-dom then yum returns "Package php81-php-xml-8.1.6-1.el7.remi.x86_64 already installed and latest version."

I can use locate to see that there is a .so file for dom at /opt/remi/php81/root/usr/lib64/php/modules/dom.so. There is an ini file at /etc/opt/remi/php81/php.d/20-dom.ini.

I have tried creating a softlink between /etc/opt/remi/php81/php.d/20-dom.ini and /etc/php.d/ (because I think that is where the ini file needs to be) and PHP returns "HP Warning: PHP Startup: Unable to load dynamic library 'dom' (tried: /usr/lib64/php/modules/dom (/usr/lib64/php/modules/dom: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: cannot open shared object file: No such file or directory)) in Unknown on line 0"

I am not sure what I need to do to get this extension and others to be available for PHP.

Any help is greatly appreciated.