Install CMS Litecart di ubuntu 18.04
Step by step :
- Install LAMP
# apt-get install apache2 mariadb-server php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl php7.2-soap unzip -y - Enable dan start apache2 mariadb
# systemctl start apache2
# systemctl start mariadb
# systemctl enable apache2
# systemctl enable mariadb
- Create Database Litecart
MariaDB [(none)]> CREATE DATABASE litecartdb;
MariaDB [(none)]> CREATE USER ‘litecart’@’localhost’ IDENTIFIED BY ‘password’;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON litecartdb.* TO ‘litecart’@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT; - Download CMS Litecart dari official website https://www.litecart.net/en/download
- Buat direktori Litecart dan unzip packet
# mkdir /var/www/html/litecart
# unzip litecart-2.1.6.zip -d /var/www/html/litecart - Set permission di direktori
# chown -R www-data:www-data /var/www/html/litecart/
# chmod -R 755 /var/www/html/litecart/ - Konfigurasi virtualhost # nano /etc/apache2/sites-available/litecart.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName example.com
DocumentRoot/var/www/html/litecart/public_html/
<Directory /var/www/html/litecart/>
AllowOverride All
allow from all
</Directory>
ErrorLog /var/log/apache2/litecart_error.log
CustomLog /var/log/apache2/litecart_access.log combined
</VirtualHost> - Enable virtualhost dan apache2 header
# a2ensite litecart.conf
# a2enmod rewrite
# a2enmod headers - Restart Apache2
# systemctl restart apache2 - Konfigurasi litecart via browser
Di tulis oleh: Nanda Anubis