Thursday, July 10, 2025

How To Install latest OpenSSL version from Source On Oracle Linux Server 9.1

 OpenSSL is a widely used crypto library that implements SSL and TLS protocols for secure communication over computer networks. Many programs like Apache Web server, PHP, Postfix, and many others use OpenSSL. OpenSSL provides support for various cryptographic algorithms such as ciphers (AES, Blowfish, DES, IDEA etc.), cryptographic hash functions (MD5, MD4, SHA-1, SHA-2, etc.), and public key cryptography (RSA, DSA, Diffie-Hellman key exchange).
__________________________________________________________________________________________________________________________________
Server - Os:  Oracle Linux Server 9.1   64Bit      | IP -192.168.1.50        |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
yum install perl-core zlib-devel -y

openssl version -a
Openssl Latest - https://www.openssl.org/source/-
cd /usr/local/src/ ; wget https://www.openssl.org/source/openssl-3.0.7.tar.gz
tar -xf openssl-3.0.7.tar.gz ; cd openssl-3.0.7

cd /usr/local/src/openssl-3.0.7
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
make ; make test ; make install
cd /etc/ld.so.conf.d/ ; nano openssl-3.0.7.conf
/usr/local/ssl/lib64

sudo ldconfig -v
mv /bin/openssl /bin/openssl.bak

nano  /etc/profile.d/openssl.sh
#Set OPENSSL_PATH
OPENSSL_PATH="/usr/local/ssl/bin"
export OPENSSL_PATH
PATH=$PATH:$OPENSSL_PATH
export PATH

chmod +x /etc/profile.d/openssl.sh ; source /etc/profile.d/openssl.sh
echo $PATH ; which openssl ; openssl version -a

______________________________________________________________________________________

How To Install GoAccess Web Log Analyzer on Oracle Linux Server 9

 GoAccess is a free, open-source, lightweight log analyzer written in C language. It can read and analyze log files of Apache, Nginx, CloudFront, Caddy, and more. It uses the ncurses library for its CLI interface. It is an interactive and real-time web server log analyzer that helps you to analyze and view web server logs quickly.
Homepage - https://goaccess.io/
__________________________________________________________________________________________________________________________________
Server - Os:  Oracle Linux Server 9   64Bit      | IP -192.168.1.50        |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y
dnf update -y
dnf install httpd ncurses-devel openssl-devel -y
systemctl start httpd ; systemctl enable httpd

wget https://tar.goaccess.io/goaccess-1.5.4.tar.gz
tar -xvzf goaccess-1.5.4.tar.gz
cd goaccess-1.5.4
autoreconf -fi
./configure --enable-utf8 --with-openssl
make ; make install
goaccess --version

nano /usr/local/etc/goaccess/goaccess.conf
time-format %H:%M:%S
date-format %d/%b/%Y
#ignore-panel REFERRERS
log-format COMBINED

goaccess /var/log/httpd/access_log
goaccess /var/log/httpd/access_log -o /var/www/html/stats.html
http://192.168.1.50/stats.html
__________________________________________________________________________________________________________________________________

How To Install Suricata IDS on Oracle Linux Server 9

 Suricata is an open-source detection engine that can act as an intrusion detection system (IDS) and an intrusion prevention system (IPS).
__________________________________________________________________________________________________________________________________
Server - Os:  Oracle Linux Server 9   64Bit      | IP -192.168.1.50        |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf info suricata
dnf install suricata -y
ip --brief add

nano /etc/suricata/suricata.yaml
HOME_NET: "[192.168.1.50]"
EXTERNAL_NET: "!$HOME_NET"


af-packet:
  - interface: ens33

default-rule-path: /var/lib/suricata/rules
rule-files:
  - suricata.rules

ethtool -K ens33 gro off lro off

nano /etc/sysconfig/suricata
OPTIONS="-i ens33 --user suricata "

systemctl enable --now suricata
systemctl status suricata
tail /var/log/suricata/suricata.log
__________________________________________________________________________________________________________________________________

How to install Redis server on Oracle Linux Server 9

 Redis is an open-source (BSD licensed), in-memory data structure store. It can be used as a database, cache and message broker. It supports different kinds of abstract data structures such as Strings, Hashes, Lists, Sets, sorted sets, hyperlogs, bitmaps, streams, and spatial indexes.
__________________________________________________________________________________________________________________________________
Server - Os:  Oracle Linux Server 9   64Bit      | IP -192.168.1.50        |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y

dnf install redis -y
systemctl start redis ; systemctl enable redis
redis-server -v
redis-cli
ping

Allow remote connections:-
nano /etc/redis/redis.conf
# bind 127.0.0.1 ::1
protected-mode no
systemctl restart redis
firewall-cmd --zone=public --permanent --add-service=redis ; firewall-cmd --reload
redis-cli -h REDISHOSTNAME_OR_IPADDRESS
redis-cli -h 192.168.1.50
INFO
__________________________________________________________________________________________________________________________________



Monday, June 23, 2025

How to Install Composer with PHP

 Composer is the standard tool for managing PHP dependencies. It automates library installation, enforces version constraints, and helps organize autoloading, making it an essential part of modern PHP development. Whether you're building with frameworks like Laravel, Symfony, or Slim, Composer ensures consistency across environments and simplifies dependency resolution.
_____________________________________________________________________________________________________________
Testing Environment: Ubuntu 24.04.1 LTS       Hostname -          ip Address - 
_____________________________________________________________________________________________________________
apt update ; apt install build-essential net-tools curl git software-properties-common 

sudo apt install php-cli php-zip php-curl -y
cd ~
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`

echo $HASH

php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer

composer
__________________________________________________________________________________________________________________





Thursday, April 3, 2025

How To Install Jitsi On Ubuntu 24.04 LTS

 Jitsi is an open-source project that allows you to build and deploy secure video conferencing solutions. This tutorial will teach us how to install Jitsi on Ubuntu 24.04 LTS.
_____________________________________________________________________________________________________________
Testing Environment: Ubuntu 24.04.1 LTS       Hostname -          ip Address -
_____________________________________________________________________________________________________________
apt update ; apt install build-essential net-tools curl git software-properties-common

sudo apt update -y && sudo apt ugprade -y
sudo hostnamectl set-hostname jitsi.tutorial.com
curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c 'gpg --dearmor > /usr/share/keyrings/jitsi-keyring.gpg' && \
echo 'deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/' | sudo tee /etc/apt/sources.list.d/jitsi-stable.list > /dev/null && \
sudo apt update

sudo apt remove --purge apache2
sudo apt install nginx-full

sudo systemctl status nginx ; sudo systemctl start nginx ; sudo systemctl enable nginx
sudo apt install jitsi-meet -y
admin@jitsi.tutorial.com
__________________________________________________________________________________________________________________




Saturday, March 29, 2025

How To Install Odoo 18 on Ubuntu 24.04 LTS

 Odoo is an open-source Python and Javascript software used to manage business processes. It includes various features such as customer relationship management, e-commerce, accounting, billing, manufacturing, project management, etc. Odoo uses the PostgreSQL database management system to store its data.
_____________________________________________________________________________________________________________
Testing Environment: Ubuntu 24.04.1 LTS       Hostname -          ip Address -
_____________________________________________________________________________________________________________
apt update ; apt install build-essential net-tools curl git software-properties-common

sudo apt install build-essential wget git python3-pip python3-dev python3-venv python3-wheel python3 libfreetype6-dev libxml2-dev libzip-dev libsasl2-dev python3-setuptools libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev -y

sudo apt-get install npm node-less wkhtmltopdf -y
npm install -g less less-plugin-clean-css
python3 -V
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin

sudo apt-get install postgresql -y
sudo systemctl start postgresql && sudo systemctl enable postgresql ; sudo systemctl status postgresql
sudo useradd -m -U -r -d /opt/odoo18 -s /bin/bash odoo18
sudo su - postgres -c "createuser -s odoo18"

su - odoo18
pwd
git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 /opt/odoo18/odoo18
python3.12 -m venv odoo18-venv
source odoo18-venv/bin/activate
pip install --upgrade pip
pip3 install wheel
pip3 install -r odoo18/requirements.txt
deactivate

su -
mkdir /opt/odoo18/odoo18-custom-addons
chown -R odoo18:odoo18 /opt/odoo18/odoo18-custom-addons
mkdir -p /var/log/odoo18/ && touch /var/log/odoo18/odoo18.log
chown -R odoo18:odoo18 /var/log/odoo18/

touch /etc/odoo18.conf
nano /etc/odoo18.conf
[options]

admin_passwd = StrongPasswordHere
db_host = False
db_port = False
db_user = odoo18
db_password = False
xmlrpc_port = 8069
logfile = /var/log/odoo18/odoo18.log
addons_path = /opt/odoo18/odoo18/addons,/opt/odoo18/odoo18-custom-addons

touch /etc/systemd/system/odoo18.service
nano /etc/systemd/system/odoo18.service
[Unit]
Description=odoo18

[Service]
Type=simple
SyslogIdentifier=odoo18
PermissionsStartOnly=true
User=odoo18
Group=odoo18
ExecStart=/opt/odoo18/odoo18-venv/bin/python3 /opt/odoo18/odoo18/odoo-bin -c /etc/odoo18.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target

sudo systemctl start odoo18 && sudo systemctl enable odoo18 ; sudo systemctl status odoo18
http://127.0.0.1:8069
__________________________________________________________________________________________________________________