Enable VT-x in hp Z640 Workstation

Symptom – when going to vagrant up – to start a VM for the first time in this OS/PC

The msinfo32 shows: VT-x is disabled

Follow the Steps for the result: VT-x enabled

===

STEP BY STEP – Follows

0 – reboot the PC

Go – Security[3] and after System Security[4]

VT-x is disabled[all three], We will enable all

After confirming it

Go: Main[7] + Save & Exit

now msinfo32 will show:

All Done!

Create Restore Point, Error! GREEK Windows 10 HOME (0x80042319)

Συμβουλές για να διορθώσετε την Επαναφορά Συστήματος των Windows

Note: Users with Windows 10/11 in English, click here: http://leonidassavvides.com/blog/2023/04/27/create-restore-point-error-windows-11-pro-check-the-system-and-application-event-logs-for-more-information-0x80042319/

Restart the Volume shadow copy service [Σκιώδη αντίγραφο τόμου]

Make sure you are logged on with an administrator account. Then follow the steps below:

1. Press the Windows + R key to open the Run window.

2. Type “services.msc” in that box and press Enter to open Windows Services.

3. Locate a service called Volume Shadow Copy[Σκιώδη αντίγραφο τόμου]. If it is not running, start it. If it is running, Stop and Restart this service.

RIGHT-CLICK > PROPERTIES > GENERAL [1st tab] > 1=Stop + 2=Start

4. Change this service Startup type to Automatic.

5. AFTER ABOVE

Restart System Properties Window if it is Open,

AFTER Retry Again Create Restore Point, Windows 10 – ALL OK

Enable CORS for multiple domains in PHP

In this article, we’ll explain to you how to permit CORS requests for multiple origins in PHP.

To get the response from a simple cross-origin POST request, we need to include the header Access-Control-Allow-Origin. The specification of Access-Control-Allow-Origin allows for multiple origins, or the value null, or the wildcard *.

Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: https://domainXYZ.com
Access-Control-Allow-Origin: null

The above is a simple implementation.

For multiple domains permissions of CORS, we can use a PHP snippet like below:

<?php
$allowedOrigins = [
   'https://domainXYZ.com',
   'https://z1.domainXYZ.com',
   'https://z2.domainXYZ.com',
   'https://z3.domainXYZ.com',
   'http://z4.domainXYZ4.com',
];

if(in_array($_SERVER['HTTP_ORIGIN'], $allowedOrigins))
{
	$http_origin = $_SERVER['HTTP_ORIGIN'];
} else {
	$http_origin = "https://example.com";
}
header("Access-Control-Allow-Origin: $http_origin");
?>