Proxmox LXC install Opencart
Create CT
I am using Debian LXC
After Created LXC then go to console mode and get update and upgrade
apt-get update
apt-get -y upgradeInstall Apache2
apt-get install -y apache2
Test Status Apache2
systemctl status apache2Go to /etc/apache2/conf-enabled/security.conf and change below setting
ServerSignature Off
ServerTokens ProdInstall PHP
apt-get update
apt-get -y upgrade
apt-get install -y apt-transport-https lsb-release ca-certificates wget
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
apt-get update
PHP 8.3
apt install -y php8.3PHP 8.2
sudo apt install -y php8.2PHP 7.4
apt install -y php7.4Verify the Installation
php -vSwitching PHP Versions (Optional)
update-alternatives --set php /usr/bin/php7.4To switch back to PHP 8.3, replace php7.4 with php8.3
Get OpenCloud
wget /var/www https://github.com/opencart/opencart/releases/download/4.0.2.3/opencart-4.0.2.3.zip
apt-get -y install zip
unzip opencart-4.0.2.3.zipMove or Copy Upload inside file to html folder
mv html html_old
mv opencart-4.0.2.3/upload/ html/
chown -R www-data:www-data html/Go to Local IP to Test
ip a
Then will show miss module need install
apt-get -y install php8.3-gd php8.3-zip php8.3-mysql php8.3-zip php8.3-mbstring php8.3-curl php8.3-xml php8.3-mysqli
systemctl reload apache2Install Mariadb Server
apt-get update
apt-get -y install mariadb-serverFirst Setup Mariadb
mariadb-secure-installationAdd Mariadb User use command
mariadb -u root -p
CREATE USER 'username'@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;