• Stars
    star
    186
  • Rank 207,316 (Top 5 %)
  • Language
    Shell
  • Created over 5 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Magento 2 Server Installation - MagenX e-commerce stack on Ubuntu 20/22.04 | Debian 11/12

Magento 2 installation - Magenx e-commerce webstack

Debian 11 | Ubuntu 20.04

Production ready + AWS Graviton2 ARM support

get your $100 credit and deploy on DigitalOcean

πŸš€ Installation:

curl -Lo magenx.sh https://magenx.sh && bash magenx.sh
magenx_magento_installation_intro.mp4

you can run in screen to have indestructible session:

dnf install -y epel-release; dnf install -y screen
screen
bash magenx.sh

System requirements:

Dedicated server / Container
8Gb RAM
*like DigitalOcean cloud servers

πŸ’Ύ MagenX ecommerce webstack for Magento 2 Open Source

Get a fully pre-configured server with Magento and LEMP stack in just 10 minutes! πŸš€

  • Linux system packages with automatic updates
  • Initial system optimization and hardening
  • Varnish HTTPS cache setup
  • MariaDB my.cnf optimization
  • Nginx optimized config with security
  • ELK 7.x stack - Elasticsearch latest (log4j2 fixed)
  • PHP-FPM (apcu, opcache, lzf, snappy, redis)
  • Redis Magento Cache and Sessions (2 instances)
  • RabbitMQ message queue
  • Letsencrypt/certbot configuration
  • Separate Magento files owner and php-fpm user
  • Advanced ACL linux permissions, read/write protection
  • Chroot configuration: jailed ssh and php user (optional)

Extra premium options available:

  • Multiple environments
  • Webmin control panel
  • SFTP advanced configuration
  • SSH private key access ready
  • ConfigServer Security and Firewall advanced configuration
  • Nginx and CSF Firewall DDOS mitigation
  • Nginx and CSF Firewall Carding Attack mitigation
  • MariaDB database optimization
  • Mytop database monitoring
  • Proxysql split database / custom port
  • n98-magerun2 Magento 2 cli management
  • PhpMyAdmin custom path with http auth
  • Goaccess nginx log visualization
  • Malware scanner (mwscan,maldet) with email alerts
  • Auditd Magento 2 files monitoring
  • Automatic nginx images optimization
  • Magento 2 logs rotation
  • PWA Studio ready
  • Hyva Theme ready
  • Ready for production.

Complete linux stack including:

  • linux and webstack settings optimization
  • letsencrypt
  • iotop
  • sysstat
  • git/svn
  • strace
  • python-pip
  • iptraf
  • nginx images optimization
  • geoip
  • logs rotation
  • separate permissions for nginx and php user
  • and many more

πŸ”‘ Environment / Magento mode:

You can select the type of environment and Magento mode respectively. By installing 3 environments on one server at the same time - developer, staging and production, or one type only if you use simple development or even different servers per environment. The script configures users, folders, and all settings for a given environment.

πŸ“„ Get config:

All configuration parameters saved in sqlite database.

sqlite3 -line /opt/magenx/config/magenx.db "SELECT * FROM magento;"
sqlite3 -line /opt/magenx/config/magenx.db "SELECT * FROM system;"

πŸ›‘οΈ SSL / HTTPS:

Once up and running, set up SSL with certbot (already installed):
certbot certonly --agree-tos --no-eff-email --email {EMAIL} --webroot -w /home/{USER}/public_html/pub
and uncomment the lines for SSL in:

  • /etc/nginx/nginx.conf
  • /etc/nginx/sites-available/{DOMAIN_NAME}.conf
  • /etc/nginx/conf_m2/varnish_proxy.conf

πŸ› οΈ DevOps idea:

You have the opportunity to install a new Magento 2, and it is best to do this in a developer environment. Push the code to your Github repository and from there develop and deploy to production and staging environment using Github Actions.
This is the safest and most productive approach. There are few configuration files available for Github Actions [paid extra] deployments:

  • ~/deploy.sh - basic script to catch Github Actions deployment input and run git and magento commands
  • ~/.env - magento 2 environment variables
  • ~/.ssh/authorized_keys - pre-configured ssh keys

🧰 Tools:

you can use the following:

  • sudo cacheflush - to flush magento cache and restart php-fpm / nginx
  • mysqltuner - to see mysql metrics and parameters
  • mytop - database query monitoring / management
  • n98-magerun2 - magento 2 extented cli
  • magento profiler built in nginx - ?developer=xxx Magento-nginx-config/magento2/conf_m2/maps.conf

😻 Support the project

You can use this for free. But its not free to create it. This takes time and research.
If you are using this project, there are few ways you can support it:

  • Star and sharing the project
  • Open an issue to help make it better
  • Donate

deniszokov_paypal_qrcode

❀️ Opensource

More Repositories

1

Magento-nginx-config

Default Nginx config for Magento 2
Shell
505
star
2

Magento-mysql

Magento default mysql settings
Perl
194
star
3

Magento-2-aws-cluster-terraform

Magento 2 AWS autoscaling cluster with Terraform and Packer or ImageBuilder. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks.
HCL
124
star
4

WAZUH-OSSEC

WAZUH - The Open Source Security Platform Installation
Shell
83
star
5

gitlab-webhook-php

gitlab-webhook-php
PHP
68
star
6

Magento-2

Magento 2 minimal composer snapshot ready for setup:install
PHP
47
star
7

Magento-2-docker-configuration

Docker Configuration for Magento 2. Deploy secure, flexible and reusable docker infrastructure for Magento 2 in a matter of seconds.
Dockerfile
31
star
8

magenx-email-server

How to setup mail server - Centos, Postfix, Dovecot, OpenDKIM, ClamAV, ClamSMTP and Roundcube 1.4.3 + ViMbAdmin
Shell
15
star
9

Magento-2-digitalocean-cluster-terraform

Magento 2 DigitalOcean auto scaling cluster with Terraform and Packer. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks. (saver plan)
HCL
11
star
10

Magento-2-digitalocean-kubernetes-terraform

Magento 2 DigitalOcean auto scaling cluster with Terraform and Kubernetes. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks. (managed database services)
HCL
6
star
11

Magento-2-hetzner-cluster-terraform

Magento 2 Hetzner auto scaling cluster with Terraform. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. Developer-friendly. No hidden bottlenecks. (saver plan)
HCL
5
star
12

Magento-2-aws-cluster-terraform-lite

Magento 2 AWS autoscaling cluster with terraform. Adobe Commerce Cloud alternative. The best ecommerce infrastructure. Drive more sales online. Transparent billing. No hidden bottlenecks.
HCL
3
star