Wednesday, March 25, 2020

How To install Anchor CMS On Ubuntu 18.04 LTS with Nginx Web Server

 Video Tutorial -https://youtu.be/xfyl9IIpF14

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

in This Video I will Explain you " How To install Anchor CMS On Ubuntu 18.04 LTS with Nginx Web Server"
 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Anchor is a lightweight open source blog CMS written in PHP. Anchor's source code is hosted on GitHub.

Nginx is a web server which can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.
Offcial Website: https://anchorcms.com/
Github:https://github.com/anchorcms
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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 sqlite3 dirmngr nano lsb-release apt-transport-https git

MariaDB Repositories:
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'

Nginx Mariadb Php PHP Modules :
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install  -y nginx mariadb-server mariadb-client  php7.3 php7.3-cli php7.3-fpm php7.3-cgi php7.3-bcmath php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-sqlite3 php7.3-xml php7.3-zip php7.3-snmp php7.3-imap php7.3-common php7.3-tidy php-pear

systemctl start nginx mariadb ; systemctl enable nginx mariadb
mysql_secure_installation

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

gedit /etc/php/7.3/fpm/php.ini &>/dev/null          date.timezone="Asia/Kolkata"cgi.fix_pathinfo=0   
gedit /etc/php/7.3/fpm/pool.d/www.conf &>/dev/null  env[HOSTNAME] = $HOSTNAME ]

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
cd /var/www/html/ ; composer create-project anchorcms/anchor-cms
mv anchor-cms anchor
chown -R www-data:www-data /var/www/html/anchor/ ; chmod -R 755 /var/www/html/anchor/

Setting up Nginx Server Blocks (Virtual Hosts):-
gedit /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/anchor/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
http://www.yourdomain.com

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install ClipperCMS On Ubuntu 18.04 LTS

 Video Tutorial - https://youtu.be/EzKG8owZi4o

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ClipperCMS is a flexible and powerful open source content management system released under the GPL license. You can use this web software to build websites, personal blogs and also complex and dynamic applications.
Github: https://github.com/ClipperCMS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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

MariaDB Repositories:
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'

Apache2 Mariadb Php PHP Modules :
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt-get install -y apache2 mariadb-server mariadb-client php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy php7.0-mcrypt php7.0-pgsql php-pear

a2enmod dir env headers mime rewrite setenvif
sed -i "s/;date.timezone.*/date.timezone = UTC/" /etc/php/7.0/cli/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';
quit

cd /var/www/html ; wget https://github.com/ClipperCMS/ClipperCMS/archive/clipper_1.3.3.zip
unzip clipper_1.3.3.zip
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

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

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/ClipperCMS-clipper_1.3.3/
     ServerName www.yourdomain.com

     <Directory /var/www/html/ClipperCMS-clipper_1.3.3/>
          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 CouchDB on Ubuntu 18.04.2 LTS

Video Tutorial - 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CouchDB is a free and open-source fault-tolerant NoSQL database maintained by the Apache Software Foundation.
Offcial Website: http://couchdb.apache.org/                       
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification- [ Os:  Ubuntu 18.04.2 LTS Bionic Beaver 64Bit ]
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; whoami ; apt update -y ; apt install -y build-essential software-properties-common curl gdebi vim wget aptitude leafpad nano git net-tools lsb-release apt-transport-https

curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
echo "deb https://apache.bintray.com/couchdb-deb bionic main" | sudo tee -a /etc/apt/sources.list
apt update ; apt install couchdb -y

curl http://127.0.0.1:5984/
http://127.0.0.1:5984/_utils/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install CSZ CMS on Ubuntu 18.04

 Video Tutorial -

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

CSZ CMS is a open source content management system. With Codeigniter.
CSZ CMS is an open source web application that allows to manage all content and settings on the websites. CSZ CMS was built on the basis of Codeigniter and design the structure of Bootstrap, this should make your website fully responsive with ease.

