Skip to content

Instantly share code, notes, and snippets.

View HichemTab-tech's full-sized avatar
🏠
Working from home

HichemTech HichemTab-tech

🏠
Working from home
View GitHub Profile
@Whip
Whip / https-on-localhost.md
Last active July 5, 2024 15:10 — forked from adnan360/https-on-localhost.md
Use HTTPS on Localhost (XAMPP, Windows)

This has been tested with XAMPP (PHP 8.2) on Windows 11.

STEP 1: Editing Configs

Open php.ini by clicking Config button on the Xampp control panel

In this ini file semi colon (;) is used to comment a line. We want to use openssl library, so we have to make sure the line for openssl is not commented.

Remove semi colon (;) in front of this line, if there is any:

@adnan360
adnan360 / https-on-localhost.md
Last active July 5, 2024 15:10
Use HTTPS on Localhost (XAMPP, Windows)

Sometimes some websites require https to work. This can be useful in those cases.

This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.

STEP 1: Editing Configs

Open:

C:\xampp\php\php.ini