Official Docs Other official docs
Installation #
- Check System Requirements
- Install Elasticsearch
- Prerequisite check
- Install Composer using version for compatibility with system
wget https://getcomposer.org/installer -O composer-setup.php
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php -d allow_url_fopen=On composer-setup.php --filename=composer
-
Run updoots
yum update
-
Install database
(
user=$(whoami)
read -p "Database Name: " db
uapi Mysql create_database name="${user}_${db}"
pass=$(head /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c15)
uapi Mysql create_user name="${user}_${db}" password="$pass"
uapi Mysql set_privileges_on_database user="${user}_${db}" database="${user}_${db}" privileges='ALL PRIVILEGES'
uapi Mysql get_privileges_on_database user="${user}_${db}" database="${user}_${db}" | grep 'ALL PRIVILEGES'
echo $pass
echo "${user}_${db}"
)
-
Get authentication keys to the Magento Composer repo
-
Directory must be empty to install repo
- Move composer out of the way
mv ./composer ../composer
- Make sure you’re in the docroot and run
rm -rf ./*
- Move composer out of the way
-
Install repo:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
- You might need to install libsodium before installing the Magento app
- Install Magento App:
bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento \
--db-user=magento \
--db-password=magento \
--admin-firstname=admin \
--admin-lastname=admin \
[email protected] \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1
- Optional, check for PHP modules:
# /usr/local/bin/ea-php74 -m | grep -E 'bcmath|ctype|curl|dom|gd|hash|iconv|intl|mbstring|openssl|pdo_mysql|simplexml|soap|xsl|zip|sockets'
bcmath
ctype
curl
dom
gd
hash
iconv
intl
mbstring
openssl
pdo_mysql
soap
sockets
xsl
zip