CSZ CMS is based on the server side script language PHP and uses a MySQL or MariaDB database for data storage. CSZ CMS is open-source Content Management System. And all is free under the Astian Develop Public License (ADPL).
Offcial Website: https://www.cszcms.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 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 /tmp ; wget https://downloads.sourceforge.net/project/cszcms/install/CSZCMS-V1.2.1.zip
mkdir /var/www/html/cszcms ; unzip CSZCMS-V1.2.1.zip -d /var/www/html/cszcms
Or
cd /tmp ; wget https://liquidtelecom.dl.sourceforge.net/project/cszcms/install/CSZCMS-V1.2.2.zip
mkdir /var/www/html/cszcms ; unzip CSZCMS-V1.2.2.zip -d /var/www/html/cszcms


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/cszcms
     ServerName www.yourdomain.com

     <Directory /var/www/html/cszcms/>
          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 DokuWiki with Nginx on Ubuntu 18.04 LTS

Video Tutorial - https://youtu.be/1ukrwzDi9-g

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

DokuWiki is a free, open source and highly versatile wiki application written in the PHP programming language. It works on plain text files so doesn't require any database. DokuWiki wiki offers lots of features that may not be available to other CMS like, Joomla, WordPress and Drupal. DokuWiki is a file-based CMS and provides WYSIWYG support and SEO friendly.
Offcial Website: https://www.dokuwiki.org/dokuwiki
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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

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-get install -y nginx mariadb-server mariadb-client  php7.3 php7.3-cli php7.3-fpm php7.3-cgi php7.3-bcmath php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-sqlite3 php7.3-xml php7.3-zip php7.3-snmp php7.3-json php7.3-imap php7.3-common php7.3-tidy

systemctl start nginx mariadb ; systemctl enable nginx mariadb
mysql_secure_installation

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

gedit /etc/php/7.3/fpm/php.ini &>/dev/null                                                [ date.timezone ="Asia/Kolkata" cgi.fix_pathinfo=0 ]
gedit /etc/php/7.3/fpm/pool.d/www.conf &>/dev/null                          [ env[HOSTNAME] = $HOSTNAME ]

cd /var/www/html/ ; wget https://download.dokuwiki.org/out/dokuwiki-8a269cc015a64b40e4c918699f1e1142.tgz
tar -zxvf dokuwiki-8a269cc015a64b40e4c918699f1e1142.tgz
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Or
cd /var/www/html/ ; git clone --branch stable https://github.com/splitbrain/dokuwiki.git
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

gedit /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/dokuwiki/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
nginx -t
echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart php7.3-fpm nginx mariadb
http://www.yourdomain.com/install.php

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Flatpak on Ubuntu 18.04.2 LTS

Video Tutorial -  https://youtu.be/dJwk3UNK3QE

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Flatpak is a ‘next-generation’ Linux app format developed by Red Hat and used in Fedora.
Offcial Website :https://flatpak.org/                     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-
Os:  Ubuntu 18.04.2 LTS Bionic Beaver 64Bit      Hostname:           IP Address of Server:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; whoami ; apt update -y ; apt install -y build-essential software-properties-common curl gdebi vim wget aptitude leafpad nano git net-tools lsb-release apt-transport-https

apt update ; apt install flatpak gnome-software-plugin-flatpak [  Flatpak on Ubuntu 18.04 and Linux Mint ]
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Or


[ Flatpak on Debian, Ubuntu 16.04, Elementary OS and other Ubuntu based distributions ]
add-apt-repository ppa:alexlarsson/flatpak -y
apt update ; apt install flatpak gnome-software-plugin-flatpak -y
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak list --app 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install Gerbera - UPnP Media Server On Ubuntu 18.04 With Apache2

Video Tutorial -https://youtu.be/n3jkKJgVG4E

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Gerbera is an UPnP Media Server.
It allows you to stream your digital media through your home network and listen to/watch it on a variety of UPnP compatible devices.
Offcial Website: https://gerbera.io/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https apache2
a2enmod proxy rewrite proxy_http

add-apt-repository ppa:stephenczetty/gerbera-updates -y
apt-get update ; apt install gerbera -y
systemctl start gerbera && systemctl enable gerbera
netstat -plntu

gedit /etc/gerbera/config.xml  &>/dev/null
<server>
enabled=”no” To enabled=”yes”
systemctl daemon-reload ; systemctl restart gerbera

nano /etc/apache2/sites-available/gerbera.conf
<VirtualHost *:80>
    ServerName www.yourdomain.com

    ProxyPass / http://192.168.1.50:49152/
    ProxyPassReverse / http://192.168.1.50:49152/
