Skip to main content
OpenServer "drush" is not an internal or external command... Error solution

If you have installed OpenServer, Composer and Drush (instructions) but you get an error when you enter a command in the Openserver built-in console:

OpenServer "drush" is not an internal or external command, executable program or batch file.

Try this:

1. In the active console window go to its settings:

настройки консоли openserver

2. Select "Environment" and enter the paths where Drush is installed and the selected PHP version in the server settings:

set PATH=A:\Program Files\OpenServer\userdata\composer\vendor\drush\drush;%PATH%
set PATH=A:\Program Files\OpenServer\modules\php\PHP_7.2;%PATH%

image_1.png

3. Then press "Save Settings", restart the panel and OpenServer and try entering the command:
drush - for version 9 of Drush
drush for version 8 of Drush

You should get roughly the following information about Drush

drush

Subscribe

About The Author

Author of this blog. In SEO for over 10 years. In addition to SEO, I am interested in everything related to technology and earnings on the Internet, which I try to share with readers.