Enable PHP support for postgresql in Ubuntu 11.04 server

前端 未结 3 1043
有刺的猬
有刺的猬 2021-01-01 13:04

I\'ve installed Apache2 with php5 support and everything works there. I\'ve installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements.

3条回答
  •  臣服心动
    2021-01-01 13:38

    Install the php5-pgsql package solves the problem. (depending on the version ... php4-pgsql for php4)

    apt-get install php5-pgsql
    

    Remember to restart Apache.

    /etc/init.d/apache2 restart
    

    --Note that it might be hard if you do not administer your server.

提交回复
热议问题