</VirtualHost>
a2ensite gerbera.conf ; a2dissite 000-default ; apache2ctl configtest 
systemctl enable apache2 ; systemctl reload apache2 ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts
http://www.yourdomain.com

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install GlFusion CMS On Ubuntu 18.04 With Nginx, MariaDB And PHP 7.2-FPM

 Video Tutorial - https://youtu.be/5k5eCcDS8IY

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GlFusion CMS is a free open source content management system built to create powerful websites with many out of the box capabilities. Some of the features offered by glFusion CMS are spam protection, files and media management built-in forums, polls and more.
Offcial Website: https://www.glfusion.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 sqlite3 dirmngr nano lsb-release apt-transport-https git leafpad git

MariaDB Repositories:
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'

Nginx Mariadb Php PHP Modules :
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y nginx mariadb-server mariadb-client 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

systemctl start nginx mariadb ; systemctl enable nginx mariadb ; mysql_secure_installation

Create Mariadb Database :
mysql -u root -p
create database db character set utf8 collate utf8_general_ci;
create user'dbuser'@'localhost' identified by 'dbpass';
grant all on db.* TO 'dbuser'@'localhost' identified by 'dbpass' with grant option ;
flush privileges;
exit;

sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/7.2/fpm/php.ini ; sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.2/fpm/php.ini
leafpad  /etc/php/7.2/fpm/pool.d/www.conf &>/dev/null  env[HOSTNAME] = $HOSTNAME ]

Download Link:https://www.glfusion.org/filemgmt/index.php?id=682
cd /home/ubuntu/Downloads/ ; mv glfusion-1.7.7 /var/www/html/glfusion
chown -R www-data:www-data /var/www/html/glfusion/ ; chmod -R 755 /var/www/html/glfusion/

Setting up Nginx Server Blocks (Virtual Hosts):-
leafpad /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/glfusion/public_html/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
http://www.yourdomain.com
Username: admin
Password: password created or entered during installation []

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install GrandNode ECommerce Platform with Nginx on Ubuntu 18.04

 Video Tutorial -https://youtu.be/ou6BNNzAo9I

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

GrandNode is a functional cross-platform e-commerce solution developed for the most demanding users. You are able to run it on any system - Linux, Windows, Mac.
Offcial Website: https://grandnode.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 update ; apt install -y build-essential software-properties-common git curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https unzip libgdiplus nginx -y

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
apt update ; apt install -y mongodb-org

systemctl stop mongod.service ; systemctl start mongod.service ; systemctl enable mongod.service
mongo
use grandnode
db.createUser(
   {
     user: "root",
     pwd: "toor",
     roles: [ "dbOwner" ]
   }
)
cd /tmp ; wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb


sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-get update ; apt-get install dotnet-sdk-2.1 -y


cd /tmp/ ; wget https://github.com/grandnode/grandnode/releases/download/4.30/GrandNode4.30_NoSource.Web.zip
unzip -d /var/www/html/grandnode /tmp/GrandNode4.30_NoSource.Web.zip
chown -R www-data:www-data /var/www/html/grandnode ; chmod -R 777 /var/www/html/grandnode
cd /var/www/html/grandnode
sudo -u www-data dotnet Grand.Web.dll

nano /etc/systemd/system/grandnode-core.service
[Unit]
 Description=GrandNode

  [Service]
  WorkingDirectory=/var/www/html/grandnode
  ExecStart=/usr/bin/dotnet /var/www/html/grandnode/Grand.Web.dll
  Restart=always
  RestartSec=10
  SyslogIdentifier=dotnet-grandnode
  User=www-data
  Environment=ASPNETCORE_ENVIRONMENT=Production

  [Install]
  WantedBy=multi-user.target

systemctl enable grandnode-core.service ; systemctl start grandnode-core.service ; systemctl status grandnode-core.service

nano /etc/nginx/conf.d/yourdomain.conf
server {
    listen [::]:80;
    listen 80;
    server_name www.yourdomain.com;

    location / {
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass http://127.0.0.1:5000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_next_upstream error timeout http_502 http_503 http_504;
    }
}
rm /etc/nginx/sites-enabled/default
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx grandnode-core.service ; systemctl status grandnode-core.service

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Graylog-3.0 on Ubuntu 18.04.2 LTS

