Report this

What is the reason for this report?

'drush dl' command fails on CentOS 7

Posted on October 4, 2015

Hello,

I’m having some issues with drush setup on my server. Runing ‘drush dl’ command returns PHP Fatal error: Call to undefined function Drush\UpdateService\simplexml_load_file()

Don’t know if this is related somehow but this started to happen after I configured my nginx to run with php-fpm (I followed tutorial here)

Some information form terminal

[www-admin@my-host ~]$ drush -vd dl views
Starting Drush preflight. [0.01 sec, 2.23 MB]                                                                                       [preflight]
Cache HIT cid: 8.0-dev-commandfiles-0-87b93096be660a357cdc7a7fe060b103 [0.01 sec, 2.29 MB]                                              [debug]
Scanning into /etc/drush for /.*aliases\.drush(8|)rc\.php$/ [0.04 sec, 4.17 MB]                                                     [sitealias]
Scanning into /etc/drush for /self\.alias\.drush(8|)rc\.php$/ [0.04 sec, 4.17 MB]                                                   [sitealias]
Scanning into /home/www-admin/.composer/vendor/drush/drush/includes/.. for /.*aliases\.drush(8|)rc\.php$/ [0.04 sec, 4.17 MB]       [sitealias]
Scanning into /home/www-admin/.composer/vendor/drush/drush/includes/.. for /self\.alias\.drush(8|)rc\.php$/ [0.04 sec, 4.17 MB]     [sitealias]
Scanning into /home/www-admin/.drush for /.*aliases\.drush(8|)rc\.php$/ [0.04 sec, 4.17 MB]                                         [sitealias]
Scanning into /home/www-admin/.drush for /self\.alias\.drush(8|)rc\.php$/ [0.04 sec, 4.17 MB]                                       [sitealias]
Bootstrap to phase 0. [0.11 sec, 6.1 MB]                                                                                            [bootstrap]
Found command: pm-download (commandfile=pm) [0.11 sec, 6.11 MB]                                                                     [bootstrap]
Loading version_control engine. [0.11 sec, 6.11 MB]                                                                                    [notice]
Loading package_handler engine. [0.11 sec, 6.13 MB]                                                                                    [notice]
Executing: wget --version
Loading release_info engine. [0.12 sec, 6.15 MB]                                                                                       [notice]
Including /home/www-admin/.composer/vendor/drush/drush/commands/pm/download.pm.inc [0.12 sec, 6.2 MB]                               [bootstrap]
Calling hook drush_pm_download_validate [0.12 sec, 6.28 MB]                                                                             [debug]
Returned from hook drush_pm_download_validate [0.12 sec, 6.28 MB]                                                                       [debug]
Calling hook drush_pm_download [0.12 sec, 6.29 MB]                                                                                      [debug]
Downloading release history from https://updates.drupal.org/release-history/views/7.x [0.12 sec, 6.4 MB]                               [notice]
/home/www-admin/.drush/cache/download/https---updates.drupal.org-release-history-views-7.x retrieved from cache. [0.12 sec, 6.4 MB]    [notice]
PHP Fatal error:  Call to undefined function Drush\UpdateService\simplexml_load_file() in /home/www-admin/.composer/vendor/drush/drush/lib/Drush/UpdateService/Project.php on line 72
Drush command terminated abnormally due to an unrecoverable error.                                                                  [error]
Error: Call to undefined function Drush\UpdateService\simplexml_load_file() in
/home/www-admin/.composer/vendor/drush/drush/lib/Drush/UpdateService/Project.php, line 72 [0.13 sec, 6.41 MB]

Here is my nginx.conf file. PHP version 5.6.14 Nginx verison 1.6.3 Drush version 8.0-dev



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You’ll need simplexml, which is inluded in php-xml: yum install php-xml.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.