php - Postgresql, phpPgAdmin in xammp -


hi have error while i'm trying launch phppgadmin.

your php installation not support postgresql. need recompile php using --with-pgsql configure option.

im using xampp ver 1.7.7 , postgresql 9.2.4 64 bits , , phppgadmin 5.1

i did following:

  1. open "config.inc.php" found in c:\xampp\phppgadmin\conf\ , set  "extra_login_security" false         $conf['extra_login_security'] = false;    2. find php.ini file, in c: \ xampp \ php \ php.ini,    line " ; extension = php_pgsql.dll "remove tag ';'    result was" extension = php_pgsql.dll " 

(although found php.ini- production , development uncomment them both)

  3. open c:\xampp\apache\conf\extra\httpd-xampp.conf , in section <ifmodule mime_module> add  alias /phppgadmin "c:/xampp/phppgadmin/" <directory "c:/xampp/phppgadmin"> allowoverride authconfig order allow,deny allow </directory>     4. loadfile “c:/xammp/php/libpq.dll” 

but still error. can me?

i writing answer beginning, not tried wrong.

xampp , running.

download phppgadmin , copy c:\xampp\phppgadmin

modify config file

c:\xampp\apache\conf\extra\httpd-xampp.conf

add phpmyadmin part phppgadmin part:

alias /phppgadmin "c:/xampp/phppgadmin/" <directory "c:/xampp/phppgadmin">     allowoverride authconfig     require granted </directory> 

restart apache , enter in browser

http://127.0.0.1/phppgadmin/ 

now message: install php –-pqsql option

postgres installation , configuration:

install postgresql 32bit if have 64bit windows (this not joke)

postgres , running

modify again config file

c:\xampp\apache\conf\extra\httpd-xampp.conf

add following line (in case postgresql installed in c:/xampp/postgresql):

loadfile "c:/xampp/postgresql/bin/libpq.dll" 

before following existing lines

loadfile "c:/xampp/php/php5ts.dll" loadmodule php5_module "c:/xampp/php/php5apache2_4.dll" 

modify config file

c:\xampp\php\php.ini

uncomment following line removing ';'

;extension=php_pgsql.dll 

restart apache , enter again in browser

http://127.0.0.1/phppgadmin/ 

it should work, works me


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -