Thursday, March 17, 2022

How To install Mono CMS on Ubuntu 18.04

 Mono CMS offers a clean and minimalistic approach to content management system  Built with PHP and no database requirement, this CMS platform lets you built great websites for personal and professional use |
Offcial Website: http://monocms.com/
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git vim sudo unzip socat bash-completion

add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php-imagick php-pear

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 ; systemctl enable apache2

cd /tmp ; wget http://monocms.com/MonoCMS.zip
mkdir /var/www/html/monocms ; unzip MonoCMS -d /var/www/html/monocms
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Setting up Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/monocms
     ServerName www.yourdomain.com

     <Directory /var/www/html/monocms/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com

How To Install Magnolia CMS on Ubuntu 18.04 LTS

 Magnolia is an open-source content management system (CMS). It is developed by Magnolia International Ltd., based in Basel, Switzerland. It is based on Content repository API for Java.
Offcial Website: https://www.magnolia-cms.com/
___________________________________________________________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |            IP address- 192.168.1.50                 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt update ;  apt install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https

add-apt-repository ppa:linuxuprising/java -y
apt update ; apt install oracle-java12-installer -y
apt install oracle-java12-set-default -y
update-alternatives --config java
nano /etc/environment
JAVA_HOME=”/usr/lib/jvm/java-12-oracle/bin/java/”
source /etc/environment
echo $JAVA_HOME ; java -version ; javac -version


cd /opt ; wget https://liquidtelecom.dl.sourceforge.net/project/magnolia/magnolia/Magnolia%20CE%206.1/magnolia-community-demo-bundle-6.1-tomcat-bundle.zip
unzip magnolia-community-demo-bundle-6.1-tomcat-bundle.zip
 cd magnolia-6.1/
./apache-tomcat-9.0.10/bin/magnolia_control.sh start --ignore-open-files-limit
http://192.168.1.50:8080

Or

Magnolia Version:5.6.5
cd /opt
wget https://netix.dl.sourceforge.net/project/magnolia/magnolia/Magnolia%20CE%205.6.5/magnolia-community-demo-bundle-5.6.5-tomcat-bundle.zip
unzip magnolia-community-demo-bundle-5.6.5-tomcat-bundle.zip
cd magnolia-5.6.5
./apache-tomcat-8.5.5/bin/magnolia_control.sh start --ignore-open-files-limit
http://192.168.1.50:8080

How To Install LEPTON CMS on Ubuntu 18.04

 LEPTON CMS is a easy-to-use content management system with integrated jquery library for freelancing designers or php-developers and web-agencies.
Offcial Website: https://lepton-cms.org/english.php
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion

MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y

apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl  php7.2-recode php-imagick php-pear php-memcache php-apcu

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

https://lepton-cms.org/english/download.php
cd /home/ubuntu/Downloads
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/lepton/upload/
     ServerName www.yourdomain.com

     <Directory /var/www/html/lepton/upload/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install

How To install flatCore CMS on Ubuntu 18.04"

 *****************************************************************************************************
FlatCore is a Web Content Management System (CMS) based on PHP and SQLite.
Offcial Website:Official Site: https://flatcore.org
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion

MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y

apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl  php7.2-recode php-imagick php-pear php-memcache php-apcu

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

cd /var/www/html ; git clone https://github.com/flatCore/flatCore-CMS.git flatcore
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/flatcore/
     ServerName www.yourdomain.com

     <Directory /var/www/html/flatcore/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install/index.php
rm -rf /var/www/html/flatcore/install/

How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5"

Linux Virtual Server is load balancing software for Linux kernel–based operating systems. LVS is a free and open-source project started by Wensong Zhang in May 1998, subject to the requirements of the GNU General Public License, version 2.
                                       ________________________
                                      | LVS Server  - 192.168.1.20   |
___________________|                                                |_____________________
Backend Server 192.168.1.80 |                            | Backend Server 192.168.1.60|
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install ipvsadm
echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf
sysctl -p

touch /etc/sysconfig/ipvsadm
systemctl restart ipvsadm ; systemctl enable ipvsadm ; systemctl status ipvsadm
ipvsadm -C
ipvsadm -A -t (ServiceIP:Port) -s (Distribution method)
ipvsadm -A -t 192.168.1.20:80 -s wlc

ipvsadm -a -t (ServiceIP:Port) -r (BackendServerIP:Port) -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.80:80 -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.60:80 -m
ipvsadm -l
firewall-cmd --add-service=http --permanent ; firewall-cmd --reload
_________________________________________________________________________________________




Wednesday, March 16, 2022

How To Install Crater Invoicing Solution on Ubuntu 20.04

