How To Install OpenCart on Rocky Linux 8

How To Install OpenCart on Rocky Linux 8

 in This Tutorial you will Learn " How To Install OpenCart on Rocky Linux 8"

OpenCart is an open-source e-commerce platform written in PHP. It is simple, lightweight, user-friendly, and provides a web interface to manage it from the web browser. It allows you to easily manage product inventory, orders, affiliates, discounts, product reviews, payment gateways, and more.
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -        |     Hostname -
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

dnf install httpd mariadb-server -y
dnf install epel-release -y
dnf install
dnf module reset php
dnf module enable php:remi-8.0
dnf install php php-gd php-ldap php-zip php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mysqlnd php-snmp php-soap curl curl-devel unzip git -y
systemctl start httpd ; systemctl enable httpd ; systemctl start mariadb ; systemctl enable mariadb

mysql -u root -p
CREATE USER 'opencart'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON opencart.* TO 'opencart'@'localhost';

git clone
cd opencart ; mv upload /var/www/html/opencart
cp /var/www/html/opencart/config-dist.php /var/www/html/opencart/config.php
cp /var/www/html/opencart/admin/config-dist.php /var/www/html/opencart/admin/config.php
chown -R apache:apache /var/www/html/opencart ; chmod -R 755 /var/www/html/opencart

nano /etc/httpd/conf.d/opencart.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/opencart/
<Directory /var/www/html/opencart/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/httpd/
CustomLog /var/log/httpd/ common

systemctl restart httpd
echo "" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload

mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup

Share on Pinterest
Share on LinkedIn
Share on WhatsApp
Share on Telegram