Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP all to undefined function pg_connect()

I've installed XAMPP in Manjaro. I'm struggling to solve this issue.

Fatal error: Call to undefined function pg_connect() 

I've read some posts and I've also tried to follow these steps

Open php.ini
Find ;extension=php_pgsql.dll and remove the semicolon at the beginning
Find ;extension=php_pdo_pgsql.dll and remove the semicolon at the beginning
Save the file
Restart apache (kudos @Inventillect) 

But it didn't work for me.

Any idea?

like image 452
Ldia Cerqueira Avatar asked Feb 14 '26 13:02

Ldia Cerqueira


1 Answers

Because you are using linux.

Edit file php.ini, find ;extension="pgsql.so" and remove the semicolon at the beginning.

Please pay attention that "pgsql.so" is different with "php_pgsql.dll"

like image 184
Kentang Avatar answered Feb 16 '26 02:02

Kentang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!