Setting static ip on Ubuntu 24.04 LTS

We should edit config file netplan „/etc/netplan/50-cloud-init.yaml” and add below lines: network: ethernets: ens18: addresses: – 10.10.10.100/24 dhcp6: false routes: – to: default via: 10.10.10.1 nameservers: addresses: – 10.10.20.2 – 1.1.1.1 search: [] optional: true version: 2 assumptions: After editing the above config file, we should check the configuration using the command „netplan try” and … Dowiedz się więcej

How to create a certificate in pfx format?

It’s quite simple. We need a certificate in pem format with key and ca certificate. Certificate can be with CA in one file. A command to do everything is: openssl pkcs12 -export -in cert+ca.pem -inkey private-key.key -out mycert.pfx In the end, we should enter a password for the pfx file.

Permission denied while connecting to upstream

The error message from the above entry concerns the Nginx webserver and php-fpm. The problem is related to SElinux. By default, the webserver is not allowed to connect to the network. To fix this problem, you need to issue the commands below: setsebool -P httpd_can_network_connect 1 setsebool -P httpd_can_network_relay 1 That’s all. Enjoy with Nginx, … Dowiedz się więcej