Showing posts with label rocky9. Show all posts
Showing posts with label rocky9. Show all posts

Monday, April 22, 2024

Rocky 9 : Permanently Disable SELinux

1.Check the Linux OS and Kernel versions
# cat /etc/rocky-release
# uname -r

2.Verify SELinux status.SELinux by default runs in Enforcing mode
# sestatus

3.To disable SELinux grubby command is required
#dnf install -y grubby

4.Execute following command to permanently disable SELinux.
#grubby --update-kernel ALL --args selinux=0

5.Reboot the server
# reboot

6.Verify SELinux status
# sestatus

 

source : https://centlinux.com/permanently-disable-selinux/

Tuesday, March 28, 2023

Note : The list required to install and configure

 Checklist to activate hosting server (php, laravel and sql server)

  1. Install Virtualmin
  2. Upgrade PHP8.1 or latest
  3. To connect with Oracle DB - install OCI8
  4. To connect with MSSQL - install ODBC, sqlsrv, pdo_sqlsrv
  5. Install Laravel - install composer, npm, node

# Previous OS Centos 7 and below - install with latest OpenSSL 1.0.2k-fips
# Latest OS Rocky9.1 and above - install with latest OpenSSL 3.0

Monday, March 27, 2023

OpenSSL : Install and Upgrade version

1.Verify the current OpenSSL version

# openssl version

2. Download the latest version OR previous version of OpenSSL

# cd /usr/local/src
# wget https://www.openssl.org/source/openssl-X.X.X.tar.gz
# tar -xvzf openssl-X.X.X.tar.gz

3.Manually compile and install OpenSSL

# cd openssl-1.0.2l
#./config
# make depend
# make
# make test
# make install

4.Move the newly installed OpenSSL binary to the PATH

# mv /usr/bin/openssl /root/
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

5.Verify the newly installed OpenSSL version

#openssl version

 

source

Friday, March 24, 2023

Rocky 9 : Install PHP8.3 & PHP-FPM

Install PHP

1.Add the EPEL (Extra Packages for Enterprise Linux) repository 

#dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

2.Add the REMI repository for Rocky Linux 9

#dnf install https://rpms.remirepo.net/enterprise/remi-release-9.2.rpm

3. Install yum utilities.

#dnf -y install yum-utils

4.Verify the list of an available repositories on the Rocky Linux system

#dnf repolist

5.To enable php 8.3 Remi repository.

#dnf module reset php
#dnf module install php:remi-8.3
#dnf update

6.Check available PHP modules on your system 

#dnf module list php

7.Install PHP packages

#dnf install php

8.Verify the PHP version

#php --version  / -v

9.Install additional PHP extensions

#dnf install php-mcrypt php-{imagick,apcu,geoip,memcached,zstd}

10.Verify all available PHP extensions on your system

#php -m

#php -m | grep imagick