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

Node.js for begginers – installation

To download Node.js go to https://nodejs.org/en/ and install proper version.

After package installation you must create directory on disk to store your project and init it.
Open console, browse to created folder and then type:
#npm init
Hit [Enter] if you accept default values or enter your own data.
This will create package.json file.

If you want to install additional package then you can use command
#npm install --save packagename
–save – this option will add to your project depended library
Continue reading “Node.js for begginers – installation”

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”