Wednesday, December 30, 2020

How To Setup Emby Media Server on Ubuntu 18.04 Bionic Beaver With Apache Web Server

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

 Emby Server is a personal media server with apps on just about every device.
It features a REST-based API with built-in documention to facilitate client development. We also have client libraries for our API to enable rapid development.
Offcial Website:https://emby.media/  || Emby Premiere:-  https://emby.media/premiere.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  ; 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 apache2

a2enmod dir env headers mime rewrite setenvif proxy proxy_http ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf  
systemctl start apache2 ; systemctl enable apache2

wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.1.1.0/emby-server-deb_4.1.1.0_amd64.deb
gdebi emby-server-deb_4.1.1.0_amd64.deb

gedit /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
    #Domain Name
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com

    #HTTP proxy/gateway server
    ProxyRequests off
    ProxyPass / http://127.0.0.1:8096/
    ProxyPassReverse / http:/127.0.0.1:8096/     
</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

chmod -R 777 /home/ubuntu/Music
Username:admin        | Password: 

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

How To Deploy MongoDB With Docker On Ubuntu 20.04

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

Mongo - Docker Hub -  https://hub.docker.com/_/mongo
MongoDB document databases provide high availability and easy scalability. Docker is an open source platform for building, deploying, and managing containerized applications.
Offcial Website -https://www.docker.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:Ubuntu 20.04 LTS           Hostname - www.yourdomain.com  - ip Address - 192.168.1.10  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose
systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker

docker pull mongo:4.2.2
docker images
mkdir -p /mongodata
docker run -it -v /data/db:/mongodata -p 27017:27017 --name mongodb -d mongo
docker ps
docker exec -it mongodb bash
mongo -host localhost -port 27017
show dbs

docker logs mongodb
docker stop mongodb
docker start mongodb

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

How To Run PostgreSQL on a Docker Container On Ubuntu 20.04

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

Docker is an open-source platform where we can create, deploy, and run applications by using containers. Docker is similar to virtual machines (VM), but in VM you need to create a virtual operating system, while Docker allows applications to use the system kernel.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Testing Environment:
Ubuntu 20.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.10  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose

systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker
 
docker pull postgres
Or
docker pull postgres:11.5
docker run --name my_postgres -e POSTGRES_PASSWORD=password -d postgres:11.5
docker ps
docker exec -it my_postgres bash
/usr/bin/psql -U postgres postgres
\q

docker logs my_postgres
docker stop my_postgres
docker start my_postgres
docker rm -f my_postgres

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

Monday, December 7, 2020

How To Install TimescaleDB On Ubuntu 18.04 With PostgreSQL

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

TimescaleDB is an open-source database designed to make SQL scalable for time-series data.

PostgreSQL, also known as Postgres, is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Offcial Website: https://www.timescale.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 -y

add-apt-repository ppa:timescale/timescaledb-ppa -y
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
cat >/etc/apt/sources.list.d/pgdg.list<<EOF
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main
EOF
apt-get update ; apt install timescaledb-postgresql-10 postgresql-10 -y

su - postgres
psql -c "alter user postgres with password 'toor'"
leafpad  /etc/postgresql/10/main/postgresql.conf &>/dev/null
shared_preload_libraries = 'timescaledb'

systemctl restart postgresql
su - postgres
psql
CREATE database test_db;
\c test_db
CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
psql -U postgres -h localhost -d test_db

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

Sunday, December 6, 2020

How To install setup Landing CMS On Ubuntu 18.04 LTS

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

 Landing CMS is a simple and cross-platform for management landing pages. It doesn't use any databases.
Offcial Website: https://github.com/Elias-Black/Landing-CMS.git
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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

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

wget https://codeload.github.com/Elias-Black/Landing-CMS/zip/master
unzip master
mv Landing-CMS-master /var/www/html/
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/Landing-CMS-master/
     ServerName www.yourdomain.com

     <Directory /var/www/html/Landing-CMS-master/>
          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

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

Thursday, December 3, 2020

