After installation on Red Hat Enterprice Linux 9 login in to developers.redhat.com, register the system
sudo su
subscription-manager register - link
subscription-manager register --auto-attach
subscription-manager list
update the system
dnf update
and stop the X server
systemctl get-default
systemctl set-default multi-user.target
systemctl get-default
systemctl reboot now
NFS
sudo su
install nfs - client
yum install nfs-utils
mount -t nfs 192.168.100.100:/jellyfin/4tb /nfs/4tb
Install NFS Server and Client on RHEL
sudo dnf update
sudo dnf install rpcbind nfs-utils -y
sudo systemctl enable nfs-server
sudo systemctl enable rpcbind
sudo systemctl start nfs-server
sudo systemctl start rpcbind
sudo systemctl status nfs-server
sudo systemctl status rpcbind
sudo firewall-cmd --permanent --add-service={nfs,rpc-bind,mountd}
sudo firewall-cmd --reload
sudo mkdir -p /nfs/exports/myshare
sudo chmod 775 -R /nfs/exports/myshare
sudo nano /etc/exports
/nfs/exports/myshare *(rw,sync,root_squash,subtree_check)
sudo exportfs -rv
showmount -e localhost
sudo mount -t nfs 192.168.253.129:/nfs/exports/myshare /mnt
add ssh to firewall
firewall-cmd --zone=public --permanent --add-service=ssh
firewall-cmd --reload
firewall-cmd --list-all
install Apache Web Server
sudo su
yum install httpd
systemctl status httpd.service
systemctl start httpd.servise && systemctl enable httpd.service
systemctl status httpd.service
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --reload
open web browser and test calling the local ip of the server
sudo setenforce permissive – SOLVED Unable to write to wp-config.php
Installing snap on Red Hat Enterprise Linux (RHEL)
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf upgrade
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install obs-studio
sudo snap install obs-cli
sudo dnf install vlc
sudo snap install ardour-snap
sudo snap install butt
Turning on the LAMP: Linux, Apache, MySQL, and PHP
sudo dnf -y update
sudo dnf -y install httpd
sudo systemctl enable httpd.service
sudo systemctl start httpd.service
http://<server-name or IP address>
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --reload
sudo dnf -y install mysql-server mysql
sudo systemctl enable mysqld.service
sudo systemctl start mysqld.service
sudo mysql_secure_installation
sudo dnf -y install php php-mysqlnd php-cli
sudo systemctl restart httpd.service
sudo nano /var/www/html/test.php
Enter the following into the test.php file:
<?php
phpinfo();
?>
http://ip/test.php
httpd - wich is apache2 use user: apache and group:apache in RHLE, so when need change ownership shoot be:
chown apache:apache /var/www/html/worpress
If have problems in mysql server-a и неможем да дадем права на узър върху база данни, можем да дадем права върху всико със следната команда:
GRANT ALL PRIVILEGES ON *.* TO 'slavy'@'localhost' WITH GRANT OPTION;
Increase PHP File Upload Size Limit
php --ini
sudo nano /path/to/php.ini
upload_max_filesize = 1280M
post_max_size = 1280M
also go to edit sudo nano /etc/php/8.1/apache2/php.ini with same corrections
systemctl reload php-fpm
systemctl start php-fpm
systemctl stop php-fpm
systemctl enable php-fpm
systemctl status php-fpm
Install Oracle Virtual Box
sudo dnf update
sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
sudo dnf install -y binutils gcc make patch perl libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
sudo dnf search virtualbox
sudo dnf install -y VirtualBox-7.0
sudo modprobe vboxdrv