Video Tutorial - https://youtu.be/SHlVdgBt0es

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Graylog is a free, open-source log management tool which helps you to collect and analyze any machine logs centrally.
Offcial Website: https://www.graylog.org/                       
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification- [ Os:  Ubuntu 18.04.2 LTS Bionic Beaver 64Bit ]
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; whoami ; apt update -y ; apt install -y build-essential software-properties-common curl gdebi vim wget aptitude leafpad nano git net-tools lsb-release apt-transport-https uuid-runtime pwgen curl dirmngr openjdk-8-jre-headless
java -version

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list

apt update ; apt install -y elasticsearch
systemctl enable elasticsearch
gedit /etc/elasticsearch/elasticsearch.yml &>/dev/null
cluster.name: graylog
systemctl restart elasticsearch ; systemctl status elasticsearch
curl -X GET http://127.0.0.1:9200
curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true'


apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 68818C72E52529D4
echo "deb http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
apt update ; apt install -y mongodb-org
systemctl start mongod ; systemctl enable mongod

wget https://packages.graylog2.org/repo/packages/graylog-3.0-repository_latest.deb
gdebi graylog-3.0-repository_latest.deb
apt update ; apt install graylog-server -y
pwgen -N 1 -s 96
gedit  /etc/graylog/server/server.conf &>/dev/null
password_secret =
echo -n yourpassword | sha256sum
gedit /etc/graylog/server/server.conf &>/dev/null
root_password_sha2 =
root_email = "yourmail@gmail.com"
root_timezone = UTC
is_master = true
elasticsearch_shards = 1
elasticsearch_replicas = 0
http_bind_address = 127.0.0.1:9000

systemctl start graylog-server ; systemctl enable graylog-server ; systemctl status graylog-server
tail /var/log/graylog-server/server.log
netstat -tlpn
http://127.0.0.1:9000

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To Install Icecast 2 on Ubuntu 18.04 LTS

 Video Tutorial -https://youtu.be/Tmgjs4K7dzM

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Icecast is a free, open source and most popular media streaming server that supports Ogg, Opus, WebM, MP3, and many more.
Offcial Website: http://icecast.org/                       
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification- [ Os:  Ubuntu 18.04.2 LTS Bionic Beaver 64Bit ]
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd  ; getconf LONG_BIT ; whoami ; apt update -y ; apt install -y build-essential software-properties-common curl gdebi vim wget aptitude leafpad nano git net-tools lsb-release apt-transport-https

apt-get update ; apt-get upgrade -y
apt-get install icecast2 -y
systemctl start icecast2 ; systemctl enable icecast2 ; systemctl status icecast2

netstat -plnt
netstat -plnt | grep ':8000'
http://127.0.0.1:8000

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How To install Known CMS On Ubuntu 18.04 LTS

Video Tutorial - https://youtu.be/dei0Hxn-0MU

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Known is a free and open source publishing platform. It is a platform to share different types of posts like photos, notes, stories, songs etc. It is written in PHP and can be used with any type of database. It is responsive, secure and easy to use platform.
Offcial Website: https://withknown.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

MariaDB Repositories:
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'

Apache2 Mariadb Php PHP Modules :
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 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 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

wget http://assets.withknown.com/releases/known-0.9.9.zip
unzip known-0.9.9.zip -d /var/www/html/known
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/known/
     ServerName www.yourdomain.com

     <Directory /var/www/html/known/>
          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

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tuesday, March 24, 2020

How To Install BookStack on Ubuntu 18.04 LTS with Nginx

Video Tutorial -  https://youtu.be/evH1DpIvRz0

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

BookStack is a simple, self-hosted, easy-to-use platform for organizing and storing information. BookStack is fully free and open, as well as MIT licensed.
Offcial Website: https://www.bookstackapp.com/
Guide:https://www.bookstackapp.com/docs/admin/installation/
Github:https://github.com/BookStackApp
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 sqlite3 dirmngr nano lsb-release apt-transport-https git

MariaDB Repositories:
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'

Nginx Mariadb Php PHP Modules :
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install  -y nginx mariadb-server mariadb-client php7.0 php7.0-cli php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy  php7.0-mcrypt php7.0-pgsql php-pear

systemctl start nginx mariadb ; systemctl enable nginx mariadb
mysql_secure_installation

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

