title: Pear error "XML Extension not found" on Ubuntu 14.04 after installing php-xml & php-xml7.0
body: <p>I wanna use the pecl command to install redis to my php on Ubuntu 14.04. But my Pear is giving me a list of warnings:</p>
  
  <pre><code>Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: honorsbaseinstall in Role.php on line 173
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: installable in Role.php on line 139
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: phpfile in Role.php on line 204
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Notice: Undefined index: config_vars in Role.php on line 46
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
  
  Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
  XML Extension not found
  </code></pre>
  
  <p>Last line gives me this message </p>
  
  <blockquote>
    <p>XML Extension not found</p>
  </blockquote>
  
  <p>, although I installed <code>#sudo apt-get install php-xml php7.0-xml</code>. But the same problem still occurs.</p>
  
  <p>What could be the problem?</p>