Can i get a link to some kind of tutorial that works for installing magento 2 on centos 8 i try to follow what is currently on google but they dont work.


There shouldn't be a difference in the way you install Magneto2 in any of Linux distribution.

The easiest way is also the right one - trough composer. Just make sure you have composer configured. You'll find it at the official link: https://devdocs.magento.com/guides/v2.3/install-gde/composer.html

But just a short resume:

 # install the project 
 $ composer create-project --repository=https://repo.magento.com/ magento/project-community-edition <project-name>

 # set file permissions 
 cd <project-name>
 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

make sure to rename - into something appropriate to your needs.

And then just go on website link and follow the wizard setup.



check this tutorial the only one that works at least for the moment.


we have Magento 2 LEMP webstack configuration script available now for CentOS 8.


to install full ecommerce webstack, you need to run:

curl -o magenx.sh https://magenx.sh && bash magenx.sh

this script will install everything you need to start Magento 2 development, and good for production too. While CentOS 8 has some minor bugs and issues, if you have skills it will be easy for you to run it as you like.

ps. simple bash script, text file, human friendly, just a collection of all commands you run to install webstack.

  • thanks for this script but I already installed it the hard way... so nginx is better for magento ? what about nginx and apache ?
    – Wed
    Jan 31 '20 at 21:49
  • this is about what you like, you only need one server. either nginx or apache.
    – MagenX
    Feb 1 '20 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.