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:
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%
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
- 71 views