免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1908 | 回复: 0
打印 上一主题 下一主题

《phpPgAdmin5.0 Usage 续》 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-02-22 19:10 |只看该作者 |倒序浏览
7. 测试
export LD_LIBRARY_PATH=/opt/php-5.3.4/lib:/opt/apache/httpd/libLD_LIBRARY_PATH
/opt/apache/httpd/bin/apachectl start
http://172.16.3.176

登录:

附录:
phpPgAdmin 5.0 INSTALL文件:
phpPgAdmin Installation Guide
-----------------------------

1. Unpack your download

   If you've downloaded a tar.gz package, execute from a terminal:

   gunzip phpPgAdmin-*.tar.gz
   tar -xvf phpPgAdmin-*.tar

   Else, if you've downloaded a tar.bz2 package, execute from a terminal:

   bunzip2 phpPgAdmin-*.tar.bz2
   tar -xvf phpPgAdmin-*.tar

   Else, if you've downloaded a zip package, execute from a terminal:

   unzip phpPgAdmin-*.zip

2. Configure phpPgAdmin

   edit phpPgAdmin/conf/config.inc.php

   If you mess up the configuration file, you can recover it from the
   config.inc.php-dist file.

3. Set up the reports database.

   If you want to enable reports (which are a useful feature) then go to
   the 'sql' subdirectory and view the SQL script for your database.  It
   will contain instructions on how to set up the reports database.

4. If you run your PHP installation in safe mode, in order that the database
   dump feature can work correctly, you need to set the 'safe_mode_allowed_env_vars'
   php.ini variable to include the PGPASSWORD and PGUSER environmental variables
   and the safe_mode_exec_dir to include /usr/bin (or wherever the pg_dump
   binaries are found).
  
       eg. safe_mode_allowed_env_vars = PHP_,PG
           safe_mode_exec_dir = /usr/bin
  
   Given that you usually don't want to allow everything in /usr/bin to
   be executed, you might want to copy the pg_dump and pg_dumpall utilities
   to a directory by themselves.
  
   Also, you will need to ensure that your 'pg_dump' and 'pg_dumpall' utilities
   are executable by the PHP process, if you want dump support in phpPgAdmin.

   Lastly, if you run phpPgAdmin in safe mode, very long running imports,
   exports and transactions may time out and be aborted.

5. Enable the statistics collector in PostgreSQL.  phpPgAdmin will display
   table and index performance and usage statistics if you have enabled the
   PostgreSQL statistics collector.  To enable the collector, uncomment the
   following lines in your postgresql.conf and enable them:

       stats_start_collector = true
    stats_command_string = true
    stats_block_level = true
    stats_row_level = true

6. Browse to the phpPgAdmin installation using a web browser.  You might
   need cookies enabled for phpPgAdmin to work.

7. IMPORTANT - SECURITY

   PostgreSQL by default does not require you to use a password to log in.
   We STRONGLY recomment that you enable md5 passwords for local connections
   in your pg_hba.conf, and set a password for the default superuser account.

   Due to the large number of phpPgAdmin installations that have not set
   passwords on local connections, there is now a configuration file
   option called 'extra_login_security', which is TRUE by default.  While
   this option is enabled, you will be unable to log in to phpPgAdmin as
   the 'root', 'administrator', 'pgsql' or 'postgres' users and empty passwords
   will not work.
  
   Once you are certain you have properly secured your database server, you
   can then disable 'extra_login_security' so that you can log in as your
   database administrator using the administrator password.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP