Gitea is a community managed lightweight code hosting solution written in Go. || PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
Apache is the most widely used web server software.
Offcial Website : https://gitea.io/en-us/
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐃𝐞𝐛𝐢𝐚𝐧 𝟏𝟏 𝐛𝐮𝐥𝐥𝐬𝐞𝐲𝐞 𝟔𝟒 𝐁𝐢𝐭 || 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: debian.example.com || 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:192.168.1.60
________________________________________________________________________________________________________________________
lsb_release -cd ; getconf LONG_BIT ; hostname ; hostname -I
apt install -y build-essential net-tools curl git software-properties-common apache2
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt-get update ; sudo apt-get -y install postgresql -y
systemctl start postgresql ; systemctl enable postgresql ; systemctl status postgresql
nano /etc/postgresql/14/main/postgresql.conf
listen_addresses = 'localhost, 0.0.0.0' || password_encryption = scram-sha-256
systemctl restart postgresql
sudo -u postgres psql
CREATE ROLE gitea WITH LOGIN PASSWORD 'secure@123';
CREATE DATABASE giteadb;
GRANT ALL PRIVILEGES ON DATABASE giteadb TO gitea;
exit
git config --global user.name "Your Name" ; git config --global user.email "youremail@yourdomain.com"
sudo adduser \
--system \
--shell /bin/bash \
--gecos 'Git Version Control' \
--group \
--disabled-password \
--home /home/git \
git
cd /tmp ; GITEAVERSION=1.15.7
wget -O gitea https://dl.gitea.io/gitea/${GITEAVERSION}/gitea-${GITEAVERSION}-linux-amd64
mv /tmp/gitea /usr/local/bin ; chmod +x /usr/local/bin/gitea ; mkdir -p /etc/gitea ; mkdir -p /var/lib/gitea/{custom,data,indexers,public,log} ; chown -R git:git /var/lib/gitea/ ; chown root:git /etc/gitea ; chmod -R 750 /var/lib/gitea/ ;chmod 770 /etc/gitea
nano /etc/systemd/system/gitea.service
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=postgresql.service
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start gitea ; systemctl enable gitea ; systemctl status gitea
http://localhost:3000/
a2enmod ssl proxy proxy_ajp proxy_wstunnel proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html
systemctl restart apache2
nano /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:*>
ProxyPreserveHost On
# Servers to proxy the connection, or;
# List of application servers:
# Usage:
# ProxyPass / http://[IP Addr.]:[port]/
# ProxyPassReverse / http://[IP Addr.]:[port]/
# Example:
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ServerName debian.example.com
</VirtualHost>
apache2ctl configtest
systemctl restart apache2 ; systemctl status apache2
echo "192.168.1.60 debian.example.com debian" >> /etc/hosts
_________________________________________________________________________________________________________________________
Tuesday, January 4, 2022
How to Install Gitea with PostgreSQL Apache HTTP Server on Debian 11
How to Install Gitea with PostgreSQL Nginx web server on Debian 11
Gitea is a community managed lightweight code hosting solution written in Go. || PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
Offcial Website : https://gitea.io/en-us/
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐃𝐞𝐛𝐢𝐚𝐧 𝟏𝟏 𝐛𝐮𝐥𝐥𝐬𝐞𝐲𝐞 𝟔𝟒 𝐁𝐢𝐭 || 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: debian.example.com || 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:192.168.1.60
________________________________________________________________________________________________________________________
lsb_release -cd ; getconf LONG_BIT ; hostname ; hostname -I
apt install -y build-essential net-tools curl git software-properties-common nginx
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt-get update ; sudo apt-get -y install postgresql -y
systemctl start postgresql ; systemctl enable postgresql ; systemctl status postgresql
nano /etc/postgresql/14/main/postgresql.conf
listen_addresses = 'localhost, 0.0.0.0'
password_encryption = scram-sha-256
systemctl restart postgresql
sudo -u postgres psql
CREATE ROLE gitea WITH LOGIN PASSWORD 'secure@123';
CREATE DATABASE giteadb;
GRANT ALL PRIVILEGES ON DATABASE giteadb TO gitea;
exit
git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"
sudo adduser \
--system \
--shell /bin/bash \
--gecos 'Git Version Control' \
--group \
--disabled-password \
--home /home/git \
git
cd /tmp ; GITEAVERSION=1.15.7
wget -O gitea https://dl.gitea.io/gitea/${GITEAVERSION}/gitea-${GITEAVERSION}-linux-amd64
mv /tmp/gitea /usr/local/bin ; chmod +x /usr/local/bin/gitea
mkdir -p /etc/gitea ; mkdir -p /var/lib/gitea/{custom,data,indexers,public,log} ; chown -R git:git /var/lib/gitea/ ; chown root:git /etc/gitea ; chmod -R 750 /var/lib/gitea/ ;chmod 770 /etc/gitea
nano /etc/systemd/system/gitea.service
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=postgresql.service
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start gitea ; systemctl enable gitea ; systemctl status gitea
nano /etc/nginx/sites-enabled/default
server {
listen 80;
index index.php index.html index.htm;
server_name debian.example.com;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $http_host;
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;
}
}
nginx -t
systemctl restart nginx ; systemctl status nginx
http://debian.example.com
_________________________________________________________________________________________________________________________
How to Install Gitea with Mariadb on Debian 11
Gitea is a community managed lightweight code hosting solution written in Go. || MariaDB Server is one of the most popular open source relational databases.
Offcial Website : https://gitea.io/en-us/
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐃𝐞𝐛𝐢𝐚𝐧 𝟏𝟏 𝐛𝐮𝐥𝐥𝐬𝐞𝐲𝐞 𝟔𝟒 𝐁𝐢𝐭 || 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: debian.example.com || 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:192.168.1.60
________________________________________________________________________________________________________________________
lsb_release -cd ; getconf LONG_BIT ; hostname ; hostname -I
apt install -y build-essential net-tools curl git software-properties-common mariadb-server
systemctl start mariadb ; systemctl status mariadb
mysql_secure_installation
mysql -u root -p
CREATE DATABASE gitea;
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'localhost' IDENTIFIED BY "StrongPassword";
FLUSH PRIVILEGES;
QUIT;
git config --global user.name "Your Name" ; git config --global user.email "youremail@yourdomain.com"
sudo adduser \
--system \
--shell /bin/bash \
--gecos 'Git Version Control' \
--group \
--disabled-password \
--home /home/git \
git
cd /tmp ; GITEAVERSION=1.15.7 ; wget -O gitea https://dl.gitea.io/gitea/${GITEAVERSION}/gitea-${GITEAVERSION}-linux-amd64
mv /tmp/gitea /usr/local/bin ; chmod +x /usr/local/bin/gitea ; mkdir -p /etc/gitea ; mkdir -p /var/lib/gitea/{custom,data,indexers,public,log} ; chown -R git:git /var/lib/gitea/ ; chown root:git /etc/gitea ; chmod -R 750 /var/lib/gitea/ ;chmod 770 /etc/gitea
nano /etc/systemd/system/gitea.service
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=postgresql.service
[Service]
RestartSec=2s
Type=simple
User=git
Group=git
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start gitea ; systemctl enable gitea ; systemctl status gitea
http://localhost:3000/
_________________________________________________________________________________________________________________________
Monday, January 3, 2022
How To Install Guacamole Remote Desktop on Rocky Linux 8
Apache Guacamole is a free, open-source, web-based, and clientless remote desktop application that supports standard protocols like VNC, RDP, and SSH. It allows you to access Linux and Windows PC from a web browser via RDP, SSH, or VNC. It is clientless so you don't need to install any plugins or client software. It is made from two components Guacamole Server and Guacamole Client. Guacamole server provides server-side and native components required to connect to remote PC while Guacamole client is an HTML 5 web application used to connect to the remote PC.
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐑𝐨𝐜𝐤𝐲 𝐋𝐢𝐧𝐮𝐱 𝟖.𝟓 (𝐆𝐫𝐞𝐞𝐧 𝐎𝐛𝐬𝐢𝐝𝐢𝐚𝐧) | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: | 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:
________________________________________________________________________________________________________________________
cat /etc/os-release ; getconf LONG_BIT ; sestatus
dnf -y update ; dnf groupinstall "Development Tools" -y && yum install java-11-openjdk-devel
dnf install -y unzip curl make cmake wget gcc zlib-devel compat-openssl10 epel-release
sudo dnf config-manager --set-enabled powertools ; sudo dnf config-manager --enable devel
dnf install cairo-devel libuv-devel libjpeg-turbo-devel libjpeg-devel libpng-devel libtool uuid-devel freerdp-devel pango-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-devel libssh2-devel libtheora opus lame-libs ; dnf config-manager --disable devel
curl -s https://api.github.com/repos/seanmiddleditch/libtelnet/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
tar -xf libtelnet-*.tar.gz ; cd libtelnet-*/ ; ./configure ; make && sudo make install
sudo groupadd --system tomcat ; sudo useradd -d /usr/share/tomcat -r -s /bin/false -g tomcat tomcat
cd ~ ; wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.56/bin/apache-tomcat-9.0.56.tar.gz
tar -xvf apache-tomcat-*.tar.gz
mkdir /usr/share/tomcat
sudo mv apache-tomcat-9.0.56/* /usr/share/tomcat ; sudo chown -R tomcat:tomcat /usr/share/tomcat/
sudo nano /etc/systemd/system/tomcat.service
[Unit]
Description=Tomcat Server
After=syslog.target network.target
[Service]
Type=forking
User=tomcat
Group=tomcat
Environment=JAVA_HOME=/usr/lib/jvm/jre
Environment='JAVA_OPTS=-Djava.awt.headless=true'
Environment=CATALINA_HOME=/usr/share/tomcat
Environment=CATALINA_BASE=/usr/share/tomcat
Environment=CATALINA_PID=/usr/share/tomcat/temp/tomcat.pid
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M'
ExecStart=/usr/share/tomcat/bin/catalina.sh start
ExecStop=/usr/share/tomcat/bin/catalina.sh stop
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload ; systemctl enable --now tomcat ; systemctl status tomcat
VER=1.3.0
wget https://downloads.apache.org/guacamole/$VER/source/guacamole-server-$VER.tar.gz
tar xzf guacamole-server-$VER.tar.gz
cd guacamole-server-$VER ; ./configure --with-init-dir=/etc/init.d
make ; sudo make install ; sudo ldconfig
sudo systemctl daemon-reload ; sudo systemctl start guacd ; sudo systemctl enable guacd ; systemctl status guacd
sudo mkdir /etc/guacamole ; cd ~
wget https://downloads.apache.org/guacamole/1.3.0/binary/guacamole-1.3.0.war
sudo mv guacamole-1.3.0.war /etc/guacamole/guacamole.war ; sudo ln -s /etc/guacamole/guacamole.war /usr/share/tomcat/webapps/
sudo echo "GUACAMOLE_HOME=/etc/guacamole" | sudo tee -a /etc/default/tomcat
sudo nano /etc/guacamole/guacamole.properties
guacd-hostname: localhost
guacd-port: 4822
user-mapping: /etc/guacamole/user-mapping.xml
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
sudo ln -s /etc/guacamole /usr/share/tomcat/.guacamole
echo -n StrongPassword | openssl md5
sudo nano /etc/guacamole/user-mapping.xml
<user-mapping>
<!-- Per-user authentication and config information -->
<!-- A user using md5 to hash the password
guacadmin user and its md5 hashed password below is used to
login to Guacamole Web UI-->
<authorize
username="admin"
password="0f6e4a1df0cf5ee97c2066953bed21b2"
encoding="md5">
<!-- First authorized Remote connection -->
<connection name="Ubuntu 20.04 Server SSH">
<protocol>ssh</protocol>
<param name="hostname">192.168.1.80</param>
<param name="username">ubuntu</param>
<param name="port">22</param>
</connection>
<!-- Second authorized remote connection -->
<connection name="Windows 10 RDP">
<protocol>rdp</protocol>
<param name="hostname">192.168.1.50</param>
<param name="port">3389</param>
<param name="username">test</param>
<param name="ignore-cert">true</param>
</connection>
</authorize>
</user-mapping>
sudo systemctl restart tomcat guacd
sudo firewall-cmd --permanent --add-port={4822,8080}/tcp ; sudo firewall-cmd --reload
http://server-IP:8080/guacamole [ http://192.168.1.60:8080/guacamole ] [ admin/StrongPassword
_________________________________________________________________________________________________________________________
Wednesday, December 29, 2021
How To install OrangeScrum project management system On Rocky Linux
Orangescrum is a collaborative and open source web application written with CakePHP. This app is a simple and easy-to-use tool for managing projects, teams, documents, tasks and communicating with teams on important issues.
𝐎𝐟𝐟𝐜𝐢𝐚𝐥 𝐖𝐞𝐛𝐬𝐢𝐭𝐞 :https://www.orangescrum.com/
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐑𝐨𝐜𝐤𝐲 𝐋𝐢𝐧𝐮𝐱 𝟖.𝟓 (𝐆𝐫𝐞𝐞𝐧 𝐎𝐛𝐬𝐢𝐝𝐢𝐚𝐧) | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: | 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:
________________________________________________________________________________________________________________________
cat /etc/os-release ; getconf LONG_BIT ; hostname ; hostname -I
dnf -y update ; dnf groupinstall "Development Tools" -y ; 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 -y ; systemctl enable httpd mariadb php-fpm ; systemctl start httpd mariadb php-fpm ; systemctl status httpd mariadb php-fpm
mysql_secure_installation [ YourStrongPassword ]
mysql -u root -p
set global sql_mode='';
set global sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
CREATE DATABASE orangescrum;
CREATE USER 'orangescrumuser'@'localhost' IDENTIFIED BY 'YourStrongPassword';
GRANT ALL PRIVILEGES ON orangescrum.* TO 'orangescrumuser'@'localhost' IDENTIFIED BY 'YourStrongPassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
systemctl restart mysqld ; systemctl status mysqld
sed -i "s/post_max_size = 8M/post_max_size = 200M/" /etc/php.ini ; sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 200M/" /etc/php.ini
wget https://github.com/Orangescrum/orangescrum/archive/master.zip ; unzip master.zip ; mv orangescrum-master /var/www/html/
chown -R apache:apache /var/www/html/orangescrum-master ; chmod -R 777 /var/www/html/orangescrum-master
nano /etc/httpd/conf.d/orangescrum.conf
<VirtualHost *:80>
ServerName server.yourdomain.com
DocumentRoot /var/www/html/orangescrum-master
<Directory /var/www/html/orangescrum-master>
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
mysql -u orangescrumuser -p orangescrum < /var/www/html/orangescrum-master/database.sql
nano /var/www/html/orangescrum-master/app/Config/database.php
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'orangescrumuser',
'password' => 'YourStrongPassword',
'database' => 'orangescrum',
'prefix' => '',
'encoding' => 'utf8',
);
}
nano /var/www/html/orangescrum-master/app/Config/constants.php
//Gmail SMTP
define("SMTP_HOST", "ssl://smtp.gmail.com");
define("SMTP_PORT", "465");
define("SMTP_UNAME", "youremail@gmail.com");
define("SMTP_PWORD", "yourpassword");
define("IS_SMTP", "0");
define('FROM_EMAIL_NOTIFY', 'notify@mycompany.com'); //(REQUIRED)
define('SUPPORT_EMAIL', 'support@mycompany.com'); //(REQUIRED) From Email
systemctl restart httpd ; systemctl status httpd ; firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
http://server.yourdomain.com
_________________________________________________________________________________________________________________________
How To Install LEMP Stack on Rocky Linux 8 [Step-by-Step]
A LEMP Stack is a group of open source software commonly used for hosting dynamic websites and web apps. LEMP is an acronym for Linux operating system, Nginx web server, MySQL and PHP.
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐀𝐥𝐦𝐚𝐋𝐢𝐧𝐮𝐱 𝟖.𝟓 (𝐀𝐫𝐜𝐭𝐢𝐜 𝐒𝐩𝐡𝐲𝐧𝐱) | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: | 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:
________________________________________________________________________________________________________________________
cat /etc/system-release ; getconf LONG_BIT ; hostname ; hostname -I
dnf -y update ; dnf groupinstall "Development Tools" -y
dnf install nginx mariadb-server mariadb php php-fpm php-cli php-gd php-curl php-zip php-mbstring php-opcache php-intl php-mysqlnd -y
systemctl enable nginx mariadb php-fpm; systemctl start nginx mariadb php-fpm ; systemctl status nginx mariadb php-fpm
mysql_secure_installation
nano /etc/php-fpm.d/www.conf
user = nginx || Group = nginx
echo "<?php phpinfo() ?>" > /usr/share/nginx/html/info.php
echo "Hello There, Nginx Webserver is now running" > /usr/share/nginx/html/index.html
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
http://server.yourdomain.com/
http://server.yourdomain.com/info.php
_________________________________________________________________________________________________________________________
How To Install LAMP Stack On Rocky Linux 8 [Step-by-Step]
LAMP stack is a collection of open-source software installed together to enable a server to host and run modern web applications written in server-side languages like PHP. LAMP is an acronym for Linux, Apache, MySQL/MariaDB, and PHP that work together to serve dynamic web content hosted on a server.
________________________________________________________________________________________________________________________
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧:-
𝐎𝐬 : 𝐑𝐨𝐜𝐤𝐲 𝐋𝐢𝐧𝐮𝐱 𝟖.𝟓 (𝐆𝐫𝐞𝐞𝐧 𝐎𝐛𝐬𝐢𝐝𝐢𝐚𝐧) | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞: | 𝐈𝐏 𝐀𝐝𝐝𝐫𝐞𝐬𝐬 𝐨𝐟 𝐒𝐞𝐫𝐯𝐞𝐫:
________________________________________________________________________________________________________________________
cat /etc/os-release ; getconf LONG_BIT ; hostname ; hostname -I
dnf -y update ; dnf groupinstall "Development Tools" -y
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
systemctl enable httpd mariadb php-fpm ; systemctl start httpd mariadb php-fpm ; systemctl status httpd mariadb php-fpm
mysql_secure_installation
echo "<?php phpinfo() ?>" > /var/www/html/info.php
echo "Hello there, Apache webserver is now running" > /var/www/html/index.html
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
http://server.yourdomain.com
http://server.yourdomain.com/info.php
_________________________________________________________________________________________________________________________