Setting up Phppgadmin 5.0.2 with Xampp 1.7.4
I was asked to perform(first time) a task in PHP with PostgreSQL for the purpose I intalled XAMPP 1.7.4, PostgreSQL 9.X, I was unaware how to setup phpPgadmin(5.0.2) so I googled and found Configuration Instruction here; and here
after configuring all this i found following error when i tried to https://localhost/phppgadmin
Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.
I googled again found some possible reasons those are
- you did't restarted aphace
- the php.ini you changed is not the right php.ini file, make it sure from xampp console under phpinfo()
I have c开发者_运维问答hecked both but still error is there no change at all. please someone help me, I already spent more than a business day, THANKs
As I replied there, copying around php/libpq.dll into apache/bin should (hopefully) do the trick.
Did you uncomment the line:
extension=php_pgsql.dll
in
C:\xampp\php\php.ini
and after that restart Apache?
I tried following article and it worked.
http://programmingmeetsmath.wordpress.com/2010/12/21/a-step-by-step-guide-of-installing-apache-php5-postgresql-windows/
Are you sure you installed the postgresql module?
Just do a phpinfo();
to find out which modules are installed.
I was facing the same issue. Everything uncommented and displayed in phpinfo()
Finally I went to xampp:/php/ directory and double clicked php.exe to execute
And the command prompt showed the error in my php.ini
I fixed the missing semicolon in a line and everything went smooth. Hope it helps someone
精彩评论