How to update PHP version

First list available PHP versins

dnf module list php

Reset to default

dnf module reset php

Now enable updated version

dnf module install php:8.2

After that you can install newly enabled version

How to allow deal with SeLinux

Set permisions to apropriate files and directories to allow write by httpd (Apache/NGINX)

chcon -R -t httpd_sys_rw_content_t /var/www/html/
restorecon -Rv /var/www/html/
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html(/.*)?"

Allow to connect to database (MySQL)

setsebool httpd_can_network_connect_db 1
setsebool -P httpd_can_network_connect_db 1

How to add new disk in VMware / ESXi / vCenter without rebooting

If you want to add new HDD to existing Linux virtual machine like CentOS 7 / RHEL 7 you must:

First add new disk in preferences of virtual machine.
Click Edit preferences of virtual machine. On tab Hardware click Add button and fill proper preferences.
When you save data new hardware should appear on hardware list.

Now login to your virtual machine and execute:
# fdisk -l
You should see all previous mounted hardware.

Continue reading “How to add new disk in VMware / ESXi / vCenter without rebooting”