I use lnmp, and installed ngix, php7.3, mysql5.7 for Magento 2.3.6
First, Copy conf/example/magento2-example.conf, and rename it to magento2.conf, and put it under conf/vhost;
Second, Upload magento-ce-2.3.6-2020-09-25-06-30-58.tar.bz2, and run
tar -jxvf magento-ce-2.3.6-2020-09-25-06-30-58.tar.bz2
Third?
find . -type d -exec chmod 777 {} \; && find . -type f -exec chmod 777 {} \;
chmod u+x bin/magento
Forth,
https://www.cheapglasses123.com/setup
We may meet the following errors while installing Magento 2.3.6
Module ‘Magento_Catalog’:
[ERROR] Magento\Eav\Model\Entity\Attribute\Exception: Warning: SessionHandler::read(): open(/path/sess_mutef2325enfvca39ou3i207qu, O_RDWR) failed: No such file or directory (2) in /home/wwwroot/cheapglasses123/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /home/wwwroot/cheapglasses123/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
Edit php.ini, locate session.save_handler, and change:
;session.save_path =
session.save_path =
Set production mode magento 2.3
You can use this command to set production mode:
bin/magento deploy:mode:set production
Note: If you are going to switch from Developer to Production mode two actions must first be taken.
1) Static Deploy (bin/magento setup:static-content:deploy)
2) Compilation (bin/magento setup:di:compile)
=========================
Some MySQL commands we may need to use:
Create a MySQL user, user name: eyeglasses; user password: J8(I0y23v2Db^%3vC
CREATE USER ‘eyeglasses’@’localhost’ IDENTIFIED BY ‘J8(I0y23v2Db^%3vC’;
Create A MySQL Database, named magento23:
create database magento23;
Grant all privileges to this user:
GRANT ALL PRIVILEGES ON magento23.* TO ‘eyeglasses’@’localhost’;
GRANT ALL PRIVILEGES ON database_name.* TO ‘database_user’@’localhost’;