Crater is a free and open-source invoicing application based on the Laravel PHP framework. It is designed for individual users or small and medium-sized businesses to help track payments and expenses as well as create professional invoices. It comes with a suite of tools that are used to manage invoices. Crater allows users to create and send professional invoices to their clients.
Homepage - https://craterapp.com/
_________________________________________________________________________________________
Server - Os:  Ubuntu 20.04.3 LTS 64Bit        | IP -192.168.1.80            |Hostname -  ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname ; hostname -I

add-apt-repository ppa:ondrej/php -y ; apt-get update
apt install -y apache2 build-essential mariadb-server mariadb-client php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-cgi php7.4-bcmath php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip php7.4-snmp php7.4-imap php7.4-common php7.4-tidy php7.4-pgsql php7.4-ldap php7.4-soap php7.4-xsl php7.4-redis php7.4-xmlrpc

a2enmod rewrite expires ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpassword';
flush privileges;
quit

wget https://craterapp.com/downloads/file/6.0.5 -O crater.zip
unzip crater.zip ; mv crater /var/www/html/crater
chown -R www-data:www-data /var/www/html/ ; chmod -R 777 /var/www/html/
nano  /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/crater/public
ServerName www.yourdomain.com
<Directory /var/www/html/crater/public/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/yourdomain.com-error_log
CustomLog /var/log/apache2/yourdomain.com-access_log common
</VirtualHost>

a2ensite yourdomain.conf ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.80 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/  | SNcAiM7cFLJNjCT
________________________________________________________________________________________

How To install Setup Focalboard Project Management on Ubuntu 20.04

in This Tutorial you will learn "How To install Setup Focalboard Project Management on Ubuntu 20.04

Focalboard is an open-source self-hosted project management tool used for both personal and development use. It serves as an alternative to Asana, Trello, and Notion. Focalboard helps one organize, track and manage projects across systems such as Windows, Mac, or Linux.
Hoempage - https://www.focalboard.com/
_________________________________________________________________________________________
Server - Os:  Ubuntu 20.04.3 LTS 64Bit        | IP -192.168.1.80            |Hostname -  ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I ; hostname
VER=$(curl -s https://api.github.com/repos/mattermost/focalboard/releases/latest|grep tag_name | cut -d '"' -f 4)
wget https://github.com/mattermost/focalboard/releases/download/${VER}/focalboard-server-linux-amd64.tar.gz
tar -xvzf focalboard-server-linux-amd64.tar.gz ; mv focalboard /opt

apt install nginx postgresql postgresql-contrib -y
rm /etc/nginx/sites-enabled/default ; nano /etc/nginx/sites-available/focalboard
upstream focalboard {
   server localhost:8000;
   keepalive 32;
}

server {
   listen 80 default_server;

   server_name ubuntu.example.com;

   location ~ /ws/* {
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       client_max_body_size 50M;
       proxy_set_header Host $http_host;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Frame-Options SAMEORIGIN;
       proxy_buffers 256 16k;
       proxy_buffer_size 16k;
       client_body_timeout 60;
       send_timeout 300;
       lingering_timeout 5;
       proxy_connect_timeout 1d;
       proxy_send_timeout 1d;
       proxy_read_timeout 1d;
       proxy_pass http://focalboard;
   }

   location / {
       client_max_body_size 50M;
       proxy_set_header Connection "";
       proxy_set_header Host $http_host;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Frame-Options SAMEORIGIN;
       proxy_buffers 256 16k;
       proxy_buffer_size 16k;
       proxy_read_timeout 600s;
       proxy_cache_revalidate on;
       proxy_cache_min_uses 2;
       proxy_cache_use_stale timeout;
       proxy_cache_lock on;
       proxy_http_version 1.1;
       proxy_pass http://focalboard;
   }
}
ln -s /etc/nginx/sites-available/focalboard /etc/nginx/sites-enabled/focalboard
sudo --login --user postgres
psql
CREATE DATABASE boards;
CREATE USER boardsuser WITH PASSWORD 'Passw0rd';
\q
exit

nano /opt/focalboard/config.json
"dbtype": "postgres",
"dbconfig": "postgres://boardsuser:Passw0rd@localhost/boards?sslmode=disable&connect_timeout=10",
nano /lib/systemd/system/focalboard.service
[Unit]
Description=Focalboard server

[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/opt/focalboard/bin/focalboard-server
WorkingDirectory=/opt/focalboard

[Install]
WantedBy=multi-user.target

systemctl daemon-reload ; systemctl start focalboard.service ; systemctl enable focalboard.service
systemctl reload nginx
http://ubuntu.example.com
_________________________________________________________________________________________