50% off 全プラン、期間限定。料金は $2.48/mo
Magento

Magento

Magento(現 Adobe Commerce)はオープンソースの EC プラットフォームです。マルチストア・マルチ通貨対応、B2B レベルのカタログ管理を備え、本格的なオンライン小売に対応します。Coca-Cola、Ford、Helly Hansen での導入実績があり、年間 GMV が $10M 以上のストアにとって Shopify の有力な代替候補です。

バージョン

2.4.6

オペレーティングシステム

Ubuntu Server 22.04 LTS

最小 RAM

8 GB

IPタイプ

IPv4

Magento へのアクセス

ブラウザを開く: http://<server-ip>

管理パネルの URL を確認する:

php /var/www/magento2/bin/magento info:adminuri

以下に保存された認証情報でログインしてください: /root/.cloudzy-creds

主要ファイルとディレクトリ

  • Magento インストール: /var/www/magento2
  • Magento 設定ファイル: /var/www/magento2/app/etc/env.php
  • Magento CLI: 人気の記事 トップ × We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. Cookies Policy ← BACK ACCEPT COOKIES REJECT COOKIES This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience. Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously. Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features. Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc. Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads. Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet. ACCEPT COOKIES REJECT COOKIES Save & Accept Magento CLIコマンドラインインターフェース /var/www/magento2/bin/magento
  • repo.magento.com の Composer 認証情報: /var/www/.composer/auth.json
  • Composerキャッシュ: /var/www/.cache/composer
  • Apache バーチャルホスト設定: /etc/apache2/sites-available/magento.conf
  • 有効化されたサイトのシンボリックリンク: /etc/apache2/sites-enabled/magento.conf
  • 管理者およびデータベースの認証情報: /root/.cloudzy-creds
  • Magento ログ: /var/www/magento2/var/log
  • Magentoキャッシュ: /var/www/magento2/var/cache
  • Magento セッションストレージ: /var/www/magento2/var/session
  • 自己署名 SSL キー: /etc/apache2/ssl/privkey.pem
  • 自己署名 SSL 証明書: /etc/apache2/ssl/fullchain.pem

サービス管理

Apache2:

systemctl restart apache2
systemctl status apache2

MySQL:

systemctl restart mysql
systemctl status mysql

Elasticsearch:

systemctl restart elasticsearch
systemctl status elasticsearch

Magento CLI コマンド

メンテナンスモードを有効にする:

php /var/www/magento2/bin/magento maintenance:enable

メンテナンスモードを無効にする:

php /var/www/magento2/bin/magento maintenance:disable

キャッシュをフラッシュ:

php /var/www/magento2/bin/magento cache:flush

デプロイメントモードを設定する:

php /var/www/magento2/bin/magento deploy:mode:set production

管理者 URL を確認する:

php /var/www/magento2/bin/magento info:adminuri

ドメインを使った SSL の有効化

1. ドメインをサーバーのIPアドレスに向けてください。

2. Apache の設定を編集して置き換える ServerName <IP>; ドメイン(<your-domain>):

vim /etc/apache2/sites-available/magento.conf

3. Certbotをインストールします:

apt install -y certbot python3-certbot-apache

4. 以下のコマンドを実行して、有効な Let's Encrypt 証明書を生成します:

certbot --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. Apache を再起動して変更を反映する:

systemctl restart apache2

6. ブラウザを開き、次の URL にアクセスします: https://yourdomain.com

セルフホストの関連記事

関連アプリ。

Magento を今すぐデプロイする。 $2.48/月からの価格