enable php-xml extension ubuntu code example Example: Install or enable PHP's xml extension sudo apt-get install php-xml