You literally saved me. I've been searching the whole INTERNET to found the proper step hierarchy for installing Magento 2 and I couldn't find anything till I saw your video! I can't thank you enough! Cheers!
I have next to no experience in this area and was lost when my dad asked me to do this for his business! Works perfectly, I couldn't ask for a clearer and well thought out instruction guide. Thanks!!
Great video. I couldn't have done it without you. Thanks! For everyone else, if you get the dreaded "internal server error," it's probably a missing Apache module. For me, it was mod_version. If you have Apache configured to log errors, you will find your answer in the error log. And also, document root is now the magento/pub folder. You'll have to change that in the vhost file. It's best to do that with rewrite rules, rather than changing the actual document root, unless you don't have anything else in your public_html that you need to still work.
Hey Craig, you are wonderful, perfect and super a person.. Thanks for your video.. Everything is step by step and sure article.. You are crazy a man :)) Bravo for patient!
Supa video! And pretty well explained Just wanted to add that you can disable TwoFactor authentication, if you don't need it. Once you installed Magento it can be disabled using following command: php bin\magento module:disable -c Magento_TwoFactorAuth As most of the time it's not needed especially on development stage
Thanks so much for this. Avery complicated process very well explained. Interested to know what app you use to display the different screens in your tutorial?
Great video. Some tips, especially for those with Elasticsearch not staying running ("no running live nodes" and such)... 1) Do NOT set memory_limit = [max available system memory] in the php.ini. 2) if you are doing mysql secure install, before installing PHPMyAdmin do the following... sudo mysql ...then without deleting any apostrophes... CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOURPASSWORDHERE'; ... then... exit ... and then run the install for PHPMyAdmin. Avoids loads of headaches. 3) you're going to want to edit sudo nano /etc/php/7.4/cli/php.ini to not have "memory_limit = -1" Hope that helps someone. I am horrible at coding and literally everything I know I learned from these vids and others like it so don't take what I say as a perfect solution. But it took me many hours to track down why OoM Killer was putting a bullet in the back of Elasticsearch's head every single time Magento/Composer did literally anything, UFF! Still have to restart after doing anything major, but stays running otherwise now so... *shrug*
Degraded composer to 1.10.16 but still facing the below error - Problem 1 - Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0]. - magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 2 - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0]. - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 3 - laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint. - magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4]. - Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0]. You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2 Request to help on this.
Thank you so much for this Craig. Very insightful video so far. I'm trying to follow along, but it turns out most of the php extenstions cannot be found as at the date of me writing making this comment.
If you cannot log in to phpmyadmin, please pay attention to the steps. 2.2 Create a new user (Now it’s time to logout as the root user and reconnect with our new user.) 3.5 Install phpMyAdmin and secure the installation(Make sure that you select apache2 using your SPACE BAR before hitting ENTER to continue. ) Thanks Craig.
Super great tutorial, Very easy to understand just follow step by step. Thank you. I have some question to ask. How different between your step to install one by one and Install via DirectAdmin? Your way look more clean install. It's make our website faster? Thank you again.
Hi Craig. Thanks for the video. It is a really organised video with good tips. I am receiving this error when running bin/magento setup:upgrade Unable to apply data patch Magento\CatalogRuleSampleData\Setup\Patch\Data\InstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly. What could be the reason
Hi Craig, big thanks for your professional guidance, is it possible to create a script for one-key install on VPS? I saw GCP providing such kind unit directly install. but I don't want to use GCP for setup a Magento 2.x. Easy to setup will bring more user. Compare with OpenCart is a little bit difficult for a beginner. I am going to try to use BT install Magento from backend and management all features in the future.
This tutorial helps more to install magento 2.4 in AWS. But I have some storage issue. after few days the storage is full. How to prevent this? How the storage is full? which folder?
But you have not configured the Elastic search with Magento and the Postfix configuration still remains? Can you also please provide us tutorials for Varnish setup with Magento on Apache2 server?
Great tutorial! Perfect as always! Just aheads up I encounter. 1. PHPmyadmin didnt show up. I had to include - Include /etc/phpmyadmin/apache.conf - in the /etc/apache2/apache2.conf file. 2. PostFix was a complete nightmare. It never worked for me. I had to difuse the 2FA with - bin/magento module:disable Magento_TwoFactorAuth 3. I only had 2GBs of RAM, so I used a MKswab: sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB - and then: sudo chmod 600 /swapfile - and then include this: /swapfile swap swap sw 0 0 - In the /etc/fstab file and then: sudo sysctl vm.swappiness=10 and then: sudo sysctl vm.vfs_cache_pressure=50 and finally include this: vm.swappiness = 10 (enter) vm.vfs_cache_pressure = 50 in the /etc/sysctl.conf file. 4. When installing composer and you want to bring roll back the version, remember to use sudo. Thats all. Once again, thank you.
AWS Blocked the email going out and you have to apply to get that restriction removed. I did the following: Get the mails in the Queue by typing the following: sudo mailq which will return the emails it tried to send then you can use the sudo postcat -vq
Thank you, do you have the best, thanks to you I was able to finally install configure and magento 2.4 on a dedicated server; thank you thank you, but I do not receive email as expected in spam either
I have never experienced this issue. You could try adding Outbound Port Rules for 25, 465 and 587. I think those are all the SMTP ports for Postfix, but you’d want to double check.
Maybe you have a video where you show how to start with magento without the web server? I am renting a hosting provider and they also have their running server, so maybe i can just skip some of the steps or is there another video that would describe this?
Hi Craig, Another super video, I got as far as logging into Magento, but I never received an en email to authorise it. Iv'e checked my span for 2 days but nothing.
If it were working, you'd receive it instantly. This suggests that the Admin email was setup incorrectly or Postfix was mis-configured. I guess it's also possible that your email provider blocked the email as it would have come from an illegitimate address - But that never happened to me during all the testing, so that's just a guess.
many providers also block port 25 (snmp)-- you may need to contact the cloud provider. For example I contacted aws and they are asking for reasons-- there is alot of people creating spam I suppose. Will tell u how mine goes
when i am trying to install postfix .When I start the install process (sudo apt install mailutils -y) I get stuck at the following screen (package configuration) and The session becomes non-responsive, how to get past this hangup?
Hello whenever I copy paste the last command to Install Magento, instead of executing the command, putty adds a new line with ">" and nothing happens then. What can I do?
La instalación fue exitosa pero cuando se intenta hacer cambios en las configuraciones desde el panel de administración se cae el sitio y da error. ERR_EMPTY_RESPONSE
Hi Craig, thanks for your very useful video(s) :> I was using AWS EC2 host (instead of digital ocean), using ubuntu 18.04, and eventually had to use the 2VCPU, 4G ram (as you had mentioned ElasticSearch takes mem); Also order to install the sample content, I had to create additional swaps for linux (file swaps, outlined here: stackoverflow.com/questions/20667761/composer-killed-while-updating ) otherwise the process will be 'killed' due to insufficient memory; I was also unable to use the postfix to send out any email (it timed out connecting to my email provider on port 25), so instead had to 'look' into the postfix email itself, (on sudo) first by listing (mailq), and then getting the [mailid] and running postcat -vq [mailid] to get the inital mail for the authenticator. Otherwise, I have it running! Thanks again, if you do come to TH, please give me a buzz!
I am stuck in bin/magento, after putting the command it said "could not open input file: bin/magento", I am at the magento root directory, when do ls, just see the composer.json file. I also tried with php bin/magento but the result was same, any advise?
HI Craig, Thanks for the tutorial. I hit a snag however whilst installing magento with composer: Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0]. - magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 2 - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0]. - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 3 - laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint. - magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4]. - Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0]. You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2
using suggestion from @Imad Odat i run this command to downgrade to 1.90 and that worked for me to continue the installation sudo composer self-update 1.9.0
After find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chown -R :www-data . && chmod u+x bin/magento I get an error saying directory is not empty!
Hello, I really can't install magento 2.4 on a dedicated server, can you help me or do it for me please, I'm really stuck with all the tutorials but I can't
"Hey Craig! Hope you're doing well. Sorry to bother you here, but I was wondering if you could help me out with something. I was wondering if you have any plans to do a tutorial on how to set up Magento 2 on Cloudpanel using Oracle Cloud. Your expertise would be really valuable to me. Thanks in advance!"
am using ubuntu 16 and M2 2.3.5 and a bunch of extensions up and running. and mysql 5 i think. it would not be wise to upgrade if most of my extensions are not in the 2.4 version right? is it safe to install m 2.3 in ubuntu 20?
2.3 doesn't reach "end-of-life" until some point next year (28 May 2021 I think). So, you have time to start planning. But don't leave it too long or you'll stop getting security updates and bug fixes after this date.
Hi, Its very nice video and artical is informative too, I have following error while I am installing magento composer Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0]. - magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 2 - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0]. - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 3 - laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint. - magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4]. - Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0]. You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. magento@winimpex:/var/www/html$
Hi, thanks for your tutorial. That was really good. But i have problem when i try to login magento admin panel. They are not send me an email for further instructions. What should i do? I really need help. Thank you.
@@DigitalstartupUk I tried going back all the steps but got same error still. fresh install might help but not sure how to uninstall Apache2 and run the install again.
@@candacemoreau4224 @FolarTV Please, post your issue in the forum explaining your exact issue, including the command you're attempting to enter that displays this error.
I did all your steps but when I try to install Magento with composer, there is an error: Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0]. - magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 2 - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0]. - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. Problem 3 - laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint. - magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4]. - Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0]. You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. I searched information and there are people who say that is because of my PHP version, but I installed the same of u.. What can i do? Thank you very much!
@@imadodat I was able to re-install composer, now when I ran bin/magento setup:install \ - - base - url=http: ..... it gave me : Too many arguments, expected arguments "command". Please help.
No matter how hard I try, how many tutorials I watch or online guides I read I cannot for the LIFE OF ME get phpmyadmin set up correctly, EVER. It will NEVER let me log in with the password I have set and it does my absolute nut in.
Hi Craig, I started again from the very start.. this time the email from "owner@example.com" arrived in my gmail spam folder 6 hours later, I tried the link but I think it may have timed out because it redirected me to the Magento log in, so I tried to log in and up came the message about 2 step etc. so this time I received the email in my gmail spam folder within 10 minutes, so far so good. I then took a snapshot and tried to install the sample data, every thing went well until I ran the " bin/magento setup:upgrade" it completed the upgrade but at the end these was a RED note: "Could not validate a connection to Elasticsearch. No alive nodes found in your cluster" can you help? thanks you..
📣📣📣SM Market Magento 2 Theme Specific Layout (24 HomePages) - Updated Version 7.5.0 with New Features ✔️ This version was built based on new framework which includes many more new functions, more flexible, more better updates than current one. At the present, this version is available in Homepage 1 to Homepage 17 and promised to be updated in remaining Homepages in the future. ✔️ Sticky Add To Cart / Tabs - A floating bar on every product page that becomes visible either when customers start to scroll/swipe down or when customers scroll/swipe beyond the original Add To Cart button. The bar contains buttons “detail”, “more information”, “review”, “custom tab” and the Add to cart button so your customers can quickly add a product to the cart without going back up to the original Add To Cart button. 💥Purchase here: www.magentech.com/magento-on-themeforest/item/508-market-best-selling-magento-2-1-theme
everything was going smooth, but dont understand when reached at 35:38 timline of video - i am getting these erors.. nstalling magento/project-community-edition (2.4.0) - Downloading magento/project-community-edition (2.4.0) - Installing magento/project-community-edition (2.4.0): Extracting archive Created project in /var/www/html/. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> sa tisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0]. - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint. Problem 2 - laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 - > found composer-plugin-api[2.1.0] but it does not match the constraint. - magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4]. - Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by m agento/product-community-edition[2.4.0]. magento@ubuntu:/var/www/html$ find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chown -R :www-data . && chmod u+x bin/magento find: ‘var’: No such file or directory find: ‘generated’: No such file or directory find: ‘vendor’: No such file or directory find: ‘pub/static’: No such file or directory find: ‘pub/media’: No such file or directory find: ‘app/etc’: No such file or directory magento@ubuntu:/var/www/html$
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.4.6-p1 -> satisfiable by magento/product-community-edition[2.4.6-p1]. - magento/product-community-edition 2.4.6-p1 requires ext-bcmath * -> it is missing from your system. Install or enable PHP's bcmath extension. Problem 2 - phpunit/phpunit[9.5.0, ..., 9.6.10] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. - Root composer.json requires phpunit/phpunit ^9.5 -> satisfiable by phpunit/phpunit[9.5.0, ..., 9.6.10]. I am running into these issues when trying to run this command in the article : composer create-project --repository-url=repo.magento.com/ magento/project-community-edition . Any help would be appreciated
COMING SOON: Live Streams on Twitch (Behind The Scenes stuff): www.twitch.tv/digitalstartup
is this video enough for production use? are there any latest video? how about s3 for assets? my email seems not working.
You literally saved me. I've been searching the whole INTERNET to found the proper step hierarchy for installing Magento 2 and I couldn't find anything till I saw your video! I can't thank you enough! Cheers!
Quite possibly the most instructive, concise, clear and well thought-over tutorial I've seen to date. Learned a lot doing this. Kudos, man.
I have next to no experience in this area and was lost when my dad asked me to do this for his business! Works perfectly, I couldn't ask for a clearer and well thought out instruction guide. Thanks!!
Probably one of the best video tutorials I’ve ever watched. Period.
Implemented the whole thing and works smooth as butter! Thanks a lot for the effort and the quality of this.
Glad it helped!
Thank you so much ! After thousands of Tutorials, which didn't work, your once did it. Only the 2FA doesn't work.
Great video. I couldn't have done it without you. Thanks!
For everyone else, if you get the dreaded "internal server error," it's probably a missing Apache module. For me, it was mod_version. If you have Apache configured to log errors, you will find your answer in the error log. And also, document root is now the magento/pub folder. You'll have to change that in the vhost file. It's best to do that with rewrite rules, rather than changing the actual document root, unless you don't have anything else in your public_html that you need to still work.
Thanks,
earlier I was ripping my hair out. You saved me. Perfect instruction. You're the best!
the best tutorial to setup magento, thank you so much for your incredible effort:)
Great video. Nicely explained. Easy to follow. Just perfect. Thanks Craig, you rock!
Cool. I'm glad you found it useful. Good luck with your project :)
Hey Craig, you are wonderful, perfect and super a person.. Thanks for your video.. Everything is step by step and sure article.. You are crazy a man :)) Bravo for patient!
Supa video! And pretty well explained
Just wanted to add that you can disable TwoFactor authentication, if you don't need it. Once you installed Magento it can be disabled using following command: php bin\magento module:disable -c Magento_TwoFactorAuth
As most of the time it's not needed especially on development stage
Hello, I really can not install magento 2.4 on server can you help me or do it for me please, I am really stuck with all the tutorials but I can not
@@komanrodriguekoman4330 surely we can try, just send me your WhatsApp, Telegram, Viber, Messenger or email.
awesome I waited for an email for hours but didn't come in, checked it everywhere.. this came as saviour to me, thanks for sharing :)
bin/magento module:disable Magento_TwoFactorAuth to disable two stage auth
Ahh... i've been get the solution from Электроника123 Thank you!
Thanks so much for this. Avery complicated process very well explained. Interested to know what app you use to display the different screens in your tutorial?
Great video. Some tips, especially for those with Elasticsearch not staying running ("no running live nodes" and such)...
1) Do NOT set memory_limit = [max available system memory] in the php.ini.
2) if you are doing mysql secure install, before installing PHPMyAdmin do the following...
sudo mysql
...then without deleting any apostrophes...
CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOURPASSWORDHERE';
... then...
exit
... and then run the install for PHPMyAdmin. Avoids loads of headaches.
3) you're going to want to edit sudo nano /etc/php/7.4/cli/php.ini to not have "memory_limit = -1"
Hope that helps someone. I am horrible at coding and literally everything I know I learned from these vids and others like it so don't take what I say as a perfect solution. But it took me many hours to track down why OoM Killer was putting a bullet in the back of Elasticsearch's head every single time Magento/Composer did literally anything, UFF! Still have to restart after doing anything major, but stays running otherwise now so... *shrug*
Thanks, was trying to setup locally for 2 days, watched this along with your virtualbox video.
This tutorial worked flawlessly! Do you offer one for Magento 2.4.3 installation on Centos 8?
Degraded composer to 1.10.16 but still facing the below error -
Problem 1
- Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0].
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4].
- Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2
Request to help on this.
If Composer 2 gives you errors try to use an older version of it . php composer-setup.php --version=1.9.0
I can confirm that others have also had success using composer 1.x
Thank you so much for this Craig. Very insightful video so far. I'm trying to follow along, but it turns out most of the php extenstions cannot be found as at the date of me writing making this comment.
You are the man! Thanks for sharing
Thanks for watching :D
Thanks for the Video i was able to setup Magento 2.4 successfully and if you can provide steps to setup the system to production it will be helpful.
Great tutorial, Just perfect, this works really well, Thank you
You're welcome! Good luck with your project
If you cannot log in to phpmyadmin, please pay attention to the steps. 2.2 Create a new user (Now it’s time to logout as the root user and reconnect with our new user.) 3.5 Install phpMyAdmin and secure the installation(Make sure that you select apache2 using your SPACE BAR before hitting ENTER to continue. )
Thanks Craig.
Super great tutorial, Very easy to understand just follow step by step. Thank you. I have some question to ask. How different between your step to install one by one and Install via DirectAdmin? Your way look more clean install. It's make our website faster? Thank you again.
To Disable the TwoFactorAuth
run these commands:
bin/magento module:disable Magento_TwoFactorAuth
bin/magento cache:flush
FOR ALL. on the last process. you can DISABLE the 2FA as well THAT WAY you dont need to verify email for 2FA
Thanks a lot Craig for the nicely explained video! :)
Hi Craig. Thanks for the video. It is a really organised video with good tips.
I am receiving this error when running bin/magento setup:upgrade
Unable to apply data patch Magento\CatalogRuleSampleData\Setup\Patch\Data\InstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly.
What could be the reason
I am getting the same error, did you find a fix?
Thanks for this tutorial, may I know if the URI is not working, where can I access the magento admin page?
2022 and you have to install this piece of software via command line... holy fuck.
Super sir you teaching like spoon feeding
Thank you for the positive comment
Very nicely explained. Thank you very much. 👍
could you also do magento on a cloud service provider like IBM?
Hi Sir my domain is SSL configured so what should be the base url I need to mention while installing magento
Great , the best tutorial of magento install, thaks a lot
Hi Craig, big thanks for your professional guidance, is it possible to create a script for one-key install on VPS? I saw GCP providing such kind unit directly install. but I don't want to use GCP for setup a Magento 2.x. Easy to setup will bring more user. Compare with OpenCart is a little bit difficult for a beginner. I am going to try to use BT install Magento from backend and management all features in the future.
Wow great video, thank so much!
You're welcome. Good luck with your project.
Hi Craig. Any reason for a cloud server you used MySQL instead of the recommended MariaDB? Magento docs state to only use MySQL for local installs.
Hi great video
But I was wondering if it would be better to setup redis and lite speed or nginx
Thanks for saving my day
This tutorial helps more to install magento 2.4 in AWS. But I have some storage issue. after few days the storage is full. How to prevent this? How the storage is full? which folder?
But you have not configured the Elastic search with Magento and the Postfix configuration still remains? Can you also please provide us tutorials for Varnish setup with Magento on Apache2 server?
Great tutorial! Perfect as always! Just aheads up I encounter.
1. PHPmyadmin didnt show up. I had to include - Include /etc/phpmyadmin/apache.conf - in the /etc/apache2/apache2.conf file.
2. PostFix was a complete nightmare. It never worked for me. I had to difuse the 2FA with - bin/magento module:disable Magento_TwoFactorAuth
3. I only had 2GBs of RAM, so I used a MKswab: sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB - and then: sudo chmod 600 /swapfile - and then include this: /swapfile swap swap sw 0 0 - In the /etc/fstab file and then: sudo sysctl vm.swappiness=10
and then: sudo sysctl vm.vfs_cache_pressure=50 and finally include this: vm.swappiness = 10
(enter) vm.vfs_cache_pressure = 50 in the /etc/sysctl.conf file.
4. When installing composer and you want to bring roll back the version, remember to use sudo.
Thats all.
Once again, thank you.
AWS Blocked the email going out and you have to apply to get that restriction removed. I did the following:
Get the mails in the Queue by typing the following: sudo mailq which will return the emails it tried to send then you can use the sudo postcat -vq
Thank you, do you have the best, thanks to you I was able to finally install configure and magento 2.4 on a dedicated server; thank you thank you, but I do not receive email as expected in spam either
I have never experienced this issue. You could try adding Outbound Port Rules for 25, 465 and 587. I think those are all the SMTP ports for Postfix, but you’d want to double check.
Maybe you have a video where you show how to start with magento without the web server? I am renting a hosting provider and they also have their running server, so maybe i can just skip some of the steps or is there another video that would describe this?
are the php extensions out of date since this has been posted? extensions not working...
Hi Craig, Another super video, I got as far as logging into Magento, but I never received an en email to authorise it. Iv'e checked my span for 2 days but nothing.
If it were working, you'd receive it instantly. This suggests that the Admin email was setup incorrectly or Postfix was mis-configured. I guess it's also possible that your email provider blocked the email as it would have come from an illegitimate address - But that never happened to me during all the testing, so that's just a guess.
many providers also block port 25 (snmp)-- you may need to contact the cloud provider. For example I contacted aws and they are asking for reasons-- there is alot of people creating spam I suppose. Will tell u how mine goes
when i am trying to install postfix .When I start the install process (sudo apt install mailutils -y) I get stuck at the following screen (package configuration) and The session becomes non-responsive, how to get past this hangup?
Hi, really appreciate your effort. Can you advise why the website does not show SSL even after installing it. It gives 403 forbidden error.
Great tutorial. It works.
Hello whenever I copy paste the last command to Install Magento, instead of executing the command, putty adds a new line with ">" and nothing happens then. What can I do?
Nice one Craig.
La instalación fue exitosa pero cuando se intenta hacer cambios en las configuraciones desde el panel de administración se cae el sitio y da error. ERR_EMPTY_RESPONSE
Would you make tutorial about install magento 2.4 using Docker ?
Hi Craig, thanks for your very useful video(s) :> I was using AWS EC2 host (instead of digital ocean), using ubuntu 18.04, and eventually had to use the 2VCPU, 4G ram (as you had mentioned ElasticSearch takes mem); Also order to install the sample content, I had to create additional swaps for linux (file swaps, outlined here: stackoverflow.com/questions/20667761/composer-killed-while-updating ) otherwise the process will be 'killed' due to insufficient memory; I was also unable to use the postfix to send out any email (it timed out connecting to my email provider on port 25), so instead had to 'look' into the postfix email itself, (on sudo) first by listing (mailq), and then getting the [mailid] and running postcat -vq [mailid] to get the inital mail for the authenticator. Otherwise, I have it running! Thanks again, if you do come to TH, please give me a buzz!
Glad you found this useful. Thank you for sharing your workarounds too.
Hello, thank for the guide. Can you create video tutorial "How to install magento pwa studio" ?
i couldnt generate an access key in Magento Marketplace? It just refreshed - what can i do?
I am stuck in bin/magento, after putting the command it said "could not open input file: bin/magento", I am at the magento root directory, when do ls, just see the composer.json file. I also tried with php bin/magento but the result was same, any advise?
36:06 omg, why dont you past the script in the description? how am i suppose to type this out?
could you help me with lemp stack on centos 7 to setup magento
could you provide a tutorial for setup for production please? it would be very very useful. thanks
I'm not sure what you're asking?
HI Craig,
Thanks for the tutorial. I hit a snag however whilst installing magento with composer:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0].
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4].
- Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2
using suggestion from @Imad Odat i run this command to downgrade to 1.90 and that worked for me to continue the installation
sudo composer self-update 1.9.0
@@ManMrBlow I am getting the FileSystem Exception when trying to execute the above command to downgrade. Could you please assist.
@@ManMrBlow Error message :
[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: "/usr/local/bin/composer" could not be written.
rename(/home/test/.cache/composer/composer-temp.phar,/usr/local/bin/composer): Permission denied
Same with me. Also same error message as Dilip.
Can i install Magento 2 on Oracle Free tier because i am facing issues related with login with root user
After find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chown -R :www-data . && chmod u+x bin/magento I get an error saying directory is not empty!
Hello, I really can't install magento 2.4 on a dedicated server, can you help me or do it for me please, I'm really stuck with all the tutorials but I can't
Nice video but am stuck at magento login, I seem not to be getting the 2fa
thank u so much!
How do you login as the superuser?
"Hey Craig! Hope you're doing well. Sorry to bother you here, but I was wondering if you could help me out with something. I was wondering if you have any plans to do a tutorial on how to set up Magento 2 on Cloudpanel using Oracle Cloud. Your expertise would be really valuable to me. Thanks in advance!"
am using ubuntu 16 and M2 2.3.5 and a bunch of extensions up and running. and mysql 5 i think. it would not be wise to upgrade if most of my extensions are not in the 2.4 version right? is it safe to install m 2.3 in ubuntu 20?
2.3 doesn't reach "end-of-life" until some point next year (28 May 2021 I think). So, you have time to start planning. But don't leave it too long or you'll stop getting security updates and bug fixes after this date.
Anybody else get this error when doing the magento setup:install command? "Too many arguments, expected arguments "command". "
Right now when I log into my Adobe account, there is no access key.
Hi, Its very nice video and artical is informative too, I have following error while I am installing
magento composer
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0].
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4].
- Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
magento@winimpex:/var/www/html$
I’m not receiving an email for “Two-Factor Authorisation” anyone have an idea why? It’s great great video btw. Thank you.
For those who ran on similar problem, Temporary disable TwoFactorAuth module using following command(for dev environment): (in magento root directory)
Hi how to you setup ssh client?
Anyone has an idea how to install Magento 2.4.1 on wamp server 3.2.3 using the command line... ??
Hi, thanks for your tutorial. That was really good. But i have problem when i try to login magento admin panel. They are not send me an email for further instructions. What should i do?
I really need help.
Thank you.
Ahh... i've been get the solution from Электроника123 Thank you!
Hi can you share the solution with me in getting the same issue
Got stuck at the PHP installation. keeps getting error "E: Unable to locate package php7.4
" Do I have to download this first?
Nope. All of the instructions are documented. Perhaps you missed a step?
@@DigitalstartupUk I tried going back all the steps but got same error still. fresh install might help but not sure how to uninstall Apache2 and run the install again.
@@FolarTV Hi! I got the same error, and I was wondering if you were able to figure out the issue.
@@DigitalstartupUk Hi! I am actually getting the same error as @FolarTV. Any ideas on what step I could be missing?
@@candacemoreau4224 @FolarTV Please, post your issue in the forum explaining your exact issue, including the command you're attempting to enter that displays this error.
This does not scale. How come you don't use Docker for all this?
I did all your steps but when I try to install Magento with composer, there is an error: Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin[1.0.0].
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0 -> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4].
- Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by magento/product-community-edition[2.4.0].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
I searched information and there are people who say that is because of my PHP version, but I installed the same of u.. What can i do? Thank you very much!
Use an older version of Composer such as 1.9.0.
Code: php composer-setup.php --version=1.9.0
to Unistall Composer: rm /usr/local/bin/composer
@@imadodat it works! thank you very much :D
@lmad Odat thank you very much, it work for me as well, but in my case, i used composer self-update 1.9.0
@@imadodat I got rm: cannot remove '/usr/local/bin/composer': Permission denied
I used both users - sudo and magento
@@imadodat I was able to re-install composer, now when I ran bin/magento setup:install \ - - base - url=http: .....
it gave me : Too many arguments, expected arguments "command".
Please help.
in case the install script didn't work for you use this online tool to escape your passowrds onlinelinuxtools.com/escape-shell-characters
I didn't know you could escape bash characters
@@DigitalstartupUk me too I released this after I stuck on this step
Cant acces phpmyadmin from browser, did exactly the same steps as you...
Me too, have you solved this problem?
@@angelozou3914 Yeah but i dont remember how honestly
cache_how to solve this error please "/var/www/html/var/page_cache" is not writable
just change the permissions
@@studiokpoptickets9937 como puedo modificar los permisos? yo tengo el mismo problema
No matter how hard I try, how many tutorials I watch or online guides I read I cannot for the LIFE OF ME get phpmyadmin set up correctly, EVER.
It will NEVER let me log in with the password I have set and it does my absolute nut in.
i've lost the count of how many times i had to search for multiple errors that suddenly appeared in my terminal
postfix sends emails as from= can you suggest me how to use a custom address? (relay already in place, using port 587)
Hi Craig, I started again from the very start.. this time the email from "owner@example.com" arrived in my gmail spam folder 6 hours later, I tried the link but I think it may have timed out because it redirected me to the Magento log in, so I tried to log in and up came the message about 2 step etc. so this time I received the email in my gmail spam folder within 10 minutes, so far so good. I then took a snapshot and tried to install the sample data, every thing went well until I ran the " bin/magento setup:upgrade" it completed the upgrade but at the end these was a RED note: "Could not validate a connection to Elasticsearch. No alive nodes found in your cluster" can you help? thanks you..
Great news. Someone else ran into the same issue and resolved it by restarting elastic search - As it may have hung or crashed
@@DigitalstartupUk Hi Craig, Just a note to let you know that everything is up and running and looking good !! great videos, thank you very much
📣📣📣SM Market Magento 2 Theme Specific Layout (24 HomePages) - Updated Version 7.5.0 with New Features
✔️ This version was built based on new framework which includes many more new functions, more flexible, more better updates than current one. At the present, this version is available in Homepage 1 to Homepage 17 and promised to be updated in remaining Homepages in the future.
✔️ Sticky Add To Cart / Tabs - A floating bar on every product page that becomes visible either when customers start to scroll/swipe down or when customers scroll/swipe beyond the original Add To Cart button. The bar contains buttons “detail”, “more information”, “review”, “custom tab” and the Add to cart button so your customers can quickly add a product to the cart without going back up to the original Add To Cart button.
💥Purchase here: www.magentech.com/magento-on-themeforest/item/508-market-best-selling-magento-2-1-theme
everything was going smooth, but dont understand when reached at 35:38 timline of video - i am getting these erors.. nstalling magento/project-community-edition (2.4.0)
- Downloading magento/project-community-edition (2.4.0)
- Installing magento/project-community-edition (2.4.0): Extracting archive
Created project in /var/www/html/.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> sa
tisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0
-> found composer-plugin-api[2.1.0] but it does not match the constraint.
Problem 2
- laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4] require composer-plugin-api ^1.1 -
> found composer-plugin-api[2.1.0] but it does not match the constraint.
- magento/product-community-edition 2.4.0 requires laminas/laminas-dependency-plugin ^1.0
-> satisfiable by laminas/laminas-dependency-plugin[1.0.0, ..., 1.0.4].
- Root composer.json requires magento/product-community-edition 2.4.0 -> satisfiable by m
agento/product-community-edition[2.4.0].
magento@ubuntu:/var/www/html$ find var generated vendor pub/static pub/media app/etc -type f
-exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec
chmod g+ws {} + && chown -R :www-data . && chmod u+x bin/magento
find: ‘var’: No such file or directory
find: ‘generated’: No such file or directory
find: ‘vendor’: No such file or directory
find: ‘pub/static’: No such file or directory
find: ‘pub/media’: No such file or directory
find: ‘app/etc’: No such file or directory
magento@ubuntu:/var/www/html$
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/product-community-edition 2.4.6-p1 -> satisfiable by magento/product-community-edition[2.4.6-p1].
- magento/product-community-edition 2.4.6-p1 requires ext-bcmath * -> it is missing from your system. Install or enable PHP's bcmath extension.
Problem 2
- phpunit/phpunit[9.5.0, ..., 9.6.10] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- Root composer.json requires phpunit/phpunit ^9.5 -> satisfiable by phpunit/phpunit[9.5.0, ..., 9.6.10].
I am running into these issues when trying to run this command in the article : composer create-project --repository-url=repo.magento.com/ magento/project-community-edition .
Any help would be appreciated
how can i contact u