If you're interested in a rock-solid dev environment for Magento 2, check out docker-magento. I've been maintaining it for over 7 years now! github.com/markshust/docker-magento
Can you please offer a video showing the setup of docker-magento in windows wsl setup. The info is so vague and limited. I believe a lot of people would benefit and start adopting the docker magento dev environment.
Hi Alex, I haven't made any of this yet because I don't run Windows. I do have a spare laptop to test this out, but currently lack the time. There is a gold mine of great info about running docker-magento on WSL2 at github.com/markshust/docker-magento/discussions/372 though which could be incredibly helpful to you.
Thanks! Yea, I've done some tweaking to PhpStorm, mainly to make things clean and look nice in my screencasts. There's too much to list here (maybe one day I'll make a video about it), but it's basically Material Theme UI (plugins.jetbrains.com/plugin/8006-material-theme-ui) along with a lot of menu hide tricks. Less is more.
Hey Mark, do you know any utility that I can use to verify that all of my permissions and ownerships are setup correctly? I feel like I'm constantly running into issues due to incorrect permissions. Thanks!
I don't, but typically the ownerships/permissions are "set it and forget it". The typical setup for ownerships is to have a "magento" uid/guid, then assign that user to the www-data group, or whatever group owns your web server config. Once that's set, you should never have issues with owns. As far as permissions, I typically set all directories to 775 (read/write for group & user owner, and read/execute for non-users), then 644 to files. Be sure that's also the default in your linux server as well for any new folders/files. More info on this is available at experienceleague.adobe.com/docs/commerce-operations/installation-guide/prerequisites/file-system/configure-permissions.html
@@MarkShust Ok thanks for the info. I'm not sure if it's related, but often times when I enable a new extensions and run the typical commands (cache:clear, setup:upgrade, setup:di:compile, static-content:deploy) , I get errors saying "Class [some class name from the new extension] does not exist". Any pointers on how I can diagnose this recurring problem?
@@dry-bones because installing new maodule or compiling, new files are generated in the server and we have to update the permissions for newly created files, Also we can use a small shell scripts that can help us setting the permissions. Cheers
@@saadsaif97 whatever deployment script or cronjob that executes these Magento scripts needs to also be owned or executed by the "magento" user. If you run them as root, it'll default back to being created by that user, and you'll consistently have issues in the future.
@@saadsaif97 Thanks for the info, would you be able to share an example of a script to set the permissions? I've been pulling my hair over this for the past few days and I can't figure out what the problem is.
If you're interested in a rock-solid dev environment for Magento 2, check out docker-magento. I've been maintaining it for over 7 years now! github.com/markshust/docker-magento
Happy you like the cache-clean watcher, and thank you for the shout-out! :)
Sure thing Vinai, Magento development would be super painful without it! Really appreciate this tool ❤️
Good Job Man as usual.Thank you very much for your efforts.
Thanks so much Mohamed, glad you found it useful 👍
Hey Mark,
As a former M2 developer, I can see the size of effort that you’re putting to make these awesome videos! 🎉
Great job man! 👏
Thanks, really glad you like them! If you want to see something specific just lmk 😄
Good Job Man as usual.Thank you very much for your efforts.🥰
🙏
Can you please offer a video showing the setup of docker-magento in windows wsl setup. The info is so vague and limited. I believe a lot of people would benefit and start adopting the docker magento dev environment.
Hi Alex, I haven't made any of this yet because I don't run Windows. I do have a spare laptop to test this out, but currently lack the time. There is a gold mine of great info about running docker-magento on WSL2 at github.com/markshust/docker-magento/discussions/372 though which could be incredibly helpful to you.
Thanks, very informative.
Glad it was helpful!
Hi Mark!
Amazing video!!
Quick question, what theme, or how can I turn my PHPStorm appearance as slick as yours?
Best regards mate!
Thanks! Yea, I've done some tweaking to PhpStorm, mainly to make things clean and look nice in my screencasts. There's too much to list here (maybe one day I'll make a video about it), but it's basically Material Theme UI (plugins.jetbrains.com/plugin/8006-material-theme-ui) along with a lot of menu hide tricks. Less is more.
@@MarkShust thank you very much! Yes I would be interested to see that video 😁 keep up the great work!
Best regards Mark
So cool video and tools
Thanks Abdul 👍
Thanks!
Sure thing 🤓 Glad you found it helpful!
Hey Mark, do you know any utility that I can use to verify that all of my permissions and ownerships are setup correctly? I feel like I'm constantly running into issues due to incorrect permissions.
Thanks!
I don't, but typically the ownerships/permissions are "set it and forget it". The typical setup for ownerships is to have a "magento" uid/guid, then assign that user to the www-data group, or whatever group owns your web server config. Once that's set, you should never have issues with owns. As far as permissions, I typically set all directories to 775 (read/write for group & user owner, and read/execute for non-users), then 644 to files. Be sure that's also the default in your linux server as well for any new folders/files. More info on this is available at experienceleague.adobe.com/docs/commerce-operations/installation-guide/prerequisites/file-system/configure-permissions.html
@@MarkShust Ok thanks for the info. I'm not sure if it's related, but often times when I enable a new extensions and run the typical commands (cache:clear, setup:upgrade, setup:di:compile, static-content:deploy) , I get errors saying "Class [some class name from the new extension] does not exist". Any pointers on how I can diagnose this recurring problem?
@@dry-bones because installing new maodule or compiling, new files are generated in the server and we have to update the permissions for newly created files,
Also we can use a small shell scripts that can help us setting the permissions.
Cheers
@@saadsaif97 whatever deployment script or cronjob that executes these Magento scripts needs to also be owned or executed by the "magento" user. If you run them as root, it'll default back to being created by that user, and you'll consistently have issues in the future.
@@saadsaif97 Thanks for the info, would you be able to share an example of a script to set the permissions? I've been pulling my hair over this for the past few days and I can't figure out what the problem is.
Gracias
De nada. If you know of any other dev tools that you find useful, lmk 👍
Great
Glad you liked it! Let me know if you come across any other cool dev tools for M2.