Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSS Gate Workshop: monotaro: 2019-12-02: imrankln: magento2: Work log #1355

Closed
imrankln opened this issue Dec 2, 2019 · 19 comments
Closed

OSS Gate Workshop: monotaro: 2019-12-02: imrankln: magento2: Work log #1355

imrankln opened this issue Dec 2, 2019 · 19 comments

Comments

@imrankln
Copy link
Contributor

@imrankln imrankln commented Dec 2, 2019

This is a work log of a "OSS Gate workshop".
"OSS Gate workshop" is an activity to increase OSS developers.
Here's been discussed in Japanese. Thanks.

作業ログ作成時の説明

以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。

OSS Gate Workshop: ${LOCATION}: ${YEAR}-${MONTH}-${DAY}: ${ACCOUNT_NAME}: ${OSS_NAME}: Work log

タイトル例↓:

OSS Gate Workshop: Tokyo: 2017-01-16: kou: Rabbit: Work log

OSS Gateワークショップ関連情報

  • スライド:ワークショップの進行に使っているスライドがあります。
  • チャット:OSS開発に関することならなんでも相談できます。ワークショップが終わった後もオンラインで相談しながら継続的にOSSの開発に参加しましょう!
  • シナリオ:ワークショップの目的・内容・進め方の詳細が書いています。
  • 過去のビギナーの作業ログ:他の人の作業ログから学べることがいろいろあるはずです。
@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

ライセンスの確認します。

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

Magento 2 のライセンスはここにあります。
https://github.com/magento/magento2/blob/2.3-develop/LICENSE.txt

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

Magento 2のライセンスはOpen Software License ("OSL") v. 3.0と確認しました。

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

インストールの方法調べています。

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

インストールするために2つ点があります
1.システム要件
2.アプリのインストール

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

ステップ 1.
githubにシステム要件のリンクがありました。
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements.html

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

ステップ 1.
MagentoのためにlinuxーOSが必要です。例えばRHEL, CentOS, Ubuntu, Debian etc.
以下のOSにはMagento直接インストールできません、virtual env.が必要です:
Windows OS
Mac OS

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

メモリー:RAM 2GBいります。

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

他の必要なもの:
Composer
Mysql: 5.6, 5.7
PHP: 7.x

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

環境が立ち上がったら、Magentoインストールに進みます。

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

Magento インストールのためMagentoソースコードかアプリがダウンロードする。
githubからcloneしてもいいし、以下のurlからダウンロードする
www.magento.com/download

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

Magento インストール、GUI からできます、またCLI からもできます。
CLIからインストールするために以下のコマンドを使いました
magento setup:install --= ... --=
option-valueはこのペイジーから選びます。
https://devdocs.magento.com/guides/v2.3/install-gde/install/cli/install-cli-install.html

私の開発環境、Macの上vagrantでUbuntuを使っています。
Magento インストールのためCLIを選択しました。以下のコマンドを使いました。

php bin/magento setup:install \
--db-host=localhost \
--db-name=magento \
--db-user=USER \
--db-password=****** \
--backend-frontname=admin \
--base-url=http://192.xxx.xxx.xxx/ \
--language=ja_JP \
--timezone=Asia/Tokyo \
--currency=JPY \
--admin-lastname=Admin \
--admin-firstname=Admin \
--admin-email=john.smith@example.com \
--admin-user=USER \
--admin-password=***** \
--use-secure=0 \
--use-rewrites=1

Checking Magento version
$ bin/magento --version

Magento CLI version 2.3.2

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

Problem faced:
Error:

"Missing PHP Extension bcmath"

インストールする時phpの以下のextensionが必要です。phpのextensionインストールしなかったらエラーがでます
ext-bcmath、ext-ctype、ext-curl、ext-dom、ext-gd、ext-hash、ext-iconv、ext-intl、ext-mbstring、ext-openssl、ext-pdo_mysql、ext-simplexml、ext-soap、ext-spl、ext-xsl、ext-zip、lib-libxml

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

インストールの後、以下のfolderとfileにwrite permissionが必要です。
vendor
app/code
app/etc
pub/static
Any other static resources
generated/code
generated/metadata
var/view_preprocessed

Magento root directory から以下の1lineコマンド使ったら、file/folderにpermissionができます。

cd /var/www/html/magento2 && find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chown -R :apache . && chmod u+x bin/magento

@Silver-birder

This comment has been minimized.

Copy link
Contributor

@Silver-birder Silver-birder commented Dec 2, 2019

https://github.com/magento/magento2/issues/new?template=bug_report.md

bugReport's format is below.

<!---
Please review our guidelines before adding a new issue: https://github.com/magento/magento2/wiki/Issue-reporting-guidelines
Fields marked with (*) are required. Please don't remove the template.
-->

### Preconditions (*)
<!---
Provide the exact Magento version (example: 2.3.2) and any important information on the environment where bug is reproducible.
-->
1.
2.

### Steps to reproduce (*)
<!---
Important: Provide a set of clear steps to reproduce this bug. We can not provide support without clear instructions on how to reproduce.
-->
1.
2.

### Expected result (*)
<!--- Tell us what do you expect to happen. -->
1. [Screenshots, logs or description]
2.

### Actual result (*)
<!--- Tell us what happened instead. Include error messages and issues. -->
1. [Screenshots, logs or description]
2.

@Silver-birder

This comment has been minimized.

Copy link
Contributor

@Silver-birder Silver-birder commented Dec 2, 2019

https://github.com/magento/magento2/issues/new?template=feature_request.md

<!---
Important: This repository is intended only for Magento 2 Technical Issues. Enter Feature Requests at https://github.com/magento/community-features. Project stakeholders monitor and manage requests. Feature requests entered using this form may be moved to the forum. Fields marked with (*) are required. Please don't remove the template.
-->

### Description (*)
<!--- Describe the feature you would like to add. -->

### Expected behavior (*)
<!--- What is the expected behavior of this feature? How is it going to work? -->

### Benefits
<!--- How do you think this feature would improve Magento? -->

### Additional information
<!--- What other information can you provide about the desired feature? -->

@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

https://github.com/magento/magento2/issues/new?template=feature_request.md

Description (*)

System requirement should be more simplified and compact. Like one Vagrantfile or docker image should provide from Magento.

Expected behavior (*)

Creating system environment for Magento installation.

Benefits

It will save time and make steps more easier for Magento installation. Currently there are lots of pre-installation steps. Additional PHP extensions are needed, Apache/nginx server configuration for magento, installing varnish, elasticsearch etc .

Additional information

  • After installing php need to install/enable essential extensions one by one
  • during server setup mod-rewrite and other extensions are needed to enable.
  • varnish, elasticsearch etc needs to install one by one.
  • for Magento installation there is no one line command (simplified).
@imrankln

This comment has been minimized.

Copy link
Contributor Author

@imrankln imrankln commented Dec 2, 2019

@oss-gate-issue-cleaner

This comment has been minimized.

Copy link

@oss-gate-issue-cleaner oss-gate-issue-cleaner bot commented Dec 3, 2019

おつかれさまでした!

後日引き続きワークショップがある場合

後日のワークショップで再開する際に、issueタイトルの日付を更新してreopenしてください!

ワークショップ終了後に続きがしたい場合

issueはクローズしますが、その後も作業を続けていただいて大丈夫です!

是非このissueを活用なさってください。

今後のイベントの案内

現在以下のイベントの開催を予定しています。

参加をお待ちしてます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.