How To Install Emby Media Server on Ubuntu 18.04 With Apache Web Server

 

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

 Emby Server is a personal media server with apps on just about every device.
It features a REST-based API with built-in documention to facilitate client development. We also have client libraries for our API to enable rapid development.
Offcial Website:https://emby.media/  || Emby Premiere:-  https://emby.media/premiere.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  ; 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 apache2

a2enmod dir env headers mime rewrite setenvif proxy proxy_http ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf  
systemctl start apache2 ; systemctl enable apache2

wget https://github.com/MediaBrowser/Emby.Releases/releases/download/4.1.1.0/emby-server-deb_4.1.1.0_amd64.deb
gdebi emby-server-deb_4.1.1.0_amd64.deb

gedit /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
    #Domain Name
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com

    #HTTP proxy/gateway server
    ProxyRequests off
    ProxyPass / http://127.0.0.1:8096/
    ProxyPassReverse / http:/127.0.0.1:8096/     
</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

chmod -R 777 /home/ubuntu/Music
Username:admin        | Password:

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

Monday, November 30, 2020

How To install & Configure Elefant CMS On Ubuntu 18.04

 Elefant is a refreshingly simple PHP content management system and web framework. Elefant is a fast, lean tool for building everything from simple websites to complete web applications.
Offcial Website: https://www.elefantcms.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
SET GLOBAL sql_mode='';
CREATE USER elefant;
CREATE DATABASE elefantdb;
GRANT ALL PRIVILEGES ON elefantdb.* TO 'elefant'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit


curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
cd /var/www/html/ ; composer create-project elefant/cms --stability=dev
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/cms/
     ServerName www.yourdomain.com

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

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

Saturday, November 28, 2020

How To install Sonerezh on Ubuntu 18.04 LTS with Apache2 Php 7.0

Sonerezh is a self-hosted, web-based music streaming server written in PHP and HTML5. It’s lightweight compared to Subsonic which is written in Java. Sonerezh is open-source software, distributed under the terms of AGPL.
Offcial Website: https://www.sonerezh.bzh/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 ffmpeg

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.0 php7.0-cli libapache2-mod-php7.0 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 apache2 mariadb ; systemctl enable apache2 mariadb
mysql_secure_installation

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  

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

cd /var/www/html ;  wget https://www.sonerezh.bzh/downloads/latest.tar.gz
tar -zxf latest.tar.gz
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Apache VirtualHost :
gedit /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/sonerezh/app/webroot
     ServerName www.yourdomain.com

     <Directory /var/www/html/sonerezh/app/webroot/>
          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

DB Details:
Database Host: localhost
Database name: db
Database username: dbuser
Database password: dbpass

chmod -R 777 /home/ubuntu/Music/
/home/ubuntu/Music/
Email:  yourmail@yourdomain.com  Password: YourPasswordB4r2nd9nTR   

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

How To Deploy MariaDB on Docker Without Dockerfile On Ubuntu 20.04

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

 MariaDB is an open source relational database management system (DBMS).

Docker is an open source virtualization and containerization technology for building and containerizing your applications. It's a tool that allows you to create isolated containers that can be used to run your apps.
Offcial Website -https://www.docker.com/

MariaDB Dockerhub link - https://hub.docker.com/_/mariadb
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 20.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.10  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose

systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker

docker pull mariadb
docker run -d --name mariadb1 \
-p 33061:3306 \
-v ~/Docker/mariadb1/config:/etc/mysql/conf.d \
-v ~/Docker/mariadb1/datadir:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=root123 \
-e MYSQL_DATABASE=dbtest \
mariadb

docker ps
docker logs mariadb1
docker exec -it mariadb1 bash
mysql --user=root --password=root123
show databases;


Container-id -

Container-id -           $ docker ps -aq                         
Stop Container -         $ docker stop ed2896902b49                 
Start Container -        $ docker start ed2896902b49
Check Container logs-    $ docker logs ed2896902b49
Delete a Docker Image -  $ docker rmi ed2896902b49

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

