Enabling https (SSL) on LAMPP (XAMPP) at ubuntu 18.04 (Linux)

To enable the https e.g. SSL request on XAMPP/LAMPP at ubuntu 18.04 linux system please follow the instructions below. sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout Documents/https_ssl.key -out Documents/https_ssl.crt sudo nano /opt/lampp/etc/extra/httpd-vhosts.conf # Non-SSL or http hosts<VirtualHost *:80>       DocumentRoot “/opt/lampp/htdocs/”       ServerName localhost</VirtualHost><VirtualHost *:80>       DocumentRoot “/opt/lampp/htdocs/test/”     …

Tweak for custom Login, Registration and Email Verification in Laravel 10

1. If your Email Verification Link is generating a http instead of https URL then, add the following line in app/Providers/AppServiceProvider.php file.public function boot(): void{    URL::forceScheme(‘https’);} 2. If you are using https protocol to reverse proxy or load balancer then, edit the following line in app/Http/Middleware/TrustProxies.php file.protected $proxies = ‘*’;

Setting Authentication Middleware for Name Group Route in Laravel 10

লারাভেলের Name Group Route -এ Authentication Middleware সেট করতে:Route::middleware([‘auth’])->name(‘user.’)->group(function () {    Route::get(‘/u/profile’, function () {        print “User Profile”;    })->name(‘profile’);     Route::get(‘/u/dashboard’, function () {        print “User Dashboard”;    })->name(‘dashboard’);});

Docker and Docker-Compose Installation on Raspberry Pi 4

Please follow the steps below for Docker and Docker-Compose Installation on Raspberry Pi 4: # Get the official installation scriptsudo apt updatesudo apt upgradecurl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.sh # To run docker commands without using sudosudo usermod -aG docker $USERsudo reboot # To verify dockerdocker version # To install docker-compose (specially on raspberry)sudo…

Installing certbot on Oracle Linux 8

To install the certbot on Oracle Linux 8 sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmsudo yum updatesudo yum install snapdsudo systemctl enable snapdsudo systemctl start snapdsudo snap install core; sudo snap refresh core # To enable classic confinementsudo ln -s /var/lib/snapd/snap /snap snap install –classic certbotsudo ln -s /snap/bin/certbot /usr/bin/certbot # To check the installationcertbot –version

Project development server setup on the Google Cloud Platform (GCP)

Let’s create a Virtual Machine (VM) instance by following functionalities and features. A Debian-10 is perfect for me. I’m comfortable with DDClient, which updates the external IP of the instance so, I don’t need any static IP yet. An N1 Micro instance with 10GB Balanced Persistent Disk (PD) is quite ok. I don’t prefer a…