We're here to assist with any of your needs, don't hestitate to reach out.
Magento is a powerful and popular open-source e-commerce platform used by businesses of all sizes to create online stores. It offers a wide range of features and customization options to suit different business needs. In order to install Magento on CentOS 7, follow the steps below:
Open your web browser and visit http://your_domain_name. Follow the on-screen instructions to complete the Magento installation. Provide the necessary information such as database details and admin credentials.
sudo yum update -y
sudo yum install httpd mariadb-server php php-mysqlnd -y
sudo systemctl start httpd sudo systemctl enable httpd sudo systemctl start mariadb sudo systemctl enable mariadb
sudo mysql_secure_installation
sudo mysql -u root -p CREATE DATABASE magento; CREATE USER 'magento'@'localhost' IDENTIFIED BY 'YourStrongPassword'; GRANT ALL PRIVILEGES ON magento.* TO 'magento'@'localhost'; FLUSH PRIVILEGES; exit
Replace 'YourStrongPassword' with a strong password for the Magento user.sudo yum install php-gd php-xml php-pear php-bcmath php-intl php-soap -y
sudo yum install wget -y cd ~ wget https://magento.com/tech-resources/download?file=&ver=2.4.2-p1 tar -xzf download\?file\=\&ver\=2.4.2-p1 sudo mv magento2.4.2-p1 /var/www/html/magento sudo chown -R apache:apache /var/www/html/magento sudo chmod -R 755 /var/www/html/magento
sudo yum install nano -y sudo nano /etc/httpd/conf.d/magento.conf
Add the following configurations to the file:
DocumentRoot /var/www/html/magento ServerName your_domain_name Options Indexes FollowSymLinks AllowOverride All Require all granted ErrorLog /var/log/httpd/magento_error.log CustomLog /var/log/httpd/magento_access.log combinedReplace 'your_domain_name' with your actual domain name.
sudo systemctl restart httpd
What our customers say about us
Create your free account today.