sudo apt install php-xml (dom error)
find . -type d -exec chmod 0711 {} +
find . -type f -exec chmod 0644 {} +
find . -type f -name “*.php” -exec chmod 600 {} +
chmod u+x bin/magento
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 {} +
sudo chown -R magento:www-data .
sudo 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:www-data . && chmod u+x bin/magento
or
sudo find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \; && sudo find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \; && sudo chown -R www-data:www-data . && sudo chmod u+x bin/magento
create database magento1;
show databases;
CREATE USER 'saran'@'localhost' IDENTIFIED BY 'Admin@123';
GRANT ALL PRIVILEGES ON *. * TO 'saran'@'localhost';
FLUSH PRIVILEGES;
sudo apt-get update
sudo apt-get install php7.4-gd php7.4-curl php7.4-intl php7.4-xsl php7.4-zip php7.4-soap php7.4-mbstring php7.4-mysql php7.4-bcmath php7.4-mcrypt
sudo systemctl restart php7.4-fpm.service
sudo service nginx restart
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update && sudo apt-get install elasticsearch
bin/magento setup:install \
--base-url=http://behindfacts.com \
--db-host=localhost \
--db-name=magento1 \
--db-user=saran \
--db-password=Admin@123 \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1