Installing Moxly CMS

Install required libraries and tools


Install required libraries and tools

First, update and clean sources list:

apt-get update -yqq &&  apt-get install -y apt-utils

then install this dependencies:

apt-get update && apt-get install -y build-essential libpng-dev  locales zip jpegoptim optipng pngquant gifsicle unzip zip git curl lua-zlib-dev libmemcached-dev wget

Install NodeJS 18.X

Download script from nodejs.org:

curl -sL https://deb.nodesource.com/setup_18.x -o setup_18.sh

run script:

sh ./setup_18.sh

and install nodejs

sudo apt-get install -y nodejs

Install NPM

How to install NodeJS and NPM to Ubuntu 20 and higher:

Download:

wget https://www.npmjs.com/install.sh | sh

Make executable:

chmod +x install.sh

Install:

./install.sh

Install Ionic 6

Before install Ionic, you must install NPM.
If NPM installed, intall Ionic:

npm i -g @ionic/cli

Install JAVA SDK

Run this commands:

apt-get update && apt-get install -y software-properties-common
apt-get update && apt-get install -y openjdk-11-jdk
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin

Install PHP 8

Support ONLY PHP 8.1 and higher (in CGI and CLI mode). Before setup platform, you must configure your server for use PHP8 version in HTTP and console mode.

How to add PHP 8.1 to Ubuntu 20.xx:

sudo apt update
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y

Press ENTER in process:

sudo add-apt-repository ppa:ondrej/php

Install PHP

sudo apt install php8.1

check installed version:

php -v

Install this extensions:

sudo apt install php8.1-mysql php8.1-zip php8.1-xml php8.1-dom php8.1-curl php8.1-common php-json php8.1-mbstring php-mysql php-curl php8.1-gd php8.1-xml