Thursday, November 12, 2020

How To Install Refinery CMS (Ruby On Rails) On Ubuntu 18.04


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

Refinery CMS, often shortened to Refinery, is a free and open-source content management system written in Ruby as a Ruby on Rails web application with jQuery used as the JavaScript library. Refinery CMS supports Rails 3.2 and Rails 4.2 and Rails 5.1.
Offcial Website: https://www.refinerycms.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-get update ; apt install -y build-essential software-properties-common curl wget nano git net-tools lsb-release apt-transport-https

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

sudo apt-get update ; sudo 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 nodejs libpq-dev  mysql-client mysql-server libmysqlclient-dev linuxbrew-wrapper -y

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
rbenv rehash
gem install rails -v 5.2.1
rbenv rehash
gem update --system
gem install rdoc
brew install imagemagick

gem install refinerycms
refinerycms rickrockstar
cd rickrockstar/
rails server
http://localhost:3000/refinery
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tuesday, November 10, 2020

How To Install Fathom Analytics with Apache on Ubuntu 18.04 LTS

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

 Fathom is a self-hosted open source web analytics platform that provides simple, useful website statistics without tracking or storing your users' personal information. It is a very good alternative to Google Analytics with a simple web interface that can be used for small and medium businesses. Fathom gives you full control over your data without using third-party solutions. Fathom offers you top pages, top referrers, bounce rate and average time spent on your website.
Offcial Website: https://usefathom.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

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'

apt update ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad apache2 mariadb-server

a2enmod proxy proxy_http ; 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 https://github.com/usefathom/fathom/releases/download/latest-development/fathom-linux-amd64
mv fathom-linux-amd64 /usr/local/bin/fathom  ; chmod 755 /usr/local/bin/fathom

leafpad .env &>/dev/null
FATHOM_SERVER_ADDR=9000
FATHOM_DEBUG=true
FATHOM_DATABASE_DRIVER="mysql"
FATHOM_DATABASE_NAME="db"
FATHOM_DATABASE_USER="dbuser"
FATHOM_DATABASE_PASSWORD="dbpass"
FATHOM_DATABASE_HOST="localhost"
FATHOM_DATABASE_SSLMODE=""
FATHOM_SECRET="random-secret-string"

fathom --config=.env user add --email=admin@yourdomain.com.com --password=yourpassword123
fathom server

nano /etc/systemd/system/fathom.service
[Unit]
Description=Fathom server management service unit
Requires=network.target
After=network.target

[Service]
Type=simple
User=root
Restart=always
RestartSec=3
WorkingDirectory=/root
ExecStart=/usr/local/bin/fathom server

