Can You REALLY Install Magento 2 in 5 Minutes?

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 207

  • @michaelbarrett7079
    @michaelbarrett7079 9 дней назад +1

    Thanks!

    • @MarkShust
      @MarkShust  9 дней назад

      You're awesome Michael... thanks so much!!! 🧡

  • @racheladnyana866
    @racheladnyana866 Год назад +2

    You are a LIFE SAVER! I tried so long to figure this out on my own before I found your amazing script and course. Thank you so much!!

    • @MarkShust
      @MarkShust  Год назад

      Awesome, really glad it was helpful to you Rachel! 🤜🤛 Feel free to tell your friends about it too 🤗

  • @lc.uclakers
    @lc.uclakers 7 месяцев назад +2

    mark this repo is a lifesaver! i spent almost a week trying to setup magento and docker magento worked so smoothly simply amazing!

    • @MarkShust
      @MarkShust  7 месяцев назад

      That is so great to hear. I’m glad you’ve found it so useful 🧡

  • @ldcb6408
    @ldcb6408 11 месяцев назад +3

    You're a genius! I found a lot of Docker images, tutorials, and stuff, but after three days of struggling, I'm amazed at how easy it was with your script! It simply worked!

    • @MarkShust
      @MarkShust  11 месяцев назад

      I don’t know about the genius part 😂 but that’s so great to hear!! 🎉

  • @linonator
    @linonator Год назад +2

    It’s definitely helped my setup time. I had my own docker setup but using it with multiple different project always required a bunch of tweaking. But your set up has made it 1000% easier

  • @nyandoandriamananjara497
    @nyandoandriamananjara497 Месяц назад +1

    very helpful, simple and easy to use
    Thank you Sir

    • @MarkShust
      @MarkShust  10 дней назад

      Thanks for the kind words -- glad you found it useful!

  • @АнтонАнтонов-д2в
    @АнтонАнтонов-д2в 11 месяцев назад +3

    How to install ssl let's encrypt certificate ?

    • @MarkShust
      @MarkShust  11 месяцев назад +1

      This project uses mkcert, so it doesn’t depend upon third-party services. You could integrate Let’s Encrypt though by using their provided instructions with Docker + Nginx.

  • @worldwidelibra
    @worldwidelibra Год назад +1

    I followed the manual steps and it stopped at container started and the logs in the container shows Closed keepalive connection. Not sure what I did wrong, but maaaan Magento is difficult to get started with

    • @MarkShust
      @MarkShust  11 месяцев назад

      It’s hard to tell what’s going on without seeing it, but bin/status should show all containers in an active state. If not, please open up a new Discussion on GitHub so you can try to get this resolved. There are usually no problems running this out of the box.

  • @pratikgiramkar4977
    @pratikgiramkar4977 2 месяца назад +1

    Hey Mark! This works really well just that my magento setup doesn't generate logs, I tried everything but nothing worked! Can you please guide me here?

    • @MarkShust
      @MarkShust  Месяц назад

      Hi Pratik! I think I heard this from one or two devs, so I'd recommend checking out the open issues on GitHub and perhaps even filing a bug report about this at github.com/markshust/docker-magento/issues and it'll be looked into. FYI a new version of docker-magento (48.0.0) just got released a few days ago.

  • @Przepuklina77
    @Przepuklina77 Год назад +2

    Why did I fin your channel so late. Thank you for your time!

    • @MarkShust
      @MarkShust  Год назад +1

      Glad you like my channel! 😎 Appreciate it.

  • @mingjieliu-zn1qj
    @mingjieliu-zn1qj 7 месяцев назад +2

    Hello sir, when I use your steps to install Magento 2, I often encounter this error. What is the problem?
    chmod: cannot access 'bin/magento': No such file or directory

    • @MarkShust
      @MarkShust  7 месяцев назад

      It appears as though your install failed for some reason. I’d recommend blowing it away and trying again, noting any errors that may be thrown in the terminal during the install process. Info of how to do this and this error is in the GitHub readme.

  • @huongong7690
    @huongong7690 8 месяцев назад +2

    Hi Mark Shut, i tried this way many times, but it always show me this error :chmod: cannot access 'bin/magento': No such file or directory
    , Pls help.Tks

    • @MarkShust
      @MarkShust  8 месяцев назад

      It sounds like your installation failed, as that should work out of the box. I’d recommend opening up a new discussion thread on GitHub about this.

  • @zakidev
    @zakidev Год назад +1

    Thank you Mark. You are a life saver. 🙏🏻

    • @MarkShust
      @MarkShust  Год назад

      Sure thing, glad it was helpful to you!

  • @alcymn
    @alcymn Год назад +1

    Thank you, but when i tried to login to admin dashboard using provided credentials in the env it says "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.". what did i miss ?

    • @MarkShust
      @MarkShust  Год назад +1

      Hi there, it sounds like your account was locked out from too many failed login attempts. It's a security measure put in place by Magento that prevents brute-force login attempts. Luckily, you can easily unlock this from command line with: bin/magento admin:user:unlock john.smith

  • @umairtahir2
    @umairtahir2 7 месяцев назад +1

    but sir how we go to admin panel of m2.test

    • @MarkShust
      @MarkShust  7 месяцев назад +1

      m2.test/admin 😄. See the env/db.env file for creds.

  • @pslamba
    @pslamba 8 месяцев назад +1

    Mr Shust - Many thank yous for creating the Docker-Magento solution! Which host do you recommend for deploying Magento as a Docker container? I tried Heroku, but I'm struggling to get the 8 images to run without crashing. My guess is I need to include the prefixes in the images names/tags (eg linuxserver/phpmyadmin as opposed to phpmyadmin). But Heroku's "release" command doesn't seem to like those forward slashes. Any ideas?

    • @MarkShust
      @MarkShust  8 месяцев назад

      Thanks! I generally recommend a managed hosting solution at this time, as simply figuring out how to deploy Magento is super time consuming (I’d rather stick with writing code). It is a problem that I’m thinking about. That said, I’d recommend looking up Damien’s Kubernetes setups to learn how to run a proper containerization setup for Magento.

    • @pslamba
      @pslamba 8 месяцев назад

      @@MarkShust Thanks for the response Mark! Do you know of anyone who has successfully deployed your Docker-Magento solution to a host? It is working fine on my machine. But I want to deploy it to a host and make it publicly available as an actual store for my daughter.

    • @MarkShust
      @MarkShust  8 месяцев назад

      @@pslamba I don't, but feel free to try it out!

    • @tebybohorquez6121
      @tebybohorquez6121 8 дней назад

      @@pslamba Hi, I'm trying to do that using Hostinger. Have you found out any solutions about it?

  • @asadarif4031
    @asadarif4031 Год назад +2

    Mark Thank you. I was able to install successfully!
    I've changed something in file, cleared cache but nothing changed in frontend. What did I miss? Do I need any docker command?

    • @MarkShust
      @MarkShust  Год назад +1

      Hi Asad, glad it installed successfully for you! It’s possible you are trying to modify a file or folder that is not set up to be bidirectionally synced. Only files or folders listed in the compose.dev.yaml file are synced.

  • @randompersonontheinternet4790
    @randompersonontheinternet4790 7 месяцев назад +1

    Magento has a headless eCommerce architecture right? How easy is it to connect a customized frontend to the backend? Do you have videos for building frontends? I am not so fit with the backend and I would like to know if a webshop with magento is relatively easy to realize in your opinion :)

    • @MarkShust
      @MarkShust  7 месяцев назад +1

      Magento is anything but easy. It's a commitment, because it is very powerful, but with that power comes great responsibility. It comes with a full GraphQL implementation in which you can build a completely custom frontend if you wish, but you'd need to have fairly extensive experience to go down this route. I typically recommend everyone to use Hyvä, but if you are using the built-in theming setup (Luma), I'd very much recommend taking my course on theming at m.academy/courses/magento-2-power-theming/. As far as headless frontends, there are platforms out there such as Vue Storefront which makes this approach less of a reach (still very involved though).

    • @randompersonontheinternet4790
      @randompersonontheinternet4790 7 месяцев назад +1

      ​@@MarkShust Thank you very much for the detailed answer. I am just in my last year of my computer science studies and wanted to deepen my knowledge in ecommerce and therefore create my own web store. As soon as I have the financial means I will definitely look into your course, thanks again!!!

  • @sul-dev
    @sul-dev 4 месяца назад +1

    Can you run docker-magento in Windows?

    • @MarkShust
      @MarkShust  4 месяца назад +1

      Though I don’t officially support it, you can, and many have with WSL2. You can see the Discussion thread about it for more info at github.com/markshust/docker-magento/discussions/372

    • @sul-dev
      @sul-dev 4 месяца назад +1

      @@MarkShust Thank you for getting back to me!

    • @MarkShust
      @MarkShust  4 месяца назад +1

      @@sul-dev sure thing!

  • @MatthiasJaekle
    @MatthiasJaekle 6 месяцев назад

    Great script! Do you also have a tutorial, how to move from a huge old classical Magento (2.3.7) installation to a nice state of the art docker magento environment?

    • @MarkShust
      @MarkShust  6 месяцев назад

      Hi Matthias! I'm sorry that I do not -- 2.3.7 is ancient! I'd recommend getting Magento up to speed on the first version that supports both PHP 7.3 and 8.1, which I believe is 2.4.3. Once at that point, it shouldn't be much of a reach to get things set up on docker-magento. Some old tags also support 2.3.x, but you'll need to search for those through the documentation/commits as it's been a while. I'd recommend not falling behind Magento more than 2 versions at any given time. -Mark

  • @MeetKothari-r2o
    @MeetKothari-r2o 10 месяцев назад +1

    Can we host it to localhost instead of HTTPS, if yes it will be really helpful

    • @MarkShust
      @MarkShust  10 месяцев назад +1

      The problem with running HTTP is that some modules and code will not work correct, as all eCommerce sites are meant to be ran over HTTPS. But there is no reason that you can't run a domain locally with HTTPS! docker-magento uses something called mkcert which generates self-signed SSL certificates to be executed on your local machine, so you can run things locally, but still have HTTPS. There are also other solutions that exist that can help with this, such as ngrok or traeffik.

  • @Waqqasabdullah
    @Waqqasabdullah Год назад +1

    Hello Mark, excellent work. Thank you. How can I change the port from 80 to something else? Port 80 is already in use on my computer. I tried stopping it and running again with a different port but I am getting the following error: host not found in upstream "phpfpm" in /etc/nginx/conf.d/default.conf:24
    nginx: [emerg] host not found in upstream "phpfpm" in /etc/nginx/conf.d/default.conf:24

    • @MarkShust
      @MarkShust  Год назад +1

      Yes, you can update the compose.yaml file and update the app service to point from port 80 to your desired port (for example, 8080:80 to expose it to port 8080 on your host). You’ll also need to update the site base url config value. Note there are gotchas with https and the like, so you’ll need to do some digging there.

  • @WolfszeitYT
    @WolfszeitYT Год назад

    Can you make a tutorial on how to install that when you already have such a project live and you need it locally.

    • @MarkShust
      @MarkShust  Год назад

      Yes, I think I can! In the mean time, you can check out the "Existing Projects" documentation at github.com/markshust/docker-magento#existing-projects which explains how you would be able to do this.

    • @WolfszeitYT
      @WolfszeitYT Год назад

      @@MarkShust would be so awesome please make a video youre my hero. But please on windows xD

    • @MarkShust
      @MarkShust  Год назад

      @@WolfszeitYTsorry I don’t do Windows 😮

  • @programmingholic
    @programmingholic Год назад +2

    Thanks for sharing but i am still strugling on windows. can you make a video how to download and install on window Please.

    • @MarkShust
      @MarkShust  Год назад +1

      This is a bit tricky for me as I don’t run Windows. I’ll see what I can do, but in the meantime you can check out this discussion on GitHub for info on how to get this setup working on Windows with WSL2 github.com/markshust/docker-magento/discussions/372

    • @programmingholic
      @programmingholic Год назад

      @@MarkShust Thanks for sharing. i'll do

  • @atNguyen-jy4yp
    @atNguyen-jy4yp 3 месяца назад +1

    Can you help me install Magento 2 without Docker, I have tried until now but not successful :(

    • @MarkShust
      @MarkShust  3 месяца назад

      Sure, I created a full course just for this, which takes you through the process step-by-step: m.academy/courses/magento-2-development-environment-docker/

  • @guardian_6930
    @guardian_6930 8 месяцев назад +1

    Hi Mark thanks for the amazing amount of effort that you put into this project. One question would be could this be used to run Magento2 on a VPS server live? If yes what changes need to be made to make it run securely? If not what steps must I take to get Magento2 running as quick, easily, and securely as possible?

    • @MarkShust
      @MarkShust  8 месяцев назад

      Hi there - thanks for the kind words! This environment is meant for development, so some updates would need to be made for prod, including customizing the images and such. I don’t have a formal process for this and generally leave it up to each use-case to implement at the moment, though I am thinking through deployment options.

  • @matheus-tv8ju
    @matheus-tv8ju Год назад +1

    What are the 'username' and 'password' values used for on the admin screen?

    • @MarkShust
      @MarkShust  Год назад

      Hi Matheus, these are set from the magento.env file at github.com/markshust/docker-magento/blob/master/compose/env/magento.env

    • @kimdevylder3778
      @kimdevylder3778 Год назад +1

      @@MarkShust Thanks a lot for this video and system. I've been banging my head all day long untill I found this. Sadly the credentials in the .env file result in "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later." Any idea why?

    • @MarkShust
      @MarkShust  Год назад +1

      @@kimdevylder3778 it sounds like your account was locked out, which can happen if you have multiple failed login attempts. It's a security measure put in place by Magento that prevents brute-force login attempts. Luckily, you can easily unlock this from command line with: bin/magento admin:user:unlock john.smith

    • @kimdevylder3778
      @kimdevylder3778 Год назад

      @@MarkShust Thanks a lot for your fast reply! Sadly this did not work. Terminal returned "The user account "john.smith" was not locked or could not be unlocked" but I still can not login using those credentials. However, I found a way to create a new administrator account via Terminal and turn off Two Factor Authentication (I can not make email work, yet). I tried posting the links to information about that here for other users but my reply disapeared. Anyhow, I made it in but it wasn't easy ;-)

    • @MarkShust
      @MarkShust  Год назад

      @@kimdevylder3778 it sounds like there were too many failed login attempts. You can unlock it with the "bin/magento admin:user:unlock" command 😄

  • @thiagofelizola
    @thiagofelizola Год назад

    How to install in a VPS with Portainer? Where can I choose the ports?

    • @MarkShust
      @MarkShust  Год назад

      I really don’t have a clue. I use the YAML files to configure everything. So, check out compose.yaml to do this.

  • @cupofjava9843
    @cupofjava9843 9 месяцев назад +1

    What Mac do you use for Magento 2 development and how well does it work?

    • @MarkShust
      @MarkShust  9 месяцев назад

      I use an M1 MBP Max with 64GB RAM and a 4TB SSD (which does speed up I/O a bit) - it’s the first computer in the last decade that I’ve loved, and it performs insanely well. You may be able to get similar performance with a newer MBA though with maxed out RAM. The new M computers are so fast.

  • @Ethan-n2z
    @Ethan-n2z 4 месяца назад

    Hi Mark. Here I am again with another question. My friend has an Abode Enterprise and he setup his local successfully. Then he zip his vendor folder and send me. Can I replace that with my vendor. Do I need to run any commands to make it works. I only use this for my local dev. Thank you very much

    • @MarkShust
      @MarkShust  4 месяца назад

      Hi Ethan, this is the entirely wrong workflow to use with Composer. There is no need to copy & paste the vendor folder around -- simply run "bin/composer install" from the command line. This will use the composer.json and composer.lock file to install the related modules.

    • @Ethan-n2z
      @Ethan-n2z 4 месяца назад

      @@MarkShust I mean I already install Magento following your tutorial. But my friend has Magento version Enterprise. So, I can simply copy his composer.json and composer.lock, then run command 'bin/composer install'. Does this work 😂

    • @MarkShust
      @MarkShust  4 месяца назад

      @@Ethan-n2z yep 😄. You’ll probably just need his composer auth.json info to authenticate against the enterprise repo.

    • @Ethan-n2z
      @Ethan-n2z 4 месяца назад

      @@MarkShust Ohhh, that's too bad, I don't have auth.json 😭😭😭 Is there a workaround that I can do with his vendor folder?

    • @MarkShust
      @MarkShust  4 месяца назад

      @@Ethan-n2z no, I'm not recommending that way because it makes no sense :) Get the auth.json from your coworker and set this up the right way! Copying the vendor directory around is all kinds of horribleness and wrong.

  • @SportEmpire
    @SportEmpire 9 месяцев назад +1

    Hello, I have VMware running on the 80 & 443 port. Is there any other way I get get to install this without it conflicting?

    • @MarkShust
      @MarkShust  9 месяцев назад +1

      Yes, you can change the ports in compose.yaml (host:container) and update the site’s base URL.

    • @SportEmpire
      @SportEmpire 9 месяцев назад

      @@MarkShust thank you.

  • @EmileDeWilde
    @EmileDeWilde Год назад +1

    Bro, feeling the video, I just appreciate your effort in all this, keep a look out for ...

    • @MarkShust
      @MarkShust  Год назад

      Appreciate it Emile, will have many more videos on the way soon 👍

  • @hallarshaikh7647
    @hallarshaikh7647 4 месяца назад

    Hi mark,
    i am facing this issue in my container logs,
    [Error] APM: Locking APM for 300 seconds for reason: Cannot connect to the agent"
    can you please guide?

    • @MarkShust
      @MarkShust  4 месяца назад

      Hi Hallar, I'm sorry I have not had this issue, but it was reported in the past. Please see github.com/markshust/docker-magento/issues/700 and follow up with any additional info that would help us resolve this unique error. Thanks! -M

  • @brunorigo
    @brunorigo 6 месяцев назад +1

    Hi, I have a question, Im trying to have a very energy efficient server. and trying to move to an ARM64 Cluster, Is it possible to install magento safely or not yet?

    • @MarkShust
      @MarkShust  6 месяцев назад +1

      Hey Bruno -- yes, this should be no problem at all. My Docker images are built for dual-compatibility for both Intel and Mac ARM chips, and Magento runs completely fine without any issues. -Mark

  • @zakidev
    @zakidev Год назад +1

    Hello Mark, i hope you are doing fine. I get the following message after trying to login to admin page: "You need to configure Two-Factor Authorization in order to proceed to your store's admin area
    An E-mail was sent to you with further instructions" How can i change the credentials? I really appreciate your help.

    • @MarkShust
      @MarkShust  Год назад +1

      Hi Zaki, that's because 2FA is enabled by default in all Magento 2 installs. So, you'll need to either setup 2FA with your phone or authenticator app, or install my "disable 2FA" module! github.com/markshust/magento2-module-disabletwofactorauth -- this was such a common annoyance of mine that I made a module to automatically disable it if you are in developer mode.

    • @zakidev
      @zakidev Год назад

      Hi Mark, thank you for your support :)
      I already solved the issue by running the php bin/magento module:disable Magento_TwoFactorAuth command. @@MarkShust

  • @thisbridgehascables
    @thisbridgehascables Год назад

    How does this handle database changes? Also created another user through the command line and not receiving the email for the 2FA.

    • @MarkShust
      @MarkShust  Год назад

      Database changes work exactly the same as any other Magento install. Email is handled by a container, and you can access it by going to magento.test:1080. You can also disable 2FA for development using github.com/markshust/magento2-module-disabletwofactorauth

    • @thisbridgehascables
      @thisbridgehascables Год назад +1

      Yeah, I figured out the email thing. What I meant in regards to the database was, I added a new user and it was still there when I docker compose down and started it back. In my limited experience with docker the database is mostly reverted back missing the changes. Curious to know how you handled this.

    • @MarkShust
      @MarkShust  Год назад

      since MySQL is a persistent database, it should be stored and retained on the filesystem. You simply need to assign a volume to the container, and the data will persist reboots. This is what I do with this setup. If you don’t assign a volume, data is isn’t persisted and you’ll typically get a fresh filesystem on every system reboot.

    • @thisbridgehascables
      @thisbridgehascables Год назад +1

      Okay, I look into. New to docker so learning as I go. Been developing Magento since version 1. I remember a year or so back I found your M Academy site, even with my years of experience in Magento 2.. I still love going through other developer course, great way to see how other people approach the concepts.

  • @zargamhusayn7206
    @zargamhusayn7206 Год назад

    What could be the reason why changes is not reflecting?

    • @MarkShust
      @MarkShust  Год назад

      Hi Zargam, not exactly sure what changes those are, but I’d recommend opening up a new discussion on GitHub.

  • @timjones3128
    @timjones3128 6 месяцев назад

    Can this be used with a windows based system?

    • @MarkShust
      @MarkShust  6 месяцев назад

      It's not "officially" supported, but many are using this exact setup on WSL2. I don't have it documented anyplace, but there is a lot of useful info about this over at github.com/markshust/docker-magento/discussions/372

  • @MeetKothari-r2o
    @MeetKothari-r2o 11 месяцев назад

    Everything is going smoothly for me, I need help on one thing, my application is also running on the same port can we change 6379 port of redis, so that my application dont give me any error, i cant change the the port of my application due to some client requirement

    • @MarkShust
      @MarkShust  11 месяцев назад +1

      Yes, you have the ability to edit the compose.yaml file after the installation. This includes modifying the ports as well. You can set something like "63790:6379" in the compose.yaml for Redis, which would expose the 6379 port on the container to 63790 on the host. Also, this environment is meant for development, so it should be of no concern to your client as to how or what ports you run Magento on for development.

  • @АнтонАнтонов-д2в
    @АнтонАнтонов-д2в 11 месяцев назад

    Is it possible to use this with PHP 7.4?
    in your repositories the directory with PHP 7.4 has been deleted

    • @MarkShust
      @MarkShust  11 месяцев назад

      Yes, while PHP 7 has been deprecated and is EOL, the last tagged versions can still be used and downloaded from Docker Hub.

  • @raulalbuquerque1278
    @raulalbuquerque1278 Год назад +1

    Hey Mark! Great video, but there's no support to access keys. I Keep getting HTTP/2 403 when the script tries to download it

    • @MarkShust
      @MarkShust  Год назад

      Hi Raul, this uses the composer auth.json from your local host machine (or the info from auth.json in your sec/ directory if it’s present and linked up in the dev YAML file). So I would recommend to check the contents of your ~/.composer/auth.json to see if your Magento creds are setup there first.

    • @alexis-ibarra-hstash
      @alexis-ibarra-hstash Год назад

      @@MarkShust Hi mark I just to checked it up but it says No such file or directory, What would you recommend me? thank you
      your video is incredible

    • @MarkShust
      @MarkShust  Год назад

      @@alexis-ibarra-hstashit's hard for me to say without seeing it, however I'd recommend blowing everything away (instructions at github.com/markshust/docker-magento#misc-info) and trying a fresh install of docker-magento.

    • @alexis-ibarra-hstash
      @alexis-ibarra-hstash Год назад

      Thank you, I wanted to refer to when I put the @MarkShust ~/.composer/auth.json in the command line and it said No such file or directory, then I created this folder and copy this file from /home/alexis/.config/composer/auth.json to /home/alexis/.composer/auth.json @@MarkShust

    • @alexis-ibarra-hstash
      @alexis-ibarra-hstash Год назад

      and now it is founded but it still doesn't work when i put bin/magento sampledata:deploy

  • @mattew862
    @mattew862 7 месяцев назад +1

    Thank you, Mark, for the simplicity of installing Magento. You're a boss !! However, I have a seemingly simple issue. On the admin page, I don't know which username and password to use. I am a complete amateur with Magento and have been struggling for hours. Thank you for your response.

    • @MarkShust
      @MarkShust  7 месяцев назад +1

      Thanks 😊 The admin creds are in the env/magento.env file. Note that I have a full course available on this and many more things at m.academy/courses/set-up-magento-2-development-environment-docker/. You can also install my DisableTwoFactorAuth module on GitHub at github.com/markshust/magento2-module-disabletwofactorauth which automatically disables 2FA when developer mode is activated.

    • @mattew862
      @mattew862 7 месяцев назад

      @@MarkShust Thank you, Mark, for your quick response! I entered the credentials from the db.env file, but I think they correspond to MySQL. However, I inserted the credentials from the magento.env file (your credentials). It asks for two-factor authentication 😭. Thank you for the link, I will check it out!

    • @MarkShust
      @MarkShust  7 месяцев назад +1

      @@mattew862 ah sorry about that! I meant to say to use the env/magento.env file. 2FA is required for Magento and you'd need to set that up... or use my trusty DisableTwoFactorAuth module that I made just for this reason! It auto-disables 2FA when developer mode is enabled. You can get it on GitHub at github.com/markshust/magento2-module-disabletwofactorauth

    • @mattew862
      @mattew862 7 месяцев назад

      @@MarkShust I used your link. It installed correctly. The problem persists. I went through all the steps. Everything works. But I still can't log in to the dashboard. I changed the username, password. Same result. I'm close to giving up. Thank you for your advice. I wouldn't want to clutter the comment space.

    • @MarkShust
      @MarkShust  7 месяцев назад

      @@mattew862 I have a feeling that you are not prefacing your composer command with "bin/". So rather than typing "composer", type "bin/composer". This ensures that composer executes within the docker container and installs the code in the correct location. If you instead run Composer locally, it will only install in a local directory. See my course -- it fully covers this and much more! I've installed Magento hundreds of times on new computers, and it works every time.

  • @selnb12
    @selnb12 2 месяца назад +1

    Hey guys how to get a composer public and private keys

    • @MarkShust
      @MarkShust  2 месяца назад +1

      I have a lesson for doing exactly that! See courses.m.academy/courses/487758/lectures/8974570

  • @TerenceKearns
    @TerenceKearns Год назад

    Your sign up page sends me into a redirection loop which the browser quits out of.

    • @MarkShust
      @MarkShust  Год назад

      Hi Terence, I’m sorry to hear that! You can try this direct link which may work better for you: m.academy/library/enroll

  • @phanminhphong5722
    @phanminhphong5722 Год назад

    I got the error
    "service "phpfpm" is not running"
    How can i fix this ?
    sorry for my bad English

    • @MarkShust
      @MarkShust  Год назад +1

      It could be a number of reasons. Feel free to create a new discussion thread about this on GitHub at github.com/markshust/docker-magento/discussions

  • @trithucnguyen2329
    @trithucnguyen2329 Год назад +1

    thank you very much, can you make a tutorial video for frontend developer?

    • @MarkShust
      @MarkShust  Год назад

      I’ll see what I can do. What exactly in the Magento frontend would you like me to cover? There are 50+ topics for me to choose from 😄

    • @tajazc
      @tajazc Год назад +1

      ​@@MarkShust How to incorporate blocks of content, banners and elements created by for example mkt team into our theme, also how to create a theme from the beginning or modify as needed the one that marketing picks. Hope i made sense lol. Thank you!

    • @MarkShust
      @MarkShust  Год назад +1

      @@tajazc thanks for the suggestion! I did just recently make a course on Magento 2 theming essentials, info on that is at m.academy/courses/magento-2-power-theming/
      I'll consider making some additional content for incorporating designs created from a team as your suggested content, banners, etc., as that's a great real-life scenario that we do all the time 👍

    • @tajazc
      @tajazc Год назад

      @@MarkShust Hi again. Quick question tho. Ecommerce store in my local mac is working great! Again thank you for the solution! The only thing is that i do not see the folders inside the vendor folder. I have been reading and people say to run composer install? But i am not sure if that would mess up the setup i already have going on/working. Thank you!!! Any input will be super appreciated.

  • @josealvarezcabrera561
    @josealvarezcabrera561 Год назад

    I am getting "service `phpfpm" is not running`

    • @MarkShust
      @MarkShust  Год назад

      Hi Jose, it's possible that you have something else running on port 9000. If running bin/status doesn't show the phpfpm container running (as will be the case with the error message you are receiving), you'll need to further diagnose why this container is failing to start.

  • @tajazc
    @tajazc Год назад +1

    @MarkShust Hi!!! Hope you're doing great! Quick question how can i access the magento db or phpmyadmin? i saw that docker has a service running and it points to localhost:8080:80 but it is not working. Any thoughts? Thank you so much!!!

    • @MarkShust
      @MarkShust  Год назад

      Inside the Docker container, it will be accessible at the "db" host because that's how the MySQL service is set up in the compose.yaml file. But outside of the container, the db will be accessible by localhost:3306, as the port is also bound back to the host in that same file.

  • @raviramcharan3812
    @raviramcharan3812 6 месяцев назад

    I get this error when running the curl command: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:80 -> 0.0.0.0:0: listen tcp 0.0.0.0:80: bind: address already in use

    • @MarkShust
      @MarkShust  6 месяцев назад +1

      Hi Ravi -- sounds like you have another service running locally (either Apache, Nginx, MAMP, etc.), so you'll need to stop that service in order to run docker-magento due to the way host-bind mounts work with Docker.

  • @allenbalbido1049
    @allenbalbido1049 Год назад

    how much disk space will it take ?

    • @MarkShust
      @MarkShust  Год назад +1

      About 2.5GB, as that is the total of all of the Docker images downloaded in this setup. You can confirm this by running "docker images" from the CLI after installation.

    • @allenbalbido1049
      @allenbalbido1049 Год назад

      @@MarkShust hello do u have tutorial for those who still uses magento 1.9 ?

  • @MageDigest-c1z
    @MageDigest-c1z 10 месяцев назад

    Running WSL on windows. Installation stops and gives this error - There must be at least 6GB of RAM allocated to Docker in order to continue. I already created .wslconfig file and given 6GB but still it gives the error. plz help.

    • @MarkShust
      @MarkShust  10 месяцев назад

      Try increasing it a tad more... there's a level of variance, even another 250MB may be enough 👍

    • @MageDigest-c1z
      @MageDigest-c1z 10 месяцев назад

      @@MarkShust given 8GB but still same error.
      .wslconfig file contents below - (anything i am doing wrong ?)
      [wsl2]
      memory=8GB

    • @MarkShust
      @MarkShust  10 месяцев назад +1

      @@MageDigest-c1zSorry, I don't know as I don't use WSL2. You can see the thread at github.com/markshust/docker-magento/discussions/372 or chime in and perhaps someone can help you up there.

    • @MageDigest-c1z
      @MageDigest-c1z 10 месяцев назад

      @@MarkShust sure thanks

  • @darrenplayer2091
    @darrenplayer2091 Год назад

    Hi Mark, can you confirm if this is for a Mac OS environment running docker? I've tried setting up Magento 2 locally with Windows before using Linux subsystem, but it was running very slow and impossible to use so looking to either use my Macbook now or directly on Linux system thanks

    • @MarkShust
      @MarkShust  Год назад

      Yes, this video is for macOS. I find Windows + WSL confusing and always recommend macOS over Windows (sorry for starting a platform battle here, but those are my thoughts).

    • @darrenplayer2091
      @darrenplayer2091 Год назад +1

      Thanks for confirming@@MarkShust I completely agree with the windows subsystem. It's not the best in my experience either.

  • @Ethan-n2z
    @Ethan-n2z 6 месяцев назад

    Hi, Thank you for this tutorial, I can install Magento 2 successfully at the first time. But I can not make a change. When I edit a .phtml file, it does not reflect on the website. I'm sure that I edit on the right file (I enabled template hint). Also, I enable developer mode, and run some commands: bin/magento setup:static-content:deploy -f, bin/magento cache:flush. Can you help me with this. Thank you!

    • @MarkShust
      @MarkShust  6 месяцев назад

      Hi Ethan, great to hear that it installed quickly. Where exactly are you making the updates? If you are outside of app/design or app/code, the changes will not sync. It is purposely set up that way for performance reasons. You shouldn't need to run content deploy commands or anything like that to get your updates to reflect.

    • @Ethan-n2z
      @Ethan-n2z 6 месяцев назад +1

      @@MarkShust I tried to make changes directly inside vendor, but it doesn't sync. However, I figured a way to override it in app/code and it work fine now. Thank you!

    • @MarkShust
      @MarkShust  6 месяцев назад

      @@Ethan-n2z yes, that vendor directory isn't synced for performance reasons. I always recommend developing in the app directory, but if you do need to edit inside of vendor, you could always add the very specific directory (don't add the entire vendor directory) to the compose.dev.yaml file and then restart the containers. You could also use the bin/copytocontainer command to get your changes up in the vendor directory on the container.

    • @Ethan-n2z
      @Ethan-n2z 6 месяцев назад

      @@MarkShust thank you. That is much clearer

  • @fullgazz
    @fullgazz Год назад

    Has anyone figured out how to update components like nginx, mariadb? i tried to fork and set the new versions in the compose.yaml but seems that it mess with other settings.

    • @MarkShust
      @MarkShust  Год назад +1

      Hey there! I have a video on how to edit Nginx config files at courses.m.academy/courses/487758/lectures/9064349 -- if that doesn't help, please let me know. I could always add additional lessons to the course if needed.

    • @fullgazz
      @fullgazz Год назад +1

      @@MarkShust thanks Mark for leassons and great support.

    • @MarkShust
      @MarkShust  Год назад

      @@fullgazzsure thing!

    • @MarkShust
      @MarkShust  Год назад

      @@fullgazzsure thing, appreciate it!

    • @MarkShust
      @MarkShust  Год назад

      Sure thing @@fullgazz !

  • @DukeNuken2006
    @DukeNuken2006 6 месяцев назад

    Now during installation, it requires Public and Private Access Keys which can be created on Adobe website.

    • @MarkShust
      @MarkShust  6 месяцев назад

      Hey Duke, these keys have always been required for as long as I can remember. Info on how to set these keys up is at courses.m.academy/courses/487758/lectures/8974570

  • @logan.zw45
    @logan.zw45 Год назад

    Excuse me, I follow your step, but it didn't run.
    I wanna use version 2.4.5
    Because my local MySQL use port 3306 which is the same as MariaDB, so I changed the MariaDB to 3307.

    • @MarkShust
      @MarkShust  Год назад

      You'll need to disable all local services first to use this setup. If you change the ports, you'll also need to update the related config inside the Magento instance to account for the update. I usually don't recommend this as it just adds complexity, better to simply stop/start local services when needed instead.

  • @CarlosMedina-li8vq
    @CarlosMedina-li8vq Год назад

    When I run the script, I end up getting the following message:
    [ErrorException] otouch(): Unable to create file /var/www/.composer.json because Permission denied
    Does it happen to anyone else? how have you solved it? i tried with 2 virtual machines and ubuntu 22.04.02 LTS :(

    • @MarkShust
      @MarkShust  Год назад +1

      Hi Carlos, sounds like your composer is owned by the "root" user on your host. Composer should never be owned by root on your host machine, but rather your local username. You'll want to reset all of the ownerships of your local ~/.composer dir, which should resolve the issue.

  • @MathanKumar-i7r
    @MathanKumar-i7r 5 месяцев назад +1

    Give me step by step video

    • @MarkShust
      @MarkShust  4 месяца назад

      I have a completely free step-by-step course available at m.academy/courses/magento-2-development-environment-docker/

  • @hugodemont8468
    @hugodemont8468 Год назад +1

    Does it work on windows?

    • @MarkShust
      @MarkShust  Год назад +1

      Hi Hugo, I don’t officially support Windows yet, however many have ran it on Windows with WSL2. You can see the related GitHub Discussion at github.com/markshust/docker-magento/discussions/372

  • @ramim.5856
    @ramim.5856 Год назад

    Doesn't work for me on windows I even installed ubuntu ..etc just more and more of issues!

    • @MarkShust
      @MarkShust  Год назад +2

      Unfortunately Docker support on Windows isn’t that good. It’s a bit of a Frankenstein app with WSL2. I’m looking out for alternative options and may have something soon.

  • @janakadesilva4950
    @janakadesilva4950 Год назад +1

    Thanks, You can avoid giving alias to original magento commands. new comers might get issues when they try to fix a issue by themself. typical dev will not spend time explain alias and docker coz they also might not know

    • @MarkShust
      @MarkShust  Год назад +1

      Yes, I don't recommend aliasing the original Magento commands. Simply aliasing "m" to "bin/magento" is usually enough for me!

  • @khemrajregmi5825
    @khemrajregmi5825 Год назад

    Anyone facing the problem with M2 chip states that "chmod: cannot access 'bin/magento': No such file or directory"?? and thanks alot Mark you save all of us time cheers

    • @MarkShust
      @MarkShust  Год назад

      Glad I saved you some time! It sounds like your install failed, so I’d attempt to reinstall it again and note if/when you get an error message during the install.

    • @MEHARSWAROOPPINNAMARAJU
      @MEHARSWAROOPPINNAMARAJU Год назад

      @@MarkShust Having The same issue stated above "chmod: cannot access 'bin/magento': No such file or directory". Any quick fix for this? BTW thanks for saving our time :)

  • @alimertylmaz2804
    @alimertylmaz2804 9 месяцев назад

    I guess it just didn't work for me...

    • @MarkShust
      @MarkShust  9 месяцев назад

      Feel free to create a new Discussion on GitHub and myself or someone else will help you resolve your issue 😊

  • @MageDigest-c1z
    @MageDigest-c1z 10 месяцев назад

    star comment

    • @MarkShust
      @MarkShust  10 месяцев назад +1

      I'm not sure what this means or what you'd like me to do here 😅

  • @cruxwire
    @cruxwire Год назад

    you skipped many things in this tutorial

    • @MarkShust
      @MarkShust  Год назад

      I did - it’s only 5 min long!

  • @waytospergtherebro
    @waytospergtherebro Год назад

    If you can't manage PHP dependencies then you should probably consider a different profession.

    • @MarkShust
      @MarkShust  Год назад +2

      Magento has many PHP dependencies, it's not a matter of "if", it's a matter of "don't want to".

  • @CidHerp
    @CidHerp Год назад +1

    how do i setup the /.composer/auth.jason?

    • @MarkShust
      @MarkShust  Год назад

      Great question Cid. I made a video that covers how to setup an auth.json file with Magento creds, and you can watch it at courses.m.academy/courses/487758/lectures/8974570

  • @gerwinbronsvoort9071
    @gerwinbronsvoort9071 5 месяцев назад

    Hi Mark, Unbelievable job of yours , great! I get this error, what can i do? I am a real beginner. WSL (10) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
    WSL (10) ERROR: CreateProcessEntryCommon:508: Create process not expected to return

    • @MarkShust
      @MarkShust  4 месяца назад

      Hey Gerwin, thanks! There isn't official WSL support which is probably why 😅. However, many are running this setup with WSL2 and I'd recommend checking out the discussion on GitHub at github.com/markshust/docker-magento/discussions/372 for more info related to this setup. I don't run Windows, so I'm sorry that I won't be much help here. Hope this helps! -M

  • @РоманБелов-н1ю
    @РоманБелов-н1ю 5 месяцев назад

    Not works for me completely (MacbookProM1). Anything I do caused an error "directory index of "/etc/nginx/html/" is forbidden". Tried to google it, tried a million solutions from the web, but nothing worked as expected, have the same error. Mark, do you have any solution how to fix it?

    • @MarkShust
      @MarkShust  5 месяцев назад

      Are you using docker-magento or another Docker-based Magento dev env? My setup doesn't use or depend on the /etc/nginx/html directory at all (the root is /var/www/html), so this is the first time I've ever heard of this. I've used a MBP M1 with this setup for the last few years without any issues. In any case, you can completely remove your setup and try again using the instructions at github.com/markshust/docker-magento?tab=readme-ov-file#misc-info. Also ensure your Docker Desktop file permissions weren't changed around, and that the root of your site is located within your Mac user home directory and not some rando location. Hopefully one of these tips helps!

  • @addcodeby
    @addcodeby 11 месяцев назад

    I installed the Ubuntu server, installed Docker, the installation was successful, the containers started, and it gave me the error:
    "Creating a "magento/project-community-edition=2.4.6-p3" project at "./"
    In CreateProjectCommand.php line 371: Project directory "/var/www/html/." is not empty."
    I don’t have such a directory, I tried to create it, but the error remains. Can you tell me which direction to go to solve the problem?

    • @АнтонАнтонов-д2в
      @АнтонАнтонов-д2в 11 месяцев назад +1

      I found a solution, deleted everything and ran the script again, but now from the root folder and everything worked

    • @MarkShust
      @MarkShust  11 месяцев назад

      Great, glad you figured it out! This is also documented in the README.

  • @sachinbansode4461
    @sachinbansode4461 11 месяцев назад

    while installing 2.4.6
    Warning: file_put_contents(C: \xampp \htdocs \eagento2 \var\cache\ leage-tags\mage---Ca3_REFLECTION) : Falled to open strean: Resource temporarily unavailable in C:\amp p\htdocs \magento2\vendor\colinmollenhour\cache-backend-file\File.php on line 710

    • @MarkShust
      @MarkShust  11 месяцев назад

      Looks like you may be out of memory/RAM.