Unable to run drush commands in developer portal.

Not applicable

Unable to run drush commands, while running the command getting error-

[root@xyz html]# /usr/local/bin/drush dc-getorg

The drush command 'dc-getorg' could not be found. Run `drush cache-clear drush` to clear the commandfile cache if you have installed new extensions. [error]

Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This may occur when Drush is trying to:

* bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details.

* connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details.

Solved Solved
1 2 949
1 ACCEPTED SOLUTION

Not applicable

drush-php533patch.zip

First Check the drush version and PHP version

==> drush --version

There is an issue with drush 7.x version running on PHP 5.3.3, which the attached patch (drush-php533.patch) resolves.

You will need to do the following: cd /usr/local/share patch -p0 < /path/to/drush-php533.patch

/** Note - You can also change the PHP version from your Pantheon dashboard by clicking the "Settings" gear at the top right, then selecting the "PHP Version" tab.

View solution in original post

2 REPLIES 2

Not applicable

drush-php533patch.zip

First Check the drush version and PHP version

==> drush --version

There is an issue with drush 7.x version running on PHP 5.3.3, which the attached patch (drush-php533.patch) resolves.

You will need to do the following: cd /usr/local/share patch -p0 < /path/to/drush-php533.patch

/** Note - You can also change the PHP version from your Pantheon dashboard by clicking the "Settings" gear at the top right, then selecting the "PHP Version" tab.

Not applicable

More recent on-prem install packages will apply this patch for you. Additionally, if you are doing a fresh install, the 4.16.09.00 installer will install PHP 7.0.x and drush 7 on Red Hat or CentOS 6 or 7, which entirely eliminates this problem.