Say we plan to install magento 2.3.6 under https://www.cheapglasses123.com . We are using CentOS 7, Apache 2.4
Step One:
composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.6 .
Step Two:
cd /cheapglasses123.com/html/ <magento install directory>
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 {} +
chmod u+x bin/magento
Step Three:
php bin/magento setup:install –base-url=’https://www.cheapglasses123.com’ –db-host=’localhost’ –db-name=’cheapglasses’ –db-user=’cheapeyeglasses’ –db-password=’cheapglasses123′ –admin-firstname=’Young’ –admin-lastname=’glasses’ –admin-email=’info@cheapglasses123.com’ –admin-user=’eyeglasses’ –admin-password=’sunglasses’ –language=’en_US’ –currency=’USD’ –timezone=’America/Chicago’ –use-rewrites=’1′
Step Four:
php bin/magento indexer:reindex
php bin/magento setup:upgrade
bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush