Install CMS Litecart di ubuntu 18.04

Step by step :

  1. 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
  2. Enable dan start apache2 mariadb
    # systemctl start apache2
    # systemctl start mariadb
    # systemctl enable apache2
    # systemctl enable mariadb
  3. 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;
  4. Download CMS Litecart dari official website https://www.litecart.net/en/download
  5. Buat direktori Litecart dan unzip packet
    # mkdir /var/www/html/litecart
    # unzip litecart-2.1.6.zip -d /var/www/html/litecart
  6. Set permission di direktori
    # chown -R www-data:www-data /var/www/html/litecart/
    # chmod -R 755 /var/www/html/litecart/
  7. 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>

  8. Enable virtualhost dan apache2 header
    # a2ensite litecart.conf
    # a2enmod rewrite
    # a2enmod headers
  9. Restart Apache2
    # systemctl restart apache2
  10. Konfigurasi litecart via browser
Baca Juga:  Install Teamviewer di Debian 10

Di tulis oleh: