Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thetanaz's avatar

Does the new "one command" php install from the docs have no extensions?

So before I was using an older version of PHP that comes with XAMPP, and after reinstalling Windows I decided to test Laravel's new "one command" install for php. Thing is I'm using postgres for my database and I'm getting a driver not found error whenever I try to run the initial migrations. Usually this happens because

extension=pdo_pgsql
extension=pgsql

are commented out and I just need to delete the ; from php.ini on both lines and the driver is enabled. But the php configuration that comes with the laravel one command install seems extremely barebones.

Here's the entire php.ini file:

variables_order = "EGPCS"
opcache.enable=1
opcache.enable_cli=1

I tried adding the two lines but it clearly does nto work as those extension files don't exist in the directory. Should I just abandon this approach and go back to XAMPP, or is there a way to manually install pdo_pgsql and pgsql?

0 likes
3 replies
jlrdw's avatar

Can you just get those extensions?

thetanaz's avatar

Apologies for the delayed response, I kinda forgot about this thread. What I mean was this:

# Run as administrator...
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows/8.3'))

It's straight from the getting started docs in laravel https://laravel.com/docs/11.x/installation#installing-php

Usually when you install PHP via XAMPP,Laragon or any other way on Windows it comes with all the extensions built in, that's why I'm confused, there are no postgres drivers, as well as a bunch of other useful extensions missing.

So @wew I guess that is what I meant, now I need to just copy paste the extensions in my php directory and then add them to the PHP.INI and I'd be good to go? I tried that but for some reason php can't find them even though I've pointed to them

extension_dir = "D:/ext"
variables_order = "EGPCS"
opcache.enable=1

opcache.enable_cli=1
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll
puklipo's avatar

php.new is for beginners who are new to everything, so it only has the bare minimum of functions. It is assumed that you will use SQLite as the database. It is the default for Laravel 11.

The most common usage on Windows is WSL + Sail. You should absolutely avoid directly installing PHP, Postgres, Apache, etc. in a Windows environment other than WSL.

Please or to participate in this conversation.