Search code examples
phpxmldomcentos

PHP XML (DOM) Extension: installed but not listed in phpinfo in centos


I am trying to install DOM extension in CentOS. Extension Got installed with Dependency with below command and Then I have restarted service.

yum install php-xml 
sudo service httpd restart

enter image description here

but when I am looking in phpinfo() it is not reflecting and i am getting this runtime error

runtime error for DOM in CentOS

I have tried some other related answer too but did not get so far. please let me know if i am missing something here Thanks in advance


Solution

  • After multiple tried for the issue. I found out that I have to restart php-fpm where as i was restarting httpd and and other services

    sudo systemctl restart php-fpm