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