Can You REALLY Install Magento 2 in 5 Minutes?

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024

ความคิดเห็น • 197

  • @lc.uclakers
    @lc.uclakers 2 หลายเดือนก่อน +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  2 หลายเดือนก่อน

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

  • @ldcb6408
    @ldcb6408 6 หลายเดือนก่อน +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  6 หลายเดือนก่อน

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

  • @racheladnyana866
    @racheladnyana866 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน

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

  • @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

    • @MarkShust
      @MarkShust  ปีที่แล้ว

      Great to hear! 🙌

  • @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.

  • @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 👍

  • @guardian_6930
    @guardian_6930 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน

      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.

  • @MatthiasJaekle
    @MatthiasJaekle หลายเดือนก่อน

    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  หลายเดือนก่อน

      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

  • @zakidev
    @zakidev 10 หลายเดือนก่อน +1

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

    • @MarkShust
      @MarkShust  10 หลายเดือนก่อน

      Sure thing, glad it was helpful to you!

  • @DukeNuken2006
    @DukeNuken2006 2 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  2 หลายเดือนก่อน

      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

  • @hallarshaikh7647
    @hallarshaikh7647 10 วันที่ผ่านมา

    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  9 วันที่ผ่านมา

      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 หลายเดือนก่อน +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  หลายเดือนก่อน +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

  • @user-ij7be9bu1f
    @user-ij7be9bu1f 7 หลายเดือนก่อน +3

    How to install ssl let's encrypt certificate ?

    • @MarkShust
      @MarkShust  7 หลายเดือนก่อน

      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.

  • @mingjieliu-zn1qj
    @mingjieliu-zn1qj 2 หลายเดือนก่อน +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  2 หลายเดือนก่อน

      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.

  • @worldwidelibra
    @worldwidelibra 7 หลายเดือนก่อน +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  7 หลายเดือนก่อน

      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.

  • @mattew862
    @mattew862 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน +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 3 หลายเดือนก่อน

      @@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  3 หลายเดือนก่อน +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 3 หลายเดือนก่อน

      @@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  3 หลายเดือนก่อน

      @@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.

  • @raviramcharan3812
    @raviramcharan3812 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน +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.

  • @umairtahir2
    @umairtahir2 3 หลายเดือนก่อน +1

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

    • @MarkShust
      @MarkShust  3 หลายเดือนก่อน +1

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

  • @huongong7690
    @huongong7690 4 หลายเดือนก่อน +1

    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  4 หลายเดือนก่อน

      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.

  • @randompersonontheinternet4790
    @randompersonontheinternet4790 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน +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 3 หลายเดือนก่อน +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!!!

  • @alcymn
    @alcymn 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน +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

  • @pslamba
    @pslamba 3 หลายเดือนก่อน +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  3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

      @@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  3 หลายเดือนก่อน

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

  • @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.

  • @Ethan-n2z
    @Ethan-n2z 9 วันที่ผ่านมา

    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  9 วันที่ผ่านมา

      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 9 วันที่ผ่านมา

      @@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  9 วันที่ผ่านมา

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

    • @Ethan-n2z
      @Ethan-n2z 9 วันที่ผ่านมา

      @@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  9 วันที่ผ่านมา

      @@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.

  • @gerwinbronsvoort9071
    @gerwinbronsvoort9071 20 วันที่ผ่านมา

    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  9 วันที่ผ่านมา

      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

  • @janakadesilva4950
    @janakadesilva4950 10 หลายเดือนก่อน +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  10 หลายเดือนก่อน +1

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

  • @cupofjava9843
    @cupofjava9843 4 หลายเดือนก่อน +1

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

    • @MarkShust
      @MarkShust  4 หลายเดือนก่อน

      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.

  • @Waqqasabdullah
    @Waqqasabdullah 9 หลายเดือนก่อน +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  9 หลายเดือนก่อน +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.

  • @user-od4be2fm8d
    @user-od4be2fm8d 6 หลายเดือนก่อน +1

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

    • @MarkShust
      @MarkShust  6 หลายเดือนก่อน +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.

  • @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

  • @SportEmpire
    @SportEmpire 5 หลายเดือนก่อน +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  5 หลายเดือนก่อน +1

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

    • @SportEmpire
      @SportEmpire 5 หลายเดือนก่อน

      @@MarkShust thank you.

  • @Ethan-n2z
    @Ethan-n2z หลายเดือนก่อน

    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  หลายเดือนก่อน

      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 หลายเดือนก่อน +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  หลายเดือนก่อน

      @@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 หลายเดือนก่อน

      @@MarkShust thank you. That is much clearer

  • @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.

  • @user-od4be2fm8d
    @user-od4be2fm8d 6 หลายเดือนก่อน

    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  6 หลายเดือนก่อน +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.

  • @thiagofelizola
    @thiagofelizola 7 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  7 หลายเดือนก่อน

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

  • @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 :)

  • @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.

  • @zakidev
    @zakidev 10 หลายเดือนก่อน +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  10 หลายเดือนก่อน +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 10 หลายเดือนก่อน

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

  • @zargamhusayn7206
    @zargamhusayn7206 8 หลายเดือนก่อน

    What could be the reason why changes is not reflecting?

    • @MarkShust
      @MarkShust  8 หลายเดือนก่อน

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

  • @WolfszeitYT
    @WolfszeitYT 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  9 หลายเดือนก่อน

      @@WolfszeitYTsorry I don’t do Windows 😮

  • @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.

  • @timjones3128
    @timjones3128 2 หลายเดือนก่อน

    Can this be used with a windows based system?

    • @MarkShust
      @MarkShust  2 หลายเดือนก่อน

      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

  • @phanminhphong5722
    @phanminhphong5722 9 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  9 หลายเดือนก่อน +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

  • @user-of7me2ex3y
    @user-of7me2ex3y 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

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

    • @user-of7me2ex3y
      @user-of7me2ex3y 5 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  5 หลายเดือนก่อน +1

      @@user-of7me2ex3ySorry, 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.

    • @user-of7me2ex3y
      @user-of7me2ex3y 5 หลายเดือนก่อน

      @@MarkShust sure thanks

  • @user-ez9qt9tn6u
    @user-ez9qt9tn6u หลายเดือนก่อน

    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  29 วันที่ผ่านมา

      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!

  • @MayurSolanki-nm1zz
    @MayurSolanki-nm1zz 4 หลายเดือนก่อน

    please help me to set custom log file in current magento docker because facing lots of issue related to file permission

    • @MarkShust
      @MarkShust  4 หลายเดือนก่อน

      It’s no different from creating a custom log file in a non-docker-magento project.

    • @TechnoTecture
      @TechnoTecture 4 หลายเดือนก่อน

      Suggest me any genuine link to set custom log file which can definitely works with magento setups with docker using your m2 docker

    • @TechnoTecture
      @TechnoTecture 4 หลายเดือนก่อน

      @@MarkShust
      Suggest me any genuine link to set custom log file which can definitely works with magento setups with docker using your m2 docker

  • @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.

  • @user-ij7be9bu1f
    @user-ij7be9bu1f 7 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  7 หลายเดือนก่อน

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

  • @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 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน +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 11 หลายเดือนก่อน

      @@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  10 หลายเดือนก่อน

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

  • @darrenplayer2091
    @darrenplayer2091 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน

      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 10 หลายเดือนก่อน +1

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

  • @thisbridgehascables
    @thisbridgehascables 8 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  8 หลายเดือนก่อน

      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 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน

      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 8 หลายเดือนก่อน +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.

  • @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

  • @josealvarezcabrera561
    @josealvarezcabrera561 ปีที่แล้ว

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

    • @MarkShust
      @MarkShust  11 หลายเดือนก่อน

      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.

  • @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

  • @fullgazz
    @fullgazz 10 หลายเดือนก่อน

    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  10 หลายเดือนก่อน +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 10 หลายเดือนก่อน +1

      @@MarkShust thanks Mark for leassons and great support.

    • @MarkShust
      @MarkShust  10 หลายเดือนก่อน

      @@fullgazzsure thing!

    • @MarkShust
      @MarkShust  10 หลายเดือนก่อน

      @@fullgazzsure thing, appreciate it!

    • @MarkShust
      @MarkShust  10 หลายเดือนก่อน

      Sure thing @@fullgazz !

  • @user-dw9ps1kc2y
    @user-dw9ps1kc2y 18 วันที่ผ่านมา +1

    Give me step by step video

    • @MarkShust
      @MarkShust  9 วันที่ผ่านมา

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

  • @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.

  • @alimertylmaz2804
    @alimertylmaz2804 5 หลายเดือนก่อน

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

    • @MarkShust
      @MarkShust  5 หลายเดือนก่อน

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

  • @addcodeby
    @addcodeby 7 หลายเดือนก่อน

    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?

    • @user-ij7be9bu1f
      @user-ij7be9bu1f 7 หลายเดือนก่อน +1

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

    • @MarkShust
      @MarkShust  7 หลายเดือนก่อน

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

  • @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 ?

  • @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

  • @user-of7me2ex3y
    @user-of7me2ex3y 6 หลายเดือนก่อน

    star comment

    • @MarkShust
      @MarkShust  6 หลายเดือนก่อน +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

  • @sachinbansode4461
    @sachinbansode4461 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      Looks like you may be out of memory/RAM.