From 0dc2af5ca8203d4177bcdda0813dda8336afe66c Mon Sep 17 00:00:00 2001 From: Yoshikazu Aoyama Date: Sat, 6 Aug 2016 00:00:38 +0900 Subject: [PATCH 1/3] update setup instructions for Windows --- en/getting/windows.md | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/en/getting/windows.md b/en/getting/windows.md index e7d07318..2b639e8f 100644 --- a/en/getting/windows.md +++ b/en/getting/windows.md @@ -1,28 +1,45 @@ # 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) + +After installation, you have to include php.exe and sqlite3.exe in your PATH environment variable. + +### 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: + +And we recommend to enable another several extensions to use your local 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. - -## Run: - +Finally, put cert information. ``` -$ php drupal.phar +curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; ``` -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. +### Install Drupal Console globally using composer: +``` +$ composer global require drupal/console:@stable +``` -#### You can now execute using: +### You can now execute console using: ``` -$ drupal +$ drupal chain --file="C:\Users\username\.console\chain\quick-start.yml" ``` -**NOTE:** The name `drupal` is just an alias you can name it anything you like. +**NOTE:** You have to provide "Windows-style" path for `file` option. From 5e8e3799a85132756236e8a65ee1adb28099cfeb Mon Sep 17 00:00:00 2001 From: Yoshikazu Aoyama Date: Sat, 6 Aug 2016 00:42:07 +0900 Subject: [PATCH 2/3] update some setup instructions --- en/getting/windows.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/en/getting/windows.md b/en/getting/windows.md index 2b639e8f..4bc9b7ab 100644 --- a/en/getting/windows.md +++ b/en/getting/windows.md @@ -10,7 +10,14 @@ If you use Drupal Console on Git Bash, please install packages below: * [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 @@ -21,13 +28,15 @@ extension=php_gd2.dll extension=php_pdo_sqlite.dll ``` -And we recommend to enable another several extensions to use your local language. +We recommend to enable the following extensions to enable you to use your own language. ``` extension=php_intl.dll extension=php_mbstring.dll ``` -Finally, put cert information. +#### Define certificate + +put certificate information provided by Git for Windows. ``` curl.cainfo = C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt; ``` @@ -38,6 +47,13 @@ $ 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" ``` From 0845658a6061b0e090797f50435e6a0534cbe5f7 Mon Sep 17 00:00:00 2001 From: Yoshikazu Aoyama Date: Sat, 6 Aug 2016 00:57:33 +0900 Subject: [PATCH 3/3] add getting/windows.md into all languages --- ca/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ es/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ hi/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ hu/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ pt_br/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ ro/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ ru/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ vn/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ zh_hans/getting/windows.md | 61 ++++++++++++++++++++++++++++++++++++++ 9 files changed, 549 insertions(+) create mode 100644 ca/getting/windows.md create mode 100644 es/getting/windows.md create mode 100644 hi/getting/windows.md create mode 100644 hu/getting/windows.md create mode 100644 pt_br/getting/windows.md create mode 100644 ro/getting/windows.md create mode 100644 ru/getting/windows.md create mode 100644 vn/getting/windows.md create mode 100644 zh_hans/getting/windows.md diff --git a/ca/getting/windows.md b/ca/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/ca/getting/windows.md @@ -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. diff --git a/es/getting/windows.md b/es/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/es/getting/windows.md @@ -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. diff --git a/hi/getting/windows.md b/hi/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/hi/getting/windows.md @@ -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. diff --git a/hu/getting/windows.md b/hu/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/hu/getting/windows.md @@ -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. diff --git a/pt_br/getting/windows.md b/pt_br/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/pt_br/getting/windows.md @@ -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. diff --git a/ro/getting/windows.md b/ro/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/ro/getting/windows.md @@ -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. diff --git a/ru/getting/windows.md b/ru/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/ru/getting/windows.md @@ -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. diff --git a/vn/getting/windows.md b/vn/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/vn/getting/windows.md @@ -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. diff --git a/zh_hans/getting/windows.md b/zh_hans/getting/windows.md new file mode 100644 index 00000000..4bc9b7ab --- /dev/null +++ b/zh_hans/getting/windows.md @@ -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.