[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl enable fathom ; systemctl start fathom ; systemctl status fathom

leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
    ServerName yourdomain.com
    ServerAdmin admin@yourdomain.com
    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:9000/
    ProxyPassReverse / http://127.0.0.1:9000/
    TransferLog /var/log/apache2/yourdomain_access.log
    ErrorLog /var/log/apache2/yourdomain_error.log
</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

Example email=admin@yourdomain.com.com  || password=yourpassword123

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

Saturday, November 7, 2020

How To Install Fae CMS (Ruby On Rails) on Ubuntu 18.04

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

 Fae: A Formidable Rails CMS
Fae CMS is an open source content management system (CMS) for Ruby on Rails ||
Offcial Website: https://www.faecms.com/documentation
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 -y

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

rails new faecms
cd ~/faecms
nano Gemfile
gem 'fae-rails'
bundle install
rails g fae:install
rails server --binding=0.0.0.0
http://localhost:3000/admin

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

Thursday, November 5, 2020

How To Install OrangeScrum with Apache2 on Ubuntu 18.04 LTS

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

 OrangeScrum is a free and open source project management and collaboration tool written in PHP with CakePHP framework. It is simple, easy to use and ideal for small or medium businesses. It is used to manage projects, teams, documents, task, and communicate with the team on important issues. Orangescrum comes with lots of features like, Visual representation, kanban view, All in one screen, daily email catch-up, Gantt Charts, conversation thread, ticketing system, Dropbox integration, and many more. You can easily collaborate with Employees, Leaders, Clients and Freelancers from the central location.
Offcial Website: https://www.orangescrum.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 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 php7.2-enchant php-memcache xvfb libfontconfig wkhtmltopdf

systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
mysql -u root -p
SHOW VARIABLES LIKE 'sql_mode';
set global sql_mode='';
set global sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

a2enmod headers rewrite ; phpenmod mbstring ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf

Create Mariadb Database :
mysql -u root -p
CREATE DATABASE orangescrumdb;
GRANT ALL PRIVILEGES ON orangescrumdb.* TO 'orangescrumuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit;

Orangescrum Download Link: https://www.orangescrum.org/free-download
Select installation package - PHP7.2-(Manual) - ( i already Downloaded it )

ls /home/ubuntu/Downloads/
unzip /home/ubuntu/Downloads/orangescrum-master.zip -d /var/www/html/
mv /var/www/html/orangescrum-php72/ /var/www/html/orangescrum
leafpad /var/www/html/orangescrum/app/Config/constants.php &>/dev/null
_____________________________________________________________________________________________________
important Part:
SMTP setting:
ssl://smtp.gmail.com
Smtp Port: 465
SMTP Username: (your Gmail username Or smtp username )  
SMTP Password: (your Gmail password Or smtp Account Password )

define("WEB_DOMAIN", "www.yourdomain.com"); //ex. demo.orangescrum.com
define('FROM_EMAIL_NOTIFY', 'your Gmail username'); //(REQUIRED)
define('SUPPORT_EMAIL', 'your Gmail username'); //(REQUIRED) From Email
______________________________________________________________________________________________________

leafpad /var/www/html/orangescrum/app/Config/database.php &>/dev/null      [ class DATABASE_CONFIG { ]
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
cd /var/www/html/orangescrum ; mysql -u orangescrumuser -p orangescrumdb < database.sql   

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

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

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

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

Friday, October 30, 2020

How To Deploy MariaDB on Docker Without Dockerfile On Ubuntu 20.04

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

MariaDB is an open source relational database management system (DBMS).

Docker is an open source virtualization and containerization technology for building and containerizing your applications. It's a tool that allows you to create isolated containers that can be used to run your apps.
Offcial Website -https://www.docker.com/

MariaDB Dockerhub link - https://hub.docker.com/_/mariadb
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:
Ubuntu 20.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.10  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose

systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker

docker pull mariadb
docker run -d --name mariadb1 \
-p 33061:3306 \
-v ~/Docker/mariadb1/config:/etc/mysql/conf.d \
-v ~/Docker/mariadb1/datadir:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=root123 \
-e MYSQL_DATABASE=dbtest \
mariadb

docker ps
docker logs mariadb1
docker exec -it mariadb1 bash
mysql --user=root --password=root123
show databases;


Container-id -

Container-id -           $ docker ps -aq                         
Stop Container -         $ docker stop ed2896902b49                 
Start Container -        $ docker start ed2896902b49
Check Container logs-    $ docker logs ed2896902b49
Delete a Docker Image -  $ docker rmi ed2896902b49

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

 

Tuesday, October 27, 2020

How To Setup And Configure Mailcow Server On Ubuntu 18.04 LTS

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

 Mailcow is a lightweight mailserver suite based on multiple packages, like DoveCot, Postfix and many other open-source packages.
Offcial Website: https://mailcow.email/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https ca-certificates curl gnupg-agent -y

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

apt update ; apt-get install docker-ce docker-ce-cli containerd.io -y
docker run hello-world

curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
usermod -aG docker $USER

cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized

./generate_config.sh
docker-compose pull
docker-compose up -d
https://www.yourdomain.com
admin/moohoo

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

Friday, October 23, 2020

How To Install OpenCMS with Nginx Mariadb On Ubuntu 18.04

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

 OpenCMS is an opensource content management framework based on Java… It helps content managers to create and maintain beautiful websites fast and efficiently….. Developed by Alkacon Software, it supports multi-language, multi-site on an enterprise-scale |
Offcial Website: http://www.opencms.org/en/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 ; echo $JAVA_HOME ; java -version ; javac -version
JAVA_HOME:/usr/java/jdk-12.0.2

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'

apt update ; apt install -y build-essential software-properties-common curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https mariadb-server mariadb-client nginx -y
mysql_secure_installation

Mariadb Username/Pass: root/password

groupadd tomcat ; useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
cd /opt/ ; wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.8/bin/apache-tomcat-9.0.8.tar.gz
tar -xzvf apache-tomcat-9.0.8.tar.gz ; mv apache-tomcat-9.0.8/ tomcat/
chmod -R 777 /opt/tomcat/ ; chown tomcat:tomcat -R /opt/tomcat/
nano ~/.bashrc
export CATALINA_HOME=/opt/tomcat
source ~/.bashrc ; echo $CATALINA_HOME

nano /etc/systemd/system/apache-tomcat.service
[Unit]
Description=Apache Tomcat Web Application Container
After=network.target

[Service]
Type=forking
Environment=JAVA_HOME=/usr/java/jdk-12.0.2
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'

ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh

User=tomcat
Group=tomcat
UMask=0007
RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start apache-tomcat ; systemctl enable apache-tomcat ; systemctl status apache-tomcat

leafpad /opt/tomcat/conf/tomcat-users.xml &>/dev/null
<tomcat-users>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="admin-gui,manager-gui"/>
</tomcat-users>
leafpad /opt/tomcat/webapps/manager/META-INF/context.xml &>/dev/null
<!-- -->
leafpad /opt/tomcat/webapps/host-manager/META-INF/context.xml &>/dev/null
<!-- -->


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

  access_log /var/log/nginx/yourdomain.com_access.log;
  error_log /var/log/nginx/yourdomain.com_error.log;
  location / {
     proxy_pass http://127.0.0.1:8080;
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}
rm /etc/nginx/sites-enabled/default
nginx -t  ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx  

cd /tmp && wget http://www.opencms.org/downloads/opencms/opencms-11.0.0.zip
unzip opencms-11.0.0
mv opencms.war /opt/tomcat/webapps/opencms.war ; chown tomcat:tomcat /opt/tomcat/webapps/opencms.war
systemctl restart apache-tomcat

http://www.yourdomain.com
http://www.yourdomain.com/opencms/setup

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

Thursday, October 22, 2020

How To Install Monica Personal Relationship Manager with Nginx on Ubuntu 18.04 LTS

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

 Monica is a free, open source web-based Personal Relationship Management software written in the Laravel framework. It is used to keep track of all the important details about your friends and family. You can easily add and manage contacts, define relationships between contacts, set auto reminders for birthdays using Monica. You can also track conversations made on social media or SMS using Monica. Monica has an ability to define what section should appear on the contact sheet.
Offcial website:https://www.monicahq.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 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 :
curl -sL https://deb.nodesource.com/setup_10.x | bash -
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 nodejs

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';
flush privileges;
quit

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 ]

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

mkdir -p /var/www/html/monica ; cd /var/www/html/monica
git clone https://github.com/monicahq/monica.git .
git checkout tags/v2.1.1
mv .env.example .env
nano .env
composer install --no-interaction --no-suggest --no-dev --ignore-platform-reqs
npm install

npm install --save v-tooltip
npm install --save vue-directive-tooltip/css/index.css
npm run production
php artisan key:generate
php artisan setup:production
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/monica/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.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

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

Saturday, October 17, 2020

How To Install Rancher ( GUI Docker Containers Manager ) On Ubuntu 20.04

 

Rancher is an open source container management platform. It allows you to run and manage Docker and Kubernetes containers with ease. Rancher provides infrastructure services such as multi-host networking, load balancing, and volume snapshots. Offcial Website -https://rancher.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment:Ubuntu 20.04 LTS         Hostname - www.yourdomain.com  - ip Address - 192.168.1.10  
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose

systemctl enable --now docker ; docker --version ; docker-compose version
usermod -aG docker $USER ; newgrp docker

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
docker ps
http://192.168.1.10:8080/

CONTAINER ID -
     
docker stop CONTAINER ID
docker start CONTAINER ID
docker rm CONTAINER ID

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

Thursday, October 15, 2020

How To install Navigate cms On Ubuntu 18.04 LTS

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

Navigate CMS, an open source content management system for everybody.
Offcial Website: http://www.navigatecms.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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

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.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

Mariadb Default User: root
Passwrd:yourpassword

cd /tmp ; wget http://master.dl.sourceforge.net/project/navigatecms/releases/navigate-2.8.6r1385.zip
unzip navigate-2.8.6r1385.zip -d /var/www/html/navigate
Or
cd /tmp ; wget wget https://netix.dl.sourceforge.net/project/navigatecms/releases/navigate-2.8r1302.zip
unzip navigate-2.8r1302.zip -d /var/www/html/navigate
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/navigate/
     ServerName www.yourdomain.com

     <Directory /var/www/html/navigate/>
          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 restart apache2
http://www.yourdomain.com/setup.php

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

Monday, October 12, 2020

How To Install Matomo Web Analytics WITH Nginx on Ubuntu 18.04

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

 Matomo (formerly Piwik) is a free and open source web analytics application developed by a team of international developers, that runs on a PHP/MySQL webserver.
Offcial Website: https://matomo.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

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;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

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

cd /tmp && wget https://builds.matomo.org/piwik.zip
unzip piwik.zip ; mv piwik /var/www/html/matomo
chown -R www-data:www-data /var/www/html/matomo/ ; chmod -R 755 /var/www/html/matomo/

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/matomo/;

    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

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

How To Install Matomo Web Analytics WITH Apache2 on Ubuntu 18.04

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

 Matomo (formerly Piwik) is a free and open source web analytics application developed by a team of international developers, that runs on a PHP/MySQL webserver.
Offcial Website: https://matomo.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

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

cd /tmp && wget https://builds.matomo.org/piwik.zip
unzip piwik.zip ; mv piwik /var/www/html/matomo
chown -R www-data:www-data /var/www/html/matomo/ ; chmod -R 755 /var/www/html/matomo/

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

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

     <Directory /var/www/html/matomo/>
          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
Username:admin        Password: B4r2nd9nTR    Email:  mail@yourdomain.com

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

Friday, October 9, 2020

How To Install Opigno LMS with Apache on Ubuntu 18.04

Video Tutorial - 

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

Opigno LMS is a full-fledged Learning Management System based on Drupal. It allows to very easily create engaging learning paths, assess the knowledge of students, employees or partners, and monitor their achievements thanks to the reporting dashboards.
Offcial Website:https://www.opigno.org/en
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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

sed -i s,"upload_max_filesize = 2M","upload_max_filesize = 64M",g /etc/php/7.2/apache2/php.ini

curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
cd /var/www/html ; composer create-project opigno/opigno-composer opigno
cd /var/www/html/opigno ; composer install
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/opigno/web/
     ServerName www.yourdomain.com

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

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

Sunday, October 4, 2020

How To install Omeka Classic on Ubuntu 18.04

 Video Tutorial -

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

Omeka Classic is a free and open source web publishing platform for sharing digital collections and creating media-rich online exhibits. Omeka Classic enables you to create complex narratives and share rich collections and content at low cost without sacrificing design and technical quality. You can extend its functionality with themes and plugins.
Offcial Website: https://omeka.org/classic/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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

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

cd /tmp ; wget https://github.com/omeka/Omeka/releases/download/v2.6.1/omeka-2.6.1.zip
unzip omeka-2.6.1.zip ; cp -r omeka-2.6.1 /var/www/html/omeka
chown -R www-data:www-data /var/www/html/omeka ; chmod -R 755 /var/www/html/omeka/

leafpad /var/www/html/omeka/db.ini &>/dev/null
[database]
host     = "localhost"
username = "dbuser"
password = "dbpass"
dbname   = "db"
prefix   = "omeka_"
charset  = "utf8"
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/omeka/
     ServerName www.yourdomain.com

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

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

Thursday, October 1, 2020

How To Install PanoplyCMS on Ubuntu 18.04

 Video Tutorial -

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

 PANOPLY CMS is Open Source CMS based on meteor framework.
Features:
Single Admin
Multiple Categories
Articles Associated With Created Categories
Multiple & Multilevel Menus
Tags associated with articles
Dynamic Template
Menu Module that can load at any given position
HTML Blocks that can load at any given position
Slider Module that can load at any given position
Offcial Website: http://panoplycms.com/
Github:https://github.com/DeligenceTechnologies/Panoplycms
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 ; sudo 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


sudo apt-get update ; sudo 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 -y

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 pm2 -g
curl https://install.meteor.com/ | sh
cd ~/ ; git clone https://github.com/DeligenceTechnologies/PanoplyCMS.git
cd PanoplyCMS
meteor add kadira:graphql
meteor add react
meteor add react-meteor-data
meteor npm install
meteor npm install --save babel-runtime
meteor --settings settings.json

Frontend Link : http://localhost:3000 , Backend Link: http://localhost:3000/admin
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sunday, September 27, 2020

How To Run Jenkins on Docker container On Ubuntu 20.04

 Video Tutorial -

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

Jenkins is an open source automation tool written in Java with plugins built for Continuous Integration purpose.
Offcial Website -https://www.jenkins.io/

Docker is an open source platform for building, deploying, and managing containerized applications.
Docker website - https://www.docker.com/
Docker container is a virtualized run-time environment where users can isolate applications from the underlying system.
jenkins Dockerhub Link -https://hub.docker.com/_/jenkins/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment: Ubuntu 20.04 LTS        Hostname - www.yourdomain.com         ip Address - 192.168.1.10
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose
systemctl enable --now docker ; usermod -aG docker $USER ; newgrp docker

docker pull jenkins/jenkins
docker run -p 8080:8080 --name=jenkins-master jenkins/jenkins
http://192.168.1.10:8080

Container-id -docker ps -aq                         
Stop Container - docker stop Container-id               
Start Container - docker start Container-id
Check Container logs- docker logs Container-id
Delete a Docker Image -docker rmi Container-id

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

Thursday, September 24, 2020

How To install Papoo CMS On Ubuntu 18.04

Video Tutorial - 

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

 Papoo CMS is a multi-lingual open source content management system with additional functions and SEO features.
Offcial Website: https://www.papoo.de/free-cms-kostenloser-download.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 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;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

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 ]

