Moving from Ubuntu to Windows 11 as a software developer has been an interesting learning experience.
One thing I have discovered is that setting up a development environment on a new operating system sometimes requires more patience than writing the actual application code.
Recently, I encountered several challenges while configuring my PHP development environment on Windows 11 Pro.
I previously used Laravel Herd Lite, but I wanted to install PHP directly on Windows and have more control over my development environment.
My goal was simple:
Remove the old PHP installation.
Install PHP 8.4.1.
Configure Windows PATH correctly.
Install Composer.
Verify that Composer uses the correct PHP version.
Get my existing Laravel project, SamuPOS, running properly.
In this article, I will share the steps I followed, the errors I encountered, and the lessons I learned along the way.
If you are a beginner learning PHP or transitioning from Linux to Windows, I hope this experience helps you save some…