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

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