gedit /etc/php/7.0/fpm/php.ini &>/dev/null          date.timezone="Asia/Kolkata"cgi.fix_pathinfo=0    
gedit /etc/php/7.0/fpm/pool.d/www.conf &>/dev/null  env[HOSTNAME] = $HOSTNAME ]

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
cd /var/www/html/ ; git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch
cd BookStack/ ; composer install
cp .env.example .env
nano .env
php artisan key:generate
php artisan migrate
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Setting up Nginx Server Blocks (Virtual Hosts):-
gedit /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/BookStack/public/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
http://www.yourdomain.com
admin@admin.com          | password

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Saturday, March 21, 2020

How To Install Instant CMS on Ubuntu 18.04

Video Tutorial - https://youtu.be/Bwpambv_Jk4

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

InstantCMS -Is a free open source CMS (content management system) that allows you to build websites for any purpose
Key features
Free & open source (GNU/GPL v2);
Any content types;
Powerful social networking platform;
Extremely easy to extend;
Templates and plugins;
Powerful admin dashboard;
SEO tools included;
Mobile friendly template;
Multilingual CMS interface;
User management;
Easy-to-install core updates.
Offcial Website:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 /tmp ; wget https://instantcms.ru/load/url=/download/2.0/instantcms_20180705_v2.10.1.zip
unzip -d /var/www/html/instantcms /tmp/instantcms_20180705_v2.10.1.zip
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/instantcms/
     ServerName www.yourdomain.com

     <Directory /var/www/html/instantcms/>
          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
rm -rf /var/www/html/instantcms/install

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tuesday, March 17, 2020

How To Install Flint CMS (Node.js) on Ubuntu 18.04

Video Tutorial - https://youtu.be/PsibhqQZHH8

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FlintCMS is a free, open source and content-focused Node.js Content Management System that can be used to develop simple websites and blogs. It is specially designed for those who want to design the front-end of their website without any coding knowledge. It is simple, fast and customizable that allows you to edit your content on the web without any templates and HTML.
Offcial Website:https://flintcms.co/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 update ; apt install -y build-essential software-properties-common git curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https -y

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

apt-get update ; apt-get install nodejs yarn zlib1g-dev build-essential libpq-dev libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev mongodb mongodb-clients -y
mongo

cd ~/ ; git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.5.3
rbenv global 2.5.3
gem install bundler
gem install rails -v 5.2.3
rbenv rehash

npm install nosql
mkdir /root/flintcms ; cd flintcms
npm install flintcms
nano index.js
const Flint = require('flintcms');

const flintServer = new Flint({
  siteName: 'My Amazing Flint Site!'
});

flintServer.startServer();

nano /root/flintcms/.env
# Secret settings
SESSION_SECRET=Fy#xXd)L6UOjrJiOFCHpf3qqesa!h#+z

# Mongo Credentials
DB_HOST=127.0.0.1/test
DB_USER=admin
DB_PASS=admin

DEBUG=flint*

node index.js

http://localhost:4000
http://127.0.0.1:4000/admin/install
admin@example.com

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Saturday, March 14, 2020

How To install jorani On Ubuntu 18.04 LTS

 Video Tutorial -https://youtu.be/pZh_loqM0nQ

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Jorani is a leave management system developed in PHP/MySQL for small organizations which provides simple leave and overtime request workflows.
Offcial Website: https://jorani.org/about.html
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

MariaDB Repositories:
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'

Apache2 Mariadb Php PHP Modules :
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 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 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
wget https://github.com/bbalet/jorani/archive/master.zip
unzip master.zip -d /var/www/html/
mv /var/www/html/jorani-master/ /var/www/html/jorani

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

mysql -p
use lms
source /var/www/html/jorani/sql/jorani.sql
quit

leafpad /var/www/html/jorani/application/config/database.php &>/dev/null
cd /var/www/html/jorani/ ; composer install
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/jorani/
     ServerName www.yourdomain.com

     <Directory /var/www/html/jorani/>
          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
Default username: bbalet  | Default password: bbalet

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wednesday, March 11, 2020

How To install BlogoText CMS On Ubuntu 18.04 LTS with Nginx Web Server

 Video Tutorial - https://youtu.be/Qwv9Hn7AftA

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

BlogoText is an open source, lightweight, web publishing platform (CMS) for creating minimalist blogs and websites.
Offcial Website: https://github.com/BlogoText
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 sqlite3 dirmngr nano lsb-release apt-transport-https git

