To add basic authentication to you own http server is really simple, you only need to add inside the “onCommandGet” method the authentication check, as in the example shown after the image Inside the method you can: if ( ARequestInfo.AuthUsername.ToUpper.Equals(‘USERNAME’.ToUpper) and ARequestInfo.AuthPassword.Equals(‘PASSWORD’) ) then begin AResponseInfo. ResponseNo : = 401; AResponseInfo. AuthRealm : = ‘Autentication…
Read more
Tested on: Ubuntu 22.04 Default php version is 8.1 and we want install php 7.4 Ondrej PPA contains PHP 8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0 & PHP 5.6 packages. First update the system sudo apt update && sudo apt upgrade 1. Check Active PHP Version php -v 2. Install php on system…
Read more
To transfer a KVM virtual machine (VM) from one host to another, you can follow the steps below: Make sure you have the same version of KVM on both hosts. You can verify this by running the kvm –version command. Stop the VM you want to transfer. You can do this using the command virsh…
Read more
Helpers are a way to extend a class without using inheritance, which is also useful for records that don’t allow inheritance at all. Official documentation is available at: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Class_and_Record_Helpers_(Delphi). I often found myself creating code to export a dataset or a single record with its values in an SQL statement, and every time I wrote…
Read more
To update Apache2 to the lasted version on Ubuntu is quite simpe: Verify current Apache version: sudo apache2 -v Add Apache repository: sudo add-apt-repository ppa:ondrej/apache2 Update apt: sudo apt update Upgrade apt: sudo apt upgrade And now ( in my case, with Ubuntu 22.04 current date) my new Apache2 release is:…
Read more
Install samba server: sudo apt install samba backup config filee: sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup create a shared folder for your user, like: mkdir /home//mmyshare edit samba config file: nano /etc/samba/smb.conf replace all smb.conf with this: [global] workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) log file = /var/log/samba/log.%m max log size = 1000…
Read more