cd /tmp ; wget https://www.papoo.de/dokumente/upload/5bd66_papoo-light-v1811.zip
mkdir /var/www/html/papoo
unzip 5bd66_papoo-light-v1811.zip -d /var/www/html/papoo
chown -R www-data:www-data /var/www/html/papoo/ ; chmod -R 755 /var/www/html/papoo/

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/papoo/;

    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
rm -rf /var/www/html/papoo/setup ; chmod 444 /var/www/html/papoo/lib/site_conf.php
http://www.yourdomain.com/interna/
Username: root

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

Sunday, September 20, 2020

How To Install MediaWiki On Ubuntu 18.04 With Nginx MariaDB And PHP

Video Tutorial -

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

 Mediawiki is a free and open source wiki software that allows you to create your own wiki site. It is written in PHP and uses MySQL/MariaDB database backend. Mediawiki comes with lots of features including, Multilanguage support, User Management, Content management and sharing, Editing, Formatting, Referencing and much more.
Offcial Website:https://www.mediawiki.org/wiki/MediaWiki
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 ]


wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz
tar -xvzf  mediawiki-1.33.0.tar.gz
cp -r mediawiki-1.33.0 /var/www/html/mediawiki
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/mediawiki/;

    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
cp -r /home/ubuntu/Downloads/LocalSettings.php /var/www/html/mediawiki/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------