MariaDB Repositories:
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-get install -y nginx mariadb-server mariadb-client php7.0 php7.0-cli php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy php7.0-mcrypt php7.0-pgsql php-pear

systemctl start nginx mariadb ; systemctl enable nginx mariadb
mysql_secure_installation

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

gedit /etc/php/7.0/fpm/php.ini &>/dev/null         date.timezone="Asia/Kolkata"cgi.fix_pathinfo=0    
gedit /etc/php/7.0/fpm/pool.d/www.conf &>/dev/null  env[HOSTNAME] = $HOSTNAME ]

cd /var/www/html/  ; wget https://github.com/BlogoText/blogotext/archive/3.7.6.zip
unzip 3.7.6.zip
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Setting up Nginx Server Blocks (Virtual Hosts):-
gedit /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/blogotext-3.7.6/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
http://www.yourdomain.com/admin/install.php   | http://www.yourdomain.com/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Friday, March 6, 2020

How To install Shaarli with Nginx On Ubuntu 18.04 LTS

Video Tutorial -https://youtu.be/PZn4DquD6eU

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Shaarli is a personal, minimalist, super-fast, database free, bookmarking service.
Website:https://github.com/shaarli/Shaarli
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https

add-apt-repository ppa:ondrej/php -y
apt-get update ; apt-get install -y nginx php7.3 php7.3-cli php7.3-fpm php7.3-cgi php7.3-bcmath php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-sqlite3 php7.3-xml php7.3-zip php7.3-snmp php7.3-json php7.3-imap php7.3-common php7.3-tidy
systemctl start nginx ; systemctl enable nginx

gedit /etc/php/7.3/fpm/php.ini &>/dev/null                                               date.timezone="Asia/Kolkata" cgi.fix_pathinfo=0
gedit /etc/php/7.3/fpm/pool.d/www.conf &>/dev/null                         env[HOSTNAME] = $HOSTNAME ]

wget https://github.com/shaarli/Shaarli/releases/download/v0.10.4/shaarli-v0.10.4-full.zip
unzip shaarli-v0.10.4-full.zip  ; mv Shaarli /var/www/html/
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

gedit /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/Shaarli/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx
http://www.yourdomain.com
Username:admin        | Password: B4r2nd9nTR    

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tuesday, March 3, 2020

How To install Ampache On Ubuntu 18.04 LTS With Nginx

Video Tutorial - https://youtu.be/N6Sxks65lbE

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ampache is a a web based audio/video streaming software and file manager. It allows you to access your music & videos from anywhere, using almost any internet enabled device. It isn’t a media organizer, it just use the existing organized media files in a useful way.
Offcial Website: http://ampache.org/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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-get update ; apt install -y build-essential software-properties-common curl wget nano git net-tools lsb-release apt-transport-https

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-get install -y nginx mariadb-server mariadb-client php7.0 php7.0-cli php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy  php7.0-mcrypt php7.0-pgsql php-pear

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer

gedit /etc/php/7.0/fpm/php.ini &>/dev/null                                                [ date.timezone ="Asia/Kolkata" cgi.fix_pathinfo=0 ]
gedit /etc/php/7.0/fpm/pool.d/www.conf &>/dev/null                          [ env[HOSTNAME] = $HOSTNAME ]

systemctl start nginx mariadb ; systemctl enable nginx mariadb
mysql_secure_installation

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

wget https://github.com/ampache/ampache/archive/master.tar.gz
tar -xzf master.tar.gz ; mv ampache-master/ /var/www/html/ampache/
cd /var/www/html/ampache ; composer install --prefer-source --no-interaction
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/


gedit /etc/nginx/sites-available/default &>/dev/null
server {
    server_name www.yourdomain.com;

    access_log /var/log/nginx/yourdomain-access.log;
    error_log /var/log/nginx/yourdomain-error.log;
    root /var/www/html/ampache/;

    location / {
        index index.php;
        try_files $uri $uri/ /index.php$is_args$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
http://www.yourdomain.com

DB Details:
Database Host: localhost  || Database name: db  || Database username: dbuser || Database password: dbpass
Username:admin        | Password: B4r2nd9nTR    || Email:  mail@yourdomain.com

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------