duanhuantong8278 2013-08-16 05:51
浏览 132

在xampp中的Postgresql,phpPgAdmin

Hi I have this error while I'm trying to launch phpPgAdmin.

Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.

Im using xampp ver 1.7.7 , Postgresql 9.2.4 64 bits , and phpPgAdmin 5.1

I already did the following:

  1. open "config.inc.php" found in C:\xampp\phpPgAdmin\conf\ and set  "extra_login_security" to false
        $conf['extra_login_security'] = false;

  2. Find php.ini file, in C: \ xampp \ php \ php.ini, 
  then look for the line " ; extension = php_pgsql.dll "remove tag ';' it so that the 
  result was" extension = php_pgsql.dll "

(although I found php.ini- production and development so I uncomment them both)

  3. open c:\xampp\apache\conf\extra\httpd-xampp.conf and in section <IfModule mime_module> add
 Alias /phppgadmin "c:/xampp/phpPgAdmin/"
<Directory "c:/xampp/phpPgAdmin">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>


  4. LoadFile “C:/xammp/php/libpq.dll”

but I still get this error. Can someone help me?

  • 写回答

2条回答 默认 最新

  • dpc46827 2014-02-07 12:43
    关注

    I am writing the answer from the beginning, not everything what you tried was wrong.

    xampp is up and running.

    Download phpPgAdmin and copy it into c:\xampp\phpPgAdmin

    Modify the config file

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

    Add like phpMyAdmin part the phpPgAdmin part:

    Alias /phppgadmin "C:/xampp/phpPgAdmin/"
    <Directory "C:/xampp/phpPgAdmin">
        AllowOverride AuthConfig
        Require all granted
    </Directory>
    

    Restart apache and enter in browser

    http://127.0.0.1/phppgadmin/
    

    Now you would get the message: install php with –-pqsql option

    Postgres installation and the configuration:

    Install postgresql 32bit even if you have 64bit windows (this is not a joke)

    Postgres is now up and running

    Modify again the config file

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

    Add the following line (in my case PostgreSQL is installed in C:/xampp/PostgreSQL):

    LoadFile "C:/xampp/PostgreSQL/bin/libpq.dll"
    

    before the following existing lines

    LoadFile "C:/xampp/php/php5ts.dll"
    LoadModule php5_module "C:/xampp/php/php5apache2_4.dll"
    

    Modify the config file

    C:\xampp\php\php.ini

    Uncomment the following line by removing ';'

    ;extension=php_pgsql.dll
    

    Restart apache and enter again in your browser

    http://127.0.0.1/phppgadmin/
    

    It should work, it works for me

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100