InfluxDB is an open-source time series database (TSDB) developed by the company InfluxData.
Telegraf is a server-based agent for collecting and sending all metrics and events from databases, systems, and IoT sensors.
__________________________________________________________________________________________________________________________________
Server - Os: Oracle Linux Server 9.0 64Bit | IP -192.168.1.50 |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = influxdb Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF
sudo dnf install influxdb2
sudo systemctl start influxdb ; sudo systemctl enable influxdb ; sudo systemctl status influxdb
sudo firewall-cmd --add-port=8086/tcp --permanent ; sudo firewall-cmd --reload ; sudo firewall-cmd --list-ports
sudo dnf install influxdb2-cli -y
which influx ; influx version
sudo influx completion bash > /etc/bash_completion.d/influx.sh
sudo chmod +x /etc/bash_completion.d/influx.sh
sudo influx TAB
sudo influx setup
sudo influx user list
sudo influx auth list
export INFLUX_TOKEN=OK15O5laLtEr88RFtLE9xtVAN7cNCieQFT_YJ2FYEC5T-fYcZkGyp1A7e_vjhIXUKZDBktaPdH0GUmlVQDzsDQ==
sudo influx v1 shell $INFLUX_TOKEN
show DATABASES
http://192.168.5.100:8086)
alice
__________________________________________________________________________________________________________________________________
Sunday, December 11, 2022
How To Install InfluxDB and Telegraf on Oracle Linux Server 9
Sunday, October 9, 2022
HAProxy: Configure HTTP Load Balancing Server in Rocky Linux 8.5
in This Tutorial you will Learn " HAProxy: Configure HTTP Load Balancing Server in Rocky Linux 8.5"
HAProxy is a free and open source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spreads requests across multiple servers. It is written in C and has a reputation for being fast and efficient.
-----------+---------------------------+--------------------------+-------------
| | |
|192.168.1.20 |192.168.1.80 |192.168.1.70
+----------+-----------+ +-----------+----------+ +-----------+----------+
| [ www.primaryhost.com ] | | [ www.tertiary.com ] | | [ www.example.com ] |
| HAProxy | Web Server#1 | Web Server#2 |
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install haproxy
gedit /etc/haproxy/haproxy.cfg &>/dev/null
frontend http-in
# listen 80 port
bind *:80
# set default backend
default_backend backend_servers
# send X-Forwarded-For header
option forwardfor
backend backend_servers
# balance with roundrobin
balance roundrobin
# define backend servers
server node01 192.168.1.80:80 check
server node02 192.168.1.70:80 check
systemctl enable --now haproxy ; systemctl daemon-reload ; systemctl restart haproxy
systemctl status firewalld
________________________________________________________________________________________
Backends Web server 1-
cat /etc/system-release ; sestatus ; hostname ; hostname -I
dnf install httpd -y
gedit /etc/httpd/conf/httpd.conf &>/dev/null
LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
systemctl restart httpd
echo "<h1>This is a Test Page www.tertiary.com</h1>" > /var/www/html/index.html
_________________________________________________________________________________________
Backends Web server 2-
cat /etc/system-release ; sestatus ; hostname ; hostname -I
yum install httpd -y
gedit /etc/httpd/conf/httpd.conf &>/dev/null
LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
systemctl restart httpd
echo "<h1>This is a Test Page www.example.com</h1>" > /var/www/html/index.html
_________________________________________________________________________________________
Thursday, September 22, 2022
How To Enable HAProxy Stats On Rocky Linux 8.5
in This Tutorial you will Learn "How To Enable HAProxy Stats On Rocky Linux 8.5"
HAProxy Stats is a useful application that provides useful information about total connection, data transfer, server state and more.
HAProxy is a free, very fast and reliable reverse-proxy offering high availability, load balancing, and proxying for TCP and HTTP-based applications.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf -y install haproxy
gedit /etc/haproxy/haproxy.cfg &>/dev/null
frontend http-in
# listen 80 port
bind *:80
# set default backend
default_backend backend_servers
# send X-Forwarded-For header
option forwardfor
backend backend_servers
# balance with roundrobin
balance roundrobin
# define backend servers
server node01 192.168.1.80:80 check
server node02 192.168.1.70:80 check
# enable statistics reports
stats enable
# auth info for statistics site
stats auth admin:adminpassword
# hide version of HAProxy
stats hide-version
# display HAProxy hostname
stats show-node
# refresh time
stats refresh 60s
# statistics reports URI
stats uri /haproxy?stats
systemctl enable --now haproxy ; systemctl daemon-reload ; systemctl restart haproxy
http://127.0.0.1/haproxy?stats
________________________________________________________________________________________
Thursday, June 30, 2022
How To Install Craft CMS on Rocky Linux 8
in This Tutorial you will Learn " How To Install Craft CMS on Rocky Linux 8"
Craft CMS is an open source CMS written in PHP. Craft CMS source code is hosted on GitHub.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install nginx mariadb-server php php-cli php-fpm php-common php-curl php-gd php-json php-mbstring php-mysqli php-pgsql php-zip php-intl php-xml php-pdo -y
nano /etc/php.ini
memory_limit = 256M
nano /etc/php-fpm.d/www.conf
user = nginx
group = nginx
systemctl start nginx mariadb php-fpm ; systemctl enable nginx mariadb php-fpm
mysql
create database craftdb;
grant all on craftdb.* to craftuser@localhost identified by 'securepassword';
flush privileges;
quit;
mysql_secure_installation
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
cd /var/www/html/ ; composer create-project craftcms/craft craft
chown -R nginx:nginx /var/www/html/craft ; chown -R nginx:nginx /var/lib/php/session
nano /etc/nginx/conf.d/craft.conf
server {
listen 80;
server_name craft.example.com;
root /var/www/html/craft/web;
index index.php;
location / {
try_files $uri/index.html $uri $uri/ /index.php?$query_string;
}
location ~ [^/]\.php(/|$) {
try_files $uri $uri/ /index.php?$query_string;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/www.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_PROXY "";
}
}
nano /etc/nginx/nginx.conf
server_names_hash_bucket_size 64;
systemctl restart nginx
echo "192.168.1.20 craft.example.com" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
craft.example.com
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Saturday, June 18, 2022
How To Install Laravel PHP Framework on Rocky Linux 8
in This Tutorial you will Learn " How To Install Laravel PHP Framework on Rocky Linux 8"
Laravel is an open-source PHP framework designed for web application development. It is built on various components of the Symfony framework and makes it easier to program PHP web applications. It provides a meaningful and creative syntax for simplifying common tasks such as authentication, routing, sessions, working with databases, and more. It makes development process simple for developers without compromising program capabilities.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install nginx mariadb-server php php-fpm php-common php-xml php-mbstring php-json php-zip php-mysqlnd curl unzip -y
systemctl start php-fpm nginx mariadb ; systemctl enable php-fpm nginx mariadb
nano /etc/php-fpm.d/www.conf
listen.owner = nginx
listen.group = nginx
nano /etc/php.ini
date.timezone = UTC
cgi.fix_pathinfo=1
systemctl restart php-fpm
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 --prefer-dist laravel/laravel laravelsite
chown -R nginx:nginx /var/www/html/laravelsite/storage/
chown -R nginx:nginx /var/www/html/laravelsite/bootstrap/cache/
chmod -R 0777 /var/www/html/laravelsite/storage/
chmod -R 0775 /var/www/html/laravelsite/bootstrap/cache/
nano /etc/nginx/conf.d/laravel.conf
server {
listen 80;
server_name laravel.yourdomain.com;
root /var/www/html/laravelsite/public;
index index.php;
charset utf-8;
gzip on;
gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php {
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/www.sock;
}
location ~ /\.ht {
deny all;
}
}
systemctl restart php-fpm nginx ; systemctl status nginx
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload
nano /etc/hosts
192.168.1.20 laravel.yourdomain.com
laravel.yourdomain.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thursday, June 2, 2022
How To Install Apache Solr on Rocky Linux 8.5
Apache Solr or Solr is a free and open-source search platform based on the Apache Lucene library. Solr is stands for Searching On Lucene with Replication, it is an enterprise-grade search platform written in Java.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install java-11-openjdk java-11-openjdk-devel
java --version
Latest- https://downloads.apache.org/lucene/solr/
wget https://downloads.apache.org/lucene/solr/8.11.1/solr-8.11.1.tgz
tar xzf solr-8.11.1.tgz
solr-8.11.1/bin/install_solr_service.sh solr-8.11.1.tgz
nano /etc/security/limits.conf
soft nofile 65000
hard nofile 65000
soft nproc 65000
hard nproc 65000
su - solr -c "/opt/solr/bin/solr restart"
firewall-cmd --add-port=8983/tcp --permanent ; firewall-cmd --reload
http://192.168.1.20:8983/solr
http://resolvable-hostname:8983/solr
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Friday, May 13, 2022
How To install GFortran ( Fortran Programming Language ) & Write a Hello World Program On Ubuntu 20.04
________________________________________________________________________________________
How To install GFortran ( Fortran Programming Language ) & Write a Hello World Program On Ubuntu 20.04
________________________________________________________________________________________
FORTRAN is a powerful programming language that is often over-shadowed by the more popular mainstream programming languages.
apt update ; apt-get install gfortran -y
gfortran --version
whereis gfortran ; which gfortran
Fortran Hello World Example: How To Write and Execute Fortran Program on Linux OS
nano helloworld.f
program hello
print *,"Hello World!"
end program hello
shorter Version -
nano helloworld.f
PRINT *,"Hello World!"
END
Compile the Fortran program - gfortran -ffree-form helloworld.f
Execute the Fortran program (a.out) - ./a.out
mv a.out helloworld
./helloworld
_______________________________________________________________________________________
Saturday, May 7, 2022
How To install Crystal Programming Language On Ubuntu 20.04
Crystal is a statically type-checked programming language. It was created with the beauty of Ruby and the performance of C in mind
Method : 1
curl -fsSL https://crystal-lang.org/install.sh | sudo bash
crystal --version
Method: 2
apt update ; apt install snapd -y
snap install crystal --classic
crystal --version
Friday, May 6, 2022
Setting Up Web Server Load Balancing Using ‘POUND’ With SSL/TLS On Rocky Linux
in This Tutorial you will Learn " How To Set Up Web Servers Load Balancing Using ‘POUND’ with
SSL/TLS Connection On Rocky Linux 8.5
Pound is a reverse-proxy load balancing server. It accepts requests from HTTP/HTTPS clients and distributes them to one or more Web servers.
SSL and TLS are both cryptographic protocols used to increase security by encrypting communication over computer networks.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
Backend server's IP address - 192.168.1.80
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf -y install Pound
mv /etc/pound.cfg /etc/pound.cfg.org
cd /etc/pki/tls/certs ; openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/pki/tls/certs/pound.pem -out /etc/pki/tls/certs/pound.pem
chmod 600 pound.pem
nano /etc/pound.cfg
User "pound"
Group "pound"
# log level (max: 5)
LogLevel 3
# specify LogFacility
LogFacility local1
# interval of heartbeat - seconds
Alive 30
# define frontend
ListenHTTP
Address 0.0.0.0
Port 80
End
ListenHTTPS
Address 0.0.0.0
Port 443
Cert "/etc/pki/tls/certs/pound.pem"
End
# Define Backend
Service
BackEnd
# backend server's IP address
Address 192.168.1.80
# backend server's port
Port 80
# set priority
# available value is 1-9, max priority is 9
Priority 5
End
End
systemctl enable --now pound
nano /etc/rsyslog.conf
*.info;mail.none;authpriv.none;cron.none;local1.none /var/log/messages
local1.* /var/log/pound.log
firewall-cmd --add-service=http ; firewall-cmd --runtime-to-permanent
systemctl daemon-reload ; systemctl restart rsyslog
https://localhost/
http://localhost/
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd -y
nano /etc/httpd/conf/httpd.conf
LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
echo "<h1>Web Server Load Balancing Using ‘POUND’ With SSLTLS</h1>" > /var/www/html/index.html
systemctl daemon-reload ; systemctl restart rsyslog httpd
_________________________________________________________________________________________
Friday, April 29, 2022
Setting Up Web Server Load Balancing Using ‘POUND’ On Rocky Linux
in This Tutorial you will Learn " How To Set Up Web Servers Load Balancing Using ‘POUND’ On Rocky Linux 8.5
Pound is a reverse-proxy load balancing server. It accepts requests from HTTP/HTTPS clients and distributes them to one or more Web servers.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
Backend server's IP address - 192.168.1.80
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf -y install Pound
mv /etc/pound.cfg /etc/pound.cfg.org
nano /etc/pound.cfg
User "pound"
Group "pound"
# log level (max: 5)
LogLevel 3
# specify LogFacility
LogFacility local1
# interval of heartbeat - seconds
Alive 30
# define frontend
ListenHTTP
Address 0.0.0.0
Port 80
End
# Define Backend
Service
BackEnd
# backend server's IP address
Address 192.168.1.80
# backend server's port
Port 80
# set priority
# available value is 1-9, max priority is 9
Priority 5
End
End
systemctl enable --now pound
nano /etc/rsyslog.conf
*.info;mail.none;authpriv.none;cron.none;local1.none /var/log/messages
local1.* /var/log/pound.log
firewall-cmd --add-service=http ; firewall-cmd --runtime-to-permanent
systemctl daemon-reload ; systemctl restart rsyslog
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd -y
nano /etc/httpd/conf/httpd.conf
LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
echo "<h1>This is a Test Page</h1>" > /var/www/html/index.html
systemctl daemon-reload ; systemctl restart rsyslog httpd
_________________________________________________________________________________________
Wednesday, April 27, 2022
How To Harden Apache Web Server on Rocky Linux 8.5
in This Tutorial you will Learn " How To Secure and Harden Your Apache Web Server On Rocky Linux 8.5 "
Apache is one of the most widely-used and popular web servers. It is also one of the most secure web servers available.
Apache is a popular web server used by millions of websites all over the world. As a result, they are often prey to security vulnerabilities and attacks. It is important to secure your Apache server against malicious attacks.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; httpd -v
_________________________________________________________________________________________
1. Hide Apache Server Name
gedit /etc/httpd/conf/httpd.conf &>/dev/null
ServerSignature Off
ServerTokens Prod
apachectl configtest
_________________________________________________________________________________________
2. Turn Off Directory Listing
gedit /etc/httpd/conf/httpd.conf &>/dev/null
<Directory /var/www/html/>
Options -Indexes
AllowOverride None
Require all granted
</Directory>
apachectl configtest
________________________________________________________________________________________
3. Disable Unnecessary Modules-
grep LoadModule /etc/httpd/conf.modules.d/00-base.conf
gedit /etc/httpd/conf.modules.d/00-base.conf &>/dev/null
#LoadModule info_module modules/mod_info.so
#LoadModule userdir_module modules/mod_userdir.so
_________________________________________________________________________________________
4.Disable Symlinks-
gedit /etc/httpd/conf/httpd.conf &>/dev/null
Options -Indexes -FollowSymLinks
apachectl configtest
_________________________________________________________________________________________
5. Disable SSI & CGI Execution
gedit /etc/httpd/conf/httpd.conf &>/dev/null
Options -Indexes -FollowSymLinks -ExecCGI -Includes
apachectl configtest
_________________________________________________________________________________________
6. Protect from Clickjacking
gedit /etc/httpd/conf/httpd.conf &>/dev/null
Header append X-FRAME-OPTIONS "SAMEORIGIN"
apachectl configtest
_________________________________________________________________________________________
7. Disable ETags
gedit /etc/httpd/conf/httpd.conf &>/dev/null
FileETag None
apachectl configtest
_________________________________________________________________________________________
8. Protect from XSS attacks.
gedit /etc/httpd/conf/httpd.conf &>/dev/null
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
</IfModule>
apachectl configtest
_________________________________________________________________________________________
systemctl daemon-reload ; systemctl restart httpd ; systemctl status httpd
_________________________________________________________________________________________
Saturday, April 23, 2022
How To Install Odoo 14 ERP on Rocky Linux 8
in This Tutorial you will Learn " How To Install Odoo 14 ERP on Rocky Linux 8"
Odoo is a group of business management software tools that include features for billing, accounting, eCommerce, CRM, warehouse, project management, and inventory management. It is designed for small and medium businesses and is available in the cloud or on-premise. It is user-friendly, scalable, customizable, flexible, and helps you manage businesses and organizations with a CMS.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf install python3 python3-devel git gcc git redhat-rpm-config libxslt-devel bzip2-devel openldap-devel libjpeg-devel freetype-devel -y
dnf install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm
dnf install @postgresql:12
postgresql-setup initdb
systemctl enable --now postgresql
su - postgres -c "createuser -s odoo14"
useradd -m -U -r -d /opt/odoo14 -s /bin/bash odoo14
su - odoo14
git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 /opt/odoo14/odoo
cd /opt/odoo14
python3 -m venv odooenv
source odooenv/bin/activate
pip3 install -r odoo/requirements.txt
deactivate
mkdir /opt/odoo14/odoo-custom-addons
exit
nano /etc/odoo14.conf
[options]
admin_passwd = secure-password
db_host = False
db_port = False
db_user = odoo14
db_password = False
addons_path = /opt/odoo14/odoo/addons, /opt/odoo14/odoo-custom-addons
nano /etc/systemd/system/odoo.service
[Unit]
Description=Odoo14
Requires=postgresql.service
After=network.target postgresql.service
[Service]
Type=simple
SyslogIdentifier=odoo14
PermissionsStartOnly=true
User=odoo14
Group=odoo14
ExecStart=/opt/odoo14/odooenv/bin/python3 /opt/odoo14/odoo/odoo-bin -c /etc/odoo14.conf
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl enable --now odoo ; systemctl status odoo
http://192.168.1.20:8069
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Friday, April 22, 2022
How To Install OpenCart on Rocky Linux 8
in This Tutorial you will Learn " How To Install OpenCart on Rocky Linux 8"
OpenCart is an open-source e-commerce platform written in PHP. It is simple, lightweight, user-friendly, and provides a web interface to manage it from the web browser. It allows you to easily manage product inventory, orders, affiliates, discounts, product reviews, payment gateways, and more.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd mariadb-server -y
dnf install epel-release -y
dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module reset php
dnf module enable php:remi-8.0
dnf install php php-gd php-ldap php-zip php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mysqlnd php-snmp php-soap curl curl-devel unzip git -y
systemctl start httpd ; systemctl enable httpd ; systemctl start mariadb ; systemctl enable mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE opencart;
CREATE USER 'opencart'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON opencart.* TO 'opencart'@'localhost';
FLUSH PRIVILEGES;
EXIT;
git clone https://github.com/opencart/opencart.git
cd opencart ; mv upload /var/www/html/opencart
cp /var/www/html/opencart/config-dist.php /var/www/html/opencart/config.php
cp /var/www/html/opencart/admin/config-dist.php /var/www/html/opencart/admin/config.php
chown -R apache:apache /var/www/html/opencart ; chmod -R 755 /var/www/html/opencart
nano /etc/httpd/conf.d/opencart.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/opencart/
ServerName www.yourdomain.com
<Directory /var/www/html/opencart/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error_log
CustomLog /var/log/httpd/yourdomain.com-access_log common
</VirtualHost>
systemctl restart httpd
echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
www.yourdomain.com
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
__________________________________________________________________________________________
Tuesday, April 19, 2022
How To Install Joomla on Rocky Linux 8
in This Tutorial you will Learn " How to Install Joomla on Rocky Linux 8"
Joomla is a free and open source platform Content Management System (CMS) written in PHP. It enables you to create dynamic web pages and applications with ease. It includes an easy-to-use design that allows you to get the most out of its features and functionality.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,pdo}
systemctl enable httpd mariadb ; systemctl start httpd mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE testdb;
CREATE USER `testuser`@`localhost` IDENTIFIED BY 'testpassword';
GRANT ALL ON testdb.* TO `testuser`@`localhost`;
FLUSH PRIVILEGES;
exit;
mkdir -p /var/www/yourdomain.com/
chown -R $USER:$USER /var/www/yourdomain.com ; chmod -R 755 /var/www
wget https://downloads.joomla.org/cms/joomla4/4-0-5/Joomla_4-0-5-Stable-Full_Package.zip?format=zip -O joomla.zip
unzip joomla.zip -d /var/www/yourdomain.com/
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/yourdomain.com/joomla/
<Directory /var/www/yourdomain.com/joomla/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
apachectl configtest
echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
_________________________________________________________________________________________
How To Install Drupal 9 on Rocky Linux 8
in This Tutorial you will Learn " How To Install Drupal 9 on Rocky Linux 8"
Drupal is content management software. It's used to make many of the websites and applications you use every day.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,pdo}
systemctl enable httpd mariadb ; systemctl start httpd mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE testdb;
CREATE USER `testuser`@`localhost` IDENTIFIED BY 'testpassword';
GRANT ALL ON testdb.* TO `testuser`@`localhost`;
FLUSH PRIVILEGES;
exit;
DRUPAL_VERSION="9.3.7"
wget https://ftp.drupal.org/files/projects/drupal-$DRUPAL_VERSION.tar.gz
tar xvf drupal-${DRUPAL_VERSION}.tar.gz
mv drupal-${DRUPAL_VERSION} /var/www/html/drupal
mkdir /var/www/html/drupal/sites/default/files
cp /var/www/html/drupal/sites/default/default.settings.php /var/www/html/drupal/sites/default/settings.php
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/html/drupal/
<Directory /var/www/html/drupal/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
chown -R $USER:$USER /var/www/html/ ; chmod -R 755 /var/www/html/
apachectl configtest
echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
__________________________________________________________________________________________
Monday, April 18, 2022
How to Install and Configure RabbitMQ Server on Rocky Linux 8
in This Tutorial you will Learn " How to Install and Configure RabbitMQ Server on Rocky Linux 8"
RabbitMQ is a free and open-source message broker software solution designed for applications that need to support legacy protocols, such as STOMP and MQTT. It is written in Erlang and can be used in implementing AMQP on modern operating systems. RabbitMQ receives messages from publishers and routes them to consumers. It provides your application with a common platform to send and receive messages. Currently, RabbitMQ is used worldwide by both small startups and large organizations.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release curl -y
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | bash
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | bash
dnf install erlang -y
dnf install rabbitmq-server -y
systemctl start rabbitmq-server ; systemctl enable rabbitmq-server
rabbitmqctl add_user admin
rabbitmqctl set_user_tags admin administrator
rabbitmqctl list_users
rabbitmqctl add_vhost /new_vhost
rabbitmqctl list_vhosts
rabbitmqctl set_permissions -p /new_vhost admin ".*" ".*" ".*"
rabbitmq-plugins enable rabbitmq_management
systemctl restart rabbitmq-server
rabbitmqctl status
ss -antpl | grep 15672
http://192.168.1.20:15672
rabbitmqctl set_user_tags admins administrator
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Wednesday, April 13, 2022
How To Install WordPress on Rocky Linux 8
in This Tutorial you will Learn " How To Install WordPress on Rocky Linux 8"
WordPress is a free, open-source, and the world's most popular CMS built entirely in PHP. It is used by thousands of people around the globe for running blogs, business websites, and e-commerce stores.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,pdo}
systemctl enable httpd mariadb ; systemctl start httpd mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE wordpressdb;
CREATE USER `wordpressuser`@`localhost` IDENTIFIED BY 'strong@password';
GRANT ALL ON wordpressdb.* TO `wordpressuser`@`localhost`;
FLUSH PRIVILEGES;
EXIT;
mkdir -p /var/www/yourdomain.com
wget https://wordpress.org/latest.tar.gz -O wordpress.tar.gz
tar xf wordpress.tar.gz
cp -R wordpress /var/www/yourdomain.com
chown -R $USER:$USER /var/www/yourdomain.com ; chmod -R 755 /var/www
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/yourdomain.com/wordpress/
<Directory /var/www/yourdomain.com/wordpress/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
apachectl configtest
echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Monday, April 11, 2022
How To Install Magento 2.4 on Rocky Linux 8
in This Tutorial you will Learn " How To Install Magento 2.4 on Rocky Linux 8"
Magento is a free, open-source, PHP-based eCommerce platform and cloud solution to grow your online business rapidly. It is built on open-source technology, with a flexible shopping cart system and an admin control panel that helps you start your online store easily. Magento also offers many plugins and themes to enhance a customer’s experience.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd httpd-tools mariadb-server -y
systemctl start httpd mariadb ; systemctl enable httpd mariadb
dnf module reset php ; dnf module enable php:7.4
dnf install php php-cli php-mysqlnd php-opcache php-xml php-gd php-soap php-pdo php-bcmath php-intl php-mbstring php-json php-iconv php-zip unzip git -y
gedit /etc/php.ini &>/dev/null
memory_limit = 1024M
upload_max_filesize = 256M
zlib.output_compression = on
max_execution_time = 18000
date.timezone = Asia/Kolkata
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install php-cli libsodium php-pear php-devel libsodium-devel make
pecl channel-update pecl.php.net
pecl install libsodium
nano /etc/php.ini
extension=sodium.so
php -i | grep sodium
mysql
CREATE DATABASE magento;
CREATE USER 'magento'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON magento.* TO 'magento'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
wget https://github.com/magento/magento2/archive/refs/tags/2.4.2.zip
unzip 2.4.2.zip ; mv magento2-* /var/www/html/magento2
cd /var/www/html/magento2
composer install
chown -R apache:apache /var/www/html/magento2
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R apache:apache . && chmod u+x bin/magento
nano /etc/httpd/conf.d/magento.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName magento.example.com
DocumentRoot /var/www/html/magento2/
DirectoryIndex index.php
<Directory /var/www/html/magento2/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/magento_error.log
CustomLog /var/log/httpd/magento_access.log combined
</VirtualHost>
systemctl restart httpd
sudo -u apache bin/magento module:disable {Magento_Elasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}
sudo -u apache bin/magento setup:install --admin-firstname="test" --admin-lastname="tests" --admin-email="admin@example.com" --admin-user="admin" --admin-password="secure@123" --db-name="magento" --db-host="localhost" --db-user="magento" --db-password="password" --language=en_US --currency=USD --timezone=Asia/Kolkata --cleanup-database --base-url=http://"magento.example.com"
nano /etc/hosts/
192.168.1.20 magento.example.com
cd /var/www/html/magento2
sudo -u apache bin/magento cron:install
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thursday, April 7, 2022
How To Install EMQX MQTT Broker on Rocky Linux 8
in This Tutorial you will Learn " How To Install EMQX MQTT Broker on Rocky Linux 8"
MQTT broker is a lightweight message exchange protocol that makes use of the publish-subscribe pattern. That is to say, the MQTT broker receives the message published by clients, filters them according to topics, and distributes them to the subscribers. EMQX is an open-source, elastic MQTT message broker written in Erlang.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
Method 1 -
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://repos.emqx.io/emqx-ce/redhat/centos/8/emqx-ce.repo
yum install emqx -y
sudo systemctl start emqx && sudo systemctl enable emqx ; systemctl status emqx
Method 2 - curl https://repos.emqx.io/install_emqx.sh | sudo bash
systemctl start emqx && sudo systemctl enable emqx ; systemctl status emqx
sudo firewall-cmd --add-port=18083/tcp --permanent
sudo firewall-cmd --add-port=8083/tcp --permanent
sudo firewall-cmd --add-port=1883/tcp --permanent
sudo firewall-cmd --add-port=8081/tcp --permanent
sudo firewall-cmd --add-port=8883/tcp --permanent
sudo firewall-cmd --add-port=8084/tcp --permanent
sudo firewall-cmd --reload
admin/public
http://192.168.1.20:18083
_________________________________________________________________________________________
Wednesday, April 6, 2022
How To Install Kamailio SIP Server on Rocky Linux 8
in This Tutorials you will Learn " How To Install Kamailio SIP Server on Rocky Linux 8"
Kamailio is an open-source SIP server written in C that runs on a Linux/Unix based operating system. It can handle thousands of call setups per second and serve up to 300,000 active subscribers on system with just 4GB RAM. Kamailio is used by a large ISPs to provide public telephone service, and was designed to be used for large real-time communication services. You can use Kamailio as a registrar server, location server, proxy server, redirect server, and SIP application server.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
yum -y install dnf-plugins-core
yum config-manager --add-repo https://rpm.kamailio.org/centos/kamailio.repo
dnf -y repolist
dnf -y install mariadb-server
systemctl enable --now mariadb
mysql_secure_installation
kamailiorw
yum install vim kamailio kamailio-mysql kamailio-presence kamailio-ldap kamailio-debuginfo kamailio-xmpp kamailio-unixodbc kamailio-utils kamailio-gzcompress kamailio-tls kamailio-outbound
nano /etc/kamailio/kamctlrc
DBENGINE=MYSQL
DBHOST=localhost
kamdbctl create
nano /etc/kamailio/kamailio.cfg
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_NAT
#!define WITH_PRESENCE
#!define WITH_ACCDB
systemctl restart kamailio ; systemctl enable kamailio ; systemctl status kamailio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Tuesday, April 5, 2022
How to Install Crater Invoicing Solution on Rocky Linux 8.5
in This Tutorial you will Learn " How to Install Crater Invoicing Solution on Rocky Linux 8.5"
Crater is a free and open-source invoicing application based on the Laravel PHP framework. It is designed for individual users or small and medium-sized businesses to help track payments and expenses as well as create professional invoices. It comes with a suite of tools that are used to manage invoices. Crater allows users to create and send professional invoices to their clients.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/os-releases ; getconf LONG_BIT ; hostname ; hostname -I ; sestatus
dnf makecache ; dnf groupinstall "Development Tools" -y
dnf module enable php:7.4 ; dnf install httpd httpd-tools mariadb-server mariadb php php-cli php-mysqlnd php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap php-curl php-opcache php-bcmath php-fpm php-common php-json php-zlib php-gmp php-apcu php-openssl php-pdo php-intl php-json php-zip -y
systemctl enable httpd mariadb php-fpm ; systemctl start httpd mariadb php-fpm
mysql_secure_installation
wget https://craterapp.com/downloads/file/6.0.6 -O crater.zip
unzip crater.zip ; mv crater /var/www/html/crater
mysql -u root -p
create database db;
create user `dbuser`@`localhost` IDENTIFIED BY 'dbpassword';
grant all on db.* TO `dbuser`@`localhost`;
flush privileges;
exit
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/html/crater/public/
<Directory /var/www/html/crater/public/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
chown -R $USER:$USER /var/www/html/* ; chmod -R 777 /var/www/*
apachectl configtest ; echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
_________________________________________________________________________________________
Sunday, April 3, 2022
How To Install Jenkins on Rocky Linux 8
in This Tutorial you will Learn " How To Install Jenkins on Rocky Linux 8"
Jenkins is an open-source, widely used automation software tool. It is used in the software development life cycle to build, test, and deploy code automatically. Jenkins is written in Java and allows you to automate a series of tasks in order to complete the continuous integration process. It provides a simple and user-friendly web interface that allows you to manage complicated tasks through a web-based dashboard.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install java-11-openjdk -y
java -version
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
dnf repolist
dnf install jenkins --nobest
systemctl start jenkins ; systemctl enable jenkins ; systemctl status jenkins
dnf install nginx -y
nano /etc/nginx/conf.d/jenkins.conf
upstream jenkins {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;
server_name www.primaryhost.com;
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://jenkins;
# Required for new HTTP-based CLI
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off; # Required for HTTP-based CLI to work over SSL
}
}
nano /etc/nginx/nginx.conf
server_names_hash_bucket_size 64;
nginx -t
systemctl start nginx ; systemctl enable nginx
cat /var/lib/jenkins/secrets/initialAdminPassword
www.primaryhost.com
__________________________________________________________________________________________
Thursday, March 31, 2022
How To Install Magento 2.4 on Rocky Linux 8
in This Tutorial you will Learn " How To Install Magento 2.4 on Rocky Linux 8"
Magento is a free, open-source, PHP-based eCommerce platform and cloud solution to grow your online business rapidly. It is built on open-source technology, with a flexible shopping cart system and an admin control panel that helps you start your online store easily. Magento also offers many plugins and themes to enhance a customer’s experience.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd httpd-tools mariadb-server -y
systemctl start httpd mariadb ; systemctl enable httpd mariadb
dnf module reset php ; dnf module enable php:7.4
dnf install php php-cli php-mysqlnd php-opcache php-xml php-gd php-soap php-pdo php-bcmath php-intl php-mbstring php-json php-iconv php-zip unzip git -y
gedit /etc/php.ini &>/dev/null
memory_limit = 1024M
upload_max_filesize = 256M
zlib.output_compression = on
max_execution_time = 18000
date.timezone = Asia/Kolkata
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install php-cli libsodium php-pear php-devel libsodium-devel make
pecl channel-update pecl.php.net
pecl install libsodium
nano /etc/php.ini
extension=sodium.so
php -i | grep sodium
mysql
CREATE DATABASE magento;
CREATE USER 'magento'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON magento.* TO 'magento'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
wget https://github.com/magento/magento2/archive/refs/tags/2.4.2.zip
unzip 2.4.2.zip ; mv magento2-* /var/www/html/magento2
cd /var/www/html/magento2
composer install
chown -R apache:apache /var/www/html/magento2
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R apache:apache . && chmod u+x bin/magento
nano /etc/httpd/conf.d/magento.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName magento.example.com
DocumentRoot /var/www/html/magento2/
DirectoryIndex index.php
<Directory /var/www/html/magento2/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/magento_error.log
CustomLog /var/log/httpd/magento_access.log combined
</VirtualHost>
systemctl restart httpd
sudo -u apache bin/magento module:disable {Magento_Elasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}
sudo -u apache bin/magento setup:install --admin-firstname="test" --admin-lastname="tests" --admin-email="admin@example.com" --admin-user="admin" --admin-password="secure@123" --db-name="magento" --db-host="localhost" --db-user="magento" --db-password="password" --language=en_US --currency=USD --timezone=Asia/Kolkata --cleanup-database --base-url=http://"magento.example.com"
nano /etc/hosts/
192.168.1.20 magento.example.com
cd /var/www/html/magento2
sudo -u apache bin/magento cron:install
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Wednesday, March 30, 2022
2 Ways To install Ruby On Rocky Linux | RVM
in This Tutorial you will Learn " 2 Ways To install Ruby On Rocky Linux "
Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
Method - 1
dnf install gnupg2 wget curl @ruby -y
ruby --version
M- 2 RVM
RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
curl -sSL https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
rvm requirements
rvm list known
rvm install ruby 3.0.2
ruby --version
_________________________________________________________________________________________
Tuesday, March 29, 2022
How To Install Ruby on Rails with PostgreSQL on Rocky Linux 8
in This Tutorial you will Learn " How To Install Ruby on Rails with PostgreSQL on Rocky Linux 8"
Ruby on Rails or RoR or Rails is a free and open-source web application framework written in Ruby with the MIT License. It is a full-stack web framework that uses the model-view-controller (MVC) pattern.
The Rails web framework provides structures for a database, web service, and web pages. Also, Rails includes some important tools such as scaffolding, Puma, Gems, etc.
PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - ; curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload ; rvm requirements run
rvm install ruby
dnf module enable nodejs:14
dnf install nodejs npm -y
npm install -g yarn
echo "export PATH=$PATH:/usr/local/bin" >> ~/.bashrc
source ~/.bashrc
gem install rails
dnf install postgresql-devel postgresql-server libpq-devel -y
postgresql-setup --initdb
nano /var/lib/pgsql/data/pg_hba.conf
systemctl restart postgresql
sudo -u postgres psql
create role rails_dev with createdb login password 'abc123';
rails new myapp -d postgresql
cd myapp/ ; nano config/database.yml
username: rails_dev
password: abc123
host: localhost
port: 5432
database: myapp_test
host: localhost
port: 5432
username: rails_dev
password: abc123
rails db:setup
rails db:migrate
rails s -b 192.168.1.20 -p 8080
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Monday, March 28, 2022
How To Install Ruby on Rails with Mysql on Rocky Linux 8.5
in This Tutorial you will Learn " How To Install Ruby on Rails with Mysql on Rocky Linux 8.5"
Or
How To Use MySQL With Ruby On Rails Application ?
Ruby on Rails or RoR or Rails is a free and open-source web application framework written in Ruby with the MIT License. It is a full-stack web framework that uses the model-view-controller (MVC) pattern.
The Rails web framework provides structures for a database, web service, and web pages. Also, Rails includes some important tools such as scaffolding, Puma, Gems, etc.
MySQL is an open-source relational database management system.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - && curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload ; rvm requirements run
rvm install ruby
dnf module enable nodejs:14
dnf install nodejs npm -y
npm install -g yarn
echo "export PATH=$PATH:/usr/local/bin" >> ~/.bashrc
source ~/.bashrc
gem install rails
rails --version ; node --version
nano /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/rhel8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
dnf update ; dnf install mariadb-server mariadb mysql-devel -y
systemctl start mariadb ; systemctl enable mariadb ; systemctl status mariadb
mariadb-secure-installation
rails new appname -d mysql
nano /root/appname/config/database.yml
password: mysql_root_password
mysql -u root -p
show databases;
cd appname/
rake db:create
rails server
rails server --binding=server_public_IP | rails server -b 0.0.0.0 | rails server -b 0.0.0.0 -p 8080
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Saturday, March 26, 2022
Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq
in This Tutorial you will Learn " How To Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq"
Dnsmasq is a very lightweight and simple DNS server. dnsmasq can be configured to be a DNS server and a DHCP server.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install dnsmasq
gedit /etc/dnsmasq.conf &>/dev/null
domain-needed
bogus-priv
strict-order
server=/server.education/192.168.1.20 | line 67
expand-hosts
# line 145 : add your own domain name
domain=primaryhost.com
systemctl enable --now dnsmasq
firewall-cmd --add-service=dns ; firewall-cmd --runtime-to-permanent
_________________________________________________________________________________________
Client Host -
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install bind-utils
nmcli connection modify ens33 ipv4.dns 192.168.1.20
nmcli connection down ens33; nmcli connection up ens33
dig www.primaryhost.com.
dig -x 192.168.1.20
_________________________________________________________________________________________
Wednesday, March 23, 2022
Set up DHCP Server Using Dnsmasq
in This Tutorial you will Learn " How To Set up a DHCP Server Using Dnsmasq On Rocky Linux 8.5 "
Dnsmasq is a lightweight DNS, TFTP and DHCP server.
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install dnsmasq
gedit /etc/dnsmasq.conf &>/dev/null
dhcp-range=192.168.0.50,192.168.0.150,12h [ line 158 ]
# line 332: add entries for Gateway, NTP, DNS, Subnetmask
dhcp-option=option:router,192.168.0.1
dhcp-option=option:ntp-server,192.168.0.20
dhcp-option=option:dns-server,192.168.0.20
dhcp-option=option:netmask,255.255.255.0
systemctl restart dnsmasq
firewall-cmd --add-service=dhcp --permanent ; firewall-cmd --reload
________________________________________________________________________________________
Configure DHCP Client -
cat /etc/system-release ; sestatus ; hostname -I
dnf -y install dhcp-client
nmcli connection modify ens33 ipv4.method auto
nmcli connection down ens33; nmcli connection up ens33
________________________________________________________________________________________
Thursday, March 17, 2022
How To Install Parvula CMS on Ubuntu 18.04
Parvula CMS:
An extremely simple & flexible CMS generated from flat files with a complete RESTful API |
Offcial Website: https://parvulacms.github.io/
_____________________________________________________________________________________________________
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; 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
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 bafs/parvula parvula
cd /var/www/html/parvula/ ; 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/parvula
ServerName www.yourdomain.com
<Directory /var/www/html/parvula/>
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/admin
cat /var/www/html/parvula/data/users/users.php
How To install Mono CMS on Ubuntu 18.04
Mono CMS offers a clean and minimalistic approach to content management system Built with PHP and no database requirement, this CMS platform lets you built great websites for personal and professional use |
Offcial Website: http://monocms.com/
_____________________________________________________________________________________________________
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git vim sudo unzip socat bash-completion
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php-imagick php-pear
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 ; systemctl enable apache2
cd /tmp ; wget http://monocms.com/MonoCMS.zip
mkdir /var/www/html/monocms ; unzip MonoCMS -d /var/www/html/monocms
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Setting up Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/monocms
ServerName www.yourdomain.com
<Directory /var/www/html/monocms/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
How To Install Magnolia CMS on Ubuntu 18.04 LTS
Magnolia is an open-source content management system (CMS). It is developed by Magnolia International Ltd., based in Basel, Switzerland. It is based on Content repository API for Java.
Offcial Website: https://www.magnolia-cms.com/
___________________________________________________________________________________________________________________________________________________
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit | IP address- 192.168.1.50 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt update ; apt install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https
add-apt-repository ppa:linuxuprising/java -y
apt update ; apt install oracle-java12-installer -y
apt install oracle-java12-set-default -y
update-alternatives --config java
nano /etc/environment
JAVA_HOME=”/usr/lib/jvm/java-12-oracle/bin/java/”
source /etc/environment
echo $JAVA_HOME ; java -version ; javac -version
cd /opt ; wget https://liquidtelecom.dl.sourceforge.net/project/magnolia/magnolia/Magnolia%20CE%206.1/magnolia-community-demo-bundle-6.1-tomcat-bundle.zip
unzip magnolia-community-demo-bundle-6.1-tomcat-bundle.zip
cd magnolia-6.1/
./apache-tomcat-9.0.10/bin/magnolia_control.sh start --ignore-open-files-limit
http://192.168.1.50:8080
Or
Magnolia Version:5.6.5
cd /opt
wget https://netix.dl.sourceforge.net/project/magnolia/magnolia/Magnolia%20CE%205.6.5/magnolia-community-demo-bundle-5.6.5-tomcat-bundle.zip
unzip magnolia-community-demo-bundle-5.6.5-tomcat-bundle.zip
cd magnolia-5.6.5
./apache-tomcat-8.5.5/bin/magnolia_control.sh start --ignore-open-files-limit
http://192.168.1.50:8080
How To Install LEPTON CMS on Ubuntu 18.04
LEPTON CMS is a easy-to-use content management system with integrated jquery library for freelancing designers or php-developers and web-agencies.
Offcial Website: https://lepton-cms.org/english.php
_____________________________________________________________________________________________________
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion
MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl php7.2-recode php-imagick php-pear php-memcache php-apcu
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit
https://lepton-cms.org/english/download.php
cd /home/ubuntu/Downloads
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/lepton/upload/
ServerName www.yourdomain.com
<Directory /var/www/html/lepton/upload/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install
How To install flatCore CMS on Ubuntu 18.04"
*****************************************************************************************************
FlatCore is a Web Content Management System (CMS) based on PHP and SQLite.
Offcial Website:Official Site: https://flatcore.org
_____________________________________________________________________________________________________
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion
MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl php7.2-recode php-imagick php-pear php-memcache php-apcu
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit
cd /var/www/html ; git clone https://github.com/flatCore/flatCore-CMS.git flatcore
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/flatcore/
ServerName www.yourdomain.com
<Directory /var/www/html/flatcore/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install/index.php
rm -rf /var/www/html/flatcore/install/
How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5
in This Tutorial you will Learn " How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5"
Linux Virtual Server is load balancing software for Linux kernel–based operating systems. LVS is a free and open-source project started by Wensong Zhang in May 1998, subject to the requirements of the GNU General Public License, version 2.
________________________
| LVS Server - 192.168.1.20 |
___________________| |_____________________
Backend Server 192.168.1.80 | | Backend Server 192.168.1.60|
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install ipvsadm
echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf
sysctl -p
touch /etc/sysconfig/ipvsadm
systemctl restart ipvsadm ; systemctl enable ipvsadm ; systemctl status ipvsadm
ipvsadm -C
ipvsadm -A -t (ServiceIP:Port) -s (Distribution method)
ipvsadm -A -t 192.168.1.20:80 -s wlc
ipvsadm -a -t (ServiceIP:Port) -r (BackendServerIP:Port) -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.80:80 -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.60:80 -m
ipvsadm -l
firewall-cmd --add-service=http --permanent ; firewall-cmd --reload
_________________________________________________________________________________________
Wednesday, March 16, 2022
How To Install Crater Invoicing Solution on Ubuntu 20.04
Crater is a free and open-source invoicing application based on the Laravel PHP framework. It is designed for individual users or small and medium-sized businesses to help track payments and expenses as well as create professional invoices. It comes with a suite of tools that are used to manage invoices. Crater allows users to create and send professional invoices to their clients.
Homepage - https://craterapp.com/
_________________________________________________________________________________________
Server - Os: Ubuntu 20.04.3 LTS 64Bit | IP -192.168.1.80 |Hostname - ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname ; hostname -I
add-apt-repository ppa:ondrej/php -y ; apt-get update
apt install -y apache2 build-essential mariadb-server mariadb-client php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-cgi php7.4-bcmath php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip php7.4-snmp php7.4-imap php7.4-common php7.4-tidy php7.4-pgsql php7.4-ldap php7.4-soap php7.4-xsl php7.4-redis php7.4-xmlrpc
a2enmod rewrite expires ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpassword';
flush privileges;
quit
wget https://craterapp.com/downloads/file/6.0.5 -O crater.zip
unzip crater.zip ; mv crater /var/www/html/crater
chown -R www-data:www-data /var/www/html/ ; chmod -R 777 /var/www/html/
nano /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/crater/public
ServerName www.yourdomain.com
<Directory /var/www/html/crater/public/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/yourdomain.com-error_log
CustomLog /var/log/apache2/yourdomain.com-access_log common
</VirtualHost>
a2ensite yourdomain.conf ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.80 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/ | SNcAiM7cFLJNjCT
________________________________________________________________________________________