Sorry, I may make up something. I suspect that my boss just compile the source code of Apache but used yum to install the php modules. My boss prefers to compile source code because he said that this will allow him to upgrade the system version.
[root@moodle2test ~]# yum list php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.cuhk.edu.hk
* epel: mirrors.aliyun.com
* extras: ftp.cuhk.edu.hk
* remi-php72: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: ftp.cuhk.edu.hk
php-xml.x86_64 7.2.16-1.el7.remi @remi-php72
If you have no idea, I may give up. Thank for very much for your help.
I'd disagree with your boss. Having to recompile one of the 3 (Apache/PHP/MySQL) due to what Windows folks know as a 0 day flaw and in the wild is exactly the reason for the decision to use repos. Those security flaws came frequently enough to make re-compiling a chore. For the users of Moodle that equates to more down time ... and in this case, adding something in an editor that is dependent upon something outside of code could also mean a 'white screen of death' - maybe only in certain areas ... and then a trip down a rabbit hole! I got very tired of playing the role of 'Elmer Fudd'!
Soooooo .... best of luck to ya!
You might find better luck in some other forums.
'spirit of sharing', Ken