php 7.4 install dom extension code example Example: install php dom extension ubuntu sudo apt-get install php-xml