Ubuntu上的phppgAdmin安装及配置


一直想将phppgamdin布署好,但在RedHat和Windows下安装时均碰到了不同的问题,因为对web的东东不熟悉,最终努力后,以失败收场。详见:

   周末突然来了兴趣,装了个Ubuntu,昨晚再次试了下phppgAdmin,终于配置成功。记录过程:

   1. 使用Ubuntu自带的“新立得软件包管理器”安装php5, apache2, postgresql8.4.2。

   2. 安装完成后,测试一下apache2, 浏览器中输入http://localhost,显示It`s works.。

   3. 为了方便起见, 直接执行:cp /usr/share/phppgadmin /var/www,将phppgadmin的目录直接拷贝到apache2默认目录下,再进入/var/www,将index.html删除。

   4.进入/var/www/conf,修改config.inc.php文件,将下面配置项由true改为false。 

  1. // If extra login security is true, then logins via phpPgAdmin with no  
  2. // password or certain usernames (pgsql, postgres, root, administrator)  
  3. // will be denied. Only set this false once you have read the FAQ and  
  4. // understand how to change PostgreSQL's pg_hba.conf to enable  
  5. // passworded local connections.  
  6. $conf['extra_login_security'] = false;  

  5.关于postgre上面的监听打开请参考之前博文,这里不再讲述。

  6.重启apache2, 执行:service apache2 restart

  7.用浏览器中输入locathost或本机IP即可,接下来的一事情跟逛CSDN论坛一样,会上网就会使用。不再讲述。

  8.俗话说,有图有真像,抓几张贴上来玩:

  a.整体视图:

Ubuntu上的phppgAdmin安装及配置   


  b.执行SQL语句:

Ubuntu上的phppgAdmin安装及配置

 c.创建函数或存储过程的界面:

Ubuntu上的phppgAdmin安装及配置

  • 1
  • 2
  • 下一页

相关内容