How to install and setup magento in linux system using terminal.
Magento community version installation in ubuntu.
Install and setup Apache server.
MySQL DB & user and PHP for magento.
Configure PHP variable values to meet magento requirement.
Install elastic search for magento.
Magento installation steps with screenshots.
Requirements for magento installation.
4. Once completed, we
can increase some
PHP variable values
to meet Magento’s
minimum
requirements.
Reference: https://www.roseh
osting.com/blog/how-to-
install-magento-2-4-3-on-
ubuntu-20-04/#7-Download-
Magento
• sudo sed -i "s/memory_limit =
.*/memory_limit = 768M/"
/etc/php/7.4/fpm/php.ini
• sudo sed -i "s/upload_max_filesize =
.*/upload_max_filesize = 128M/"
/etc/php/7.4/fpm/php.ini
• sudo sed -i "s/zlib.output_compression =
.*/zlib.output_compression = on/"
/etc/php/7.4/fpm/php.ini
• sudo sed -i "s/max_execution_time =
.*/max_execution_time = 18000/"
/etc/php/7.4/fpm/php.ini
5. Create a
database and
user for
Magento
• mysql -u root -p mysql> CREATE USER
'magento'@'localhost'
IDENTIFIED WITH
mysql_native_password BY
'm0d1fyth15';
mysql> CREATE DATABASE
magentodb;
mysql> GRANT ALL PRIVILEGES
ON magentodb.* TO
'magento'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> q
Reference : https://www.rosehosting.com/blog/how-to-install-
magento-2-4-3-on-ubuntu-20-04/#7-Download-Magento
11. CREATE CONFIG
FILE FOR
MAGENTO
• REFERENCE LINK
• https://netcorecloud.com/tutor
ials/how-to-install-magento-on-
ubuntu-18-04/
• Change all domain.com to your
domain
(eg:magentodemo2.localhost)
• Set correct folder name for
Document root and Directory
• Restart apache2: sudo systemctl
restart apache2