forked from hechoendrupal/drupal-console-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hechoendrupal#222] Russian: windows: translated and updated content.
- Loading branch information
Showing
10 changed files
with
575 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Installing Drupal Console on Windows | ||
On Windows there are two ways to install drupal console. One uses Git Bash, the other uses a Windows command prompt. I recommend using the Git Bash utility from the Git for Windows (previously msysgit) program package, since this is the only way you can use drupal console without prefixing it with php. | ||
|
||
## Using on Git Bash: | ||
|
||
If you use Drupal Console on Git Bash, please install packages below: | ||
|
||
* [Git for Windows](https://git-for-windows.github.io/) | ||
* [Composer](https://github.com/composer/windows-setup) | ||
* [PHP For Windows](http://windows.php.net/download/) | ||
* [sqlite-tools-win32-x86](https://www.sqlite.org/download.html) | ||
|
||
### Update PATH environment | ||
|
||
After installation, you have to include php.exe and sqlite3.exe in your PATH environment variable. | ||
For example, if you extracted "PHP For Windows" into "C:\php", and extracted "sqlite-tools-win32-x86" into "C:\sqlite", you can set PATH environment variable as below from command prompt. | ||
|
||
``` | ||
SETX /M PATH "%PATH%;C:\php;C:\sqlite" | ||
``` | ||
|
||
### Setup php.ini | ||
|
||
Drupal Console require some extensions. please enable these extensions in your php.ini. | ||
|
||
``` | ||
extension=php_gd2.dll | ||
extension=php_pdo_sqlite.dll | ||
``` | ||
|
||
We recommend to enable the following extensions to enable you to use your own language. | ||
``` | ||
extension=php_intl.dll | ||
extension=php_mbstring.dll | ||
``` | ||
|
||
#### Define certificate | ||
|
||
put certificate information provided by Git for Windows. | ||
``` | ||
curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; | ||
``` | ||
|
||
### Install Drupal Console globally using composer: | ||
``` | ||
$ composer global require drupal/console:@stable | ||
``` | ||
|
||
### You can now execute console using: | ||
|
||
``` | ||
$ drupal | ||
``` | ||
|
||
or execute one of the chain available, to execute a quick install execute the following command | ||
|
||
``` | ||
$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" | ||
``` | ||
|
||
**NOTE:** You have to provide "Windows-style" path for `file` option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,64 @@ | ||
# Installing Drupal Console on Windows | ||
|
||
On Windows there are two ways to install drupal console. One uses Git Bash, the other uses a Windows command prompt. I recommend using the Git Bash utility from the Git for Windows (previously msysgit) program package, since this is the only way you can use drupal console without prefixing it with php. | ||
|
||
## Using curl from the Git Bash prompt: | ||
## Using on Git Bash: | ||
|
||
If you use Drupal Console on Git Bash, please install packages below: | ||
|
||
* [Git for Windows](https://git-for-windows.github.io/) | ||
* [Composer](https://github.com/composer/windows-setup) | ||
* [PHP for Windows](http://windows.php.net/download/) | ||
* [sqlite-tools-win32-x86](https://www.sqlite.org/download.html) | ||
|
||
### Update PATH environment | ||
|
||
After installation, you have to include `php.exe` and `sqlite3.exe` files in your PATH environment variable. | ||
For example, if you extracted "PHP For Windows" into "C:\php", and extracted "sqlite-tools-win32-x86" into "C:\sqlite", you can set PATH environment variable as below from command prompt. | ||
|
||
``` | ||
SETX /M PATH "%PATH%;C:\php;C:\sqlite" | ||
``` | ||
|
||
### Setup php.ini | ||
|
||
Drupal Console require some extensions. Please enable these extensions in your `php.ini`. | ||
|
||
``` | ||
$ curl https://drupalconsole.com/installer -L -o drupal.phar | ||
extension=php_gd2.dll | ||
extension=php_pdo_sqlite.dll | ||
``` | ||
## OR run the following from a Windows command prompt: | ||
|
||
We recommend to enable the following extensions to enable you to use your own language. | ||
|
||
``` | ||
$ php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar | ||
extension=php_intl.dll | ||
extension=php_mbstring.dll | ||
``` | ||
|
||
You can now execute it, supposing php.exe is in your PATH environment variable. | ||
#### Define certificate | ||
|
||
## Run: | ||
Put certificate information provided by Git for Windows. | ||
|
||
``` | ||
curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; | ||
``` | ||
|
||
### Install Drupal Console globally using composer: | ||
``` | ||
$ php drupal.phar | ||
$ composer global require drupal/console:@stable | ||
``` | ||
|
||
If you rename the drupal.phar file to drupal, and copy it next to php.exe, then from the Git Bash window you can run it without prefixing with php. | ||
### You can now execute console using: | ||
|
||
#### You can now execute using: | ||
``` | ||
$ drupal | ||
``` | ||
|
||
**NOTE:** The name `drupal` is just an alias you can name it anything you like. | ||
or execute one of the chain available, to execute a quick install execute the following command | ||
|
||
``` | ||
$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" | ||
``` | ||
|
||
**NOTE:** You have to provide "Windows-style" path for `file` option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Installing Drupal Console on Windows | ||
On Windows there are two ways to install drupal console. One uses Git Bash, the other uses a Windows command prompt. I recommend using the Git Bash utility from the Git for Windows (previously msysgit) program package, since this is the only way you can use drupal console without prefixing it with php. | ||
|
||
## Using on Git Bash: | ||
|
||
If you use Drupal Console on Git Bash, please install packages below: | ||
|
||
* [Git for Windows](https://git-for-windows.github.io/) | ||
* [Composer](https://github.com/composer/windows-setup) | ||
* [PHP For Windows](http://windows.php.net/download/) | ||
* [sqlite-tools-win32-x86](https://www.sqlite.org/download.html) | ||
|
||
### Update PATH environment | ||
|
||
After installation, you have to include php.exe and sqlite3.exe in your PATH environment variable. | ||
For example, if you extracted "PHP For Windows" into "C:\php", and extracted "sqlite-tools-win32-x86" into "C:\sqlite", you can set PATH environment variable as below from command prompt. | ||
|
||
``` | ||
SETX /M PATH "%PATH%;C:\php;C:\sqlite" | ||
``` | ||
|
||
### Setup php.ini | ||
|
||
Drupal Console require some extensions. please enable these extensions in your php.ini. | ||
|
||
``` | ||
extension=php_gd2.dll | ||
extension=php_pdo_sqlite.dll | ||
``` | ||
|
||
We recommend to enable the following extensions to enable you to use your own language. | ||
``` | ||
extension=php_intl.dll | ||
extension=php_mbstring.dll | ||
``` | ||
|
||
#### Define certificate | ||
|
||
put certificate information provided by Git for Windows. | ||
``` | ||
curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; | ||
``` | ||
|
||
### Install Drupal Console globally using composer: | ||
``` | ||
$ composer global require drupal/console:@stable | ||
``` | ||
|
||
### You can now execute console using: | ||
|
||
``` | ||
$ drupal | ||
``` | ||
|
||
or execute one of the chain available, to execute a quick install execute the following command | ||
|
||
``` | ||
$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" | ||
``` | ||
|
||
**NOTE:** You have to provide "Windows-style" path for `file` option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Installing Drupal Console on Windows | ||
On Windows there are two ways to install drupal console. One uses Git Bash, the other uses a Windows command prompt. I recommend using the Git Bash utility from the Git for Windows (previously msysgit) program package, since this is the only way you can use drupal console without prefixing it with php. | ||
|
||
## Using on Git Bash: | ||
|
||
If you use Drupal Console on Git Bash, please install packages below: | ||
|
||
* [Git for Windows](https://git-for-windows.github.io/) | ||
* [Composer](https://github.com/composer/windows-setup) | ||
* [PHP For Windows](http://windows.php.net/download/) | ||
* [sqlite-tools-win32-x86](https://www.sqlite.org/download.html) | ||
|
||
### Update PATH environment | ||
|
||
After installation, you have to include php.exe and sqlite3.exe in your PATH environment variable. | ||
For example, if you extracted "PHP For Windows" into "C:\php", and extracted "sqlite-tools-win32-x86" into "C:\sqlite", you can set PATH environment variable as below from command prompt. | ||
|
||
``` | ||
SETX /M PATH "%PATH%;C:\php;C:\sqlite" | ||
``` | ||
|
||
### Setup php.ini | ||
|
||
Drupal Console require some extensions. please enable these extensions in your php.ini. | ||
|
||
``` | ||
extension=php_gd2.dll | ||
extension=php_pdo_sqlite.dll | ||
``` | ||
|
||
We recommend to enable the following extensions to enable you to use your own language. | ||
``` | ||
extension=php_intl.dll | ||
extension=php_mbstring.dll | ||
``` | ||
|
||
#### Define certificate | ||
|
||
put certificate information provided by Git for Windows. | ||
``` | ||
curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; | ||
``` | ||
|
||
### Install Drupal Console globally using composer: | ||
``` | ||
$ composer global require drupal/console:@stable | ||
``` | ||
|
||
### You can now execute console using: | ||
|
||
``` | ||
$ drupal | ||
``` | ||
|
||
or execute one of the chain available, to execute a quick install execute the following command | ||
|
||
``` | ||
$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" | ||
``` | ||
|
||
**NOTE:** You have to provide "Windows-style" path for `file` option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Installing Drupal Console on Windows | ||
On Windows there are two ways to install drupal console. One uses Git Bash, the other uses a Windows command prompt. I recommend using the Git Bash utility from the Git for Windows (previously msysgit) program package, since this is the only way you can use drupal console without prefixing it with php. | ||
|
||
## Using on Git Bash: | ||
|
||
If you use Drupal Console on Git Bash, please install packages below: | ||
|
||
* [Git for Windows](https://git-for-windows.github.io/) | ||
* [Composer](https://github.com/composer/windows-setup) | ||
* [PHP For Windows](http://windows.php.net/download/) | ||
* [sqlite-tools-win32-x86](https://www.sqlite.org/download.html) | ||
|
||
### Update PATH environment | ||
|
||
After installation, you have to include php.exe and sqlite3.exe in your PATH environment variable. | ||
For example, if you extracted "PHP For Windows" into "C:\php", and extracted "sqlite-tools-win32-x86" into "C:\sqlite", you can set PATH environment variable as below from command prompt. | ||
|
||
``` | ||
SETX /M PATH "%PATH%;C:\php;C:\sqlite" | ||
``` | ||
|
||
### Setup php.ini | ||
|
||
Drupal Console require some extensions. please enable these extensions in your php.ini. | ||
|
||
``` | ||
extension=php_gd2.dll | ||
extension=php_pdo_sqlite.dll | ||
``` | ||
|
||
We recommend to enable the following extensions to enable you to use your own language. | ||
``` | ||
extension=php_intl.dll | ||
extension=php_mbstring.dll | ||
``` | ||
|
||
#### Define certificate | ||
|
||
put certificate information provided by Git for Windows. | ||
``` | ||
curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; | ||
``` | ||
|
||
### Install Drupal Console globally using composer: | ||
``` | ||
$ composer global require drupal/console:@stable | ||
``` | ||
|
||
### You can now execute console using: | ||
|
||
``` | ||
$ drupal | ||
``` | ||
|
||
or execute one of the chain available, to execute a quick install execute the following command | ||
|
||
``` | ||
$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" | ||
``` | ||
|
||
**NOTE:** You have to provide "Windows-style" path for `file` option. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Installing Drupal Console on Windows | ||
On Windows there are two ways to install drupal console. One uses Git Bash, the other uses a Windows command prompt. I recommend using the Git Bash utility from the Git for Windows (previously msysgit) program package, since this is the only way you can use drupal console without prefixing it with php. | ||
|
||
## Using on Git Bash: | ||
|
||
If you use Drupal Console on Git Bash, please install packages below: | ||
|
||
* [Git for Windows](https://git-for-windows.github.io/) | ||
* [Composer](https://github.com/composer/windows-setup) | ||
* [PHP For Windows](http://windows.php.net/download/) | ||
* [sqlite-tools-win32-x86](https://www.sqlite.org/download.html) | ||
|
||
### Update PATH environment | ||
|
||
After installation, you have to include php.exe and sqlite3.exe in your PATH environment variable. | ||
For example, if you extracted "PHP For Windows" into "C:\php", and extracted "sqlite-tools-win32-x86" into "C:\sqlite", you can set PATH environment variable as below from command prompt. | ||
|
||
``` | ||
SETX /M PATH "%PATH%;C:\php;C:\sqlite" | ||
``` | ||
|
||
### Setup php.ini | ||
|
||
Drupal Console require some extensions. please enable these extensions in your php.ini. | ||
|
||
``` | ||
extension=php_gd2.dll | ||
extension=php_pdo_sqlite.dll | ||
``` | ||
|
||
We recommend to enable the following extensions to enable you to use your own language. | ||
``` | ||
extension=php_intl.dll | ||
extension=php_mbstring.dll | ||
``` | ||
|
||
#### Define certificate | ||
|
||
put certificate information provided by Git for Windows. | ||
``` | ||
curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; | ||
``` | ||
|
||
### Install Drupal Console globally using composer: | ||
``` | ||
$ composer global require drupal/console:@stable | ||
``` | ||
|
||
### You can now execute console using: | ||
|
||
``` | ||
$ drupal | ||
``` | ||
|
||
or execute one of the chain available, to execute a quick install execute the following command | ||
|
||
``` | ||
$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" | ||
``` | ||
|
||
**NOTE:** You have to provide "Windows-style" path for `file` option. |
Oops, something went wrong.