← Back to team overview

sslug-teknik team mailing list archive

FW: PHP 4.0.2-3 connect to PostgreSQL

 

> Hi Ping'er
> Hi Troels - tak for fine pakker. 
> 
> Jeg bruger RedHat 6.2, Postgres 7 og Apachen der medfølger RH 6.2. Troels
> PHP 4.0.2-3 RPM pakke funker fint lige efter installering - men jeg kan
> ikke få pakken php-pgsl-4.0.2-3i586.rpm til at fungere. Et kald af
> pg_connect giver svaret:
> Fatal error: Call to undefined function: pg_connect() in
> /home/httpd/html/marc/pgconnect.php on line 2
> 
> jeg har prøvet med at konfigurere i php.ini
> pgsql.allow_persistent = On;
> pgsql.max_persistent = 5;
> pgsql.max_links = 10;
> 
> men ligemeget hjælper det.
> 
> Hvad gør jeg forkert?
> 
> Mange hilsen, Marc Cromme
> 
> Som hjælp - eller yderlige forvirring sender jeg output af phpinfo() med:
>  <<phpinfo().txt>> 
> 
> 
> 
phpinfo()PHP Version 4.0.2

      SystemLinux troels 2.2.16 #2 Thu Jun 15 01:28:39 CEST 2000 i686 unknown
      Build DateSep 6 2000
      Configure Command'./configure' '--prefix=/usr' '--with-apxs' 
      '--libdir=/usr/lib/php4' '--includedir=/usr/include' 
      '--datadir=/usr/share/php' '--with-config-file-path=/etc/httpd' 
      '--enable-inline-optimization' '--enable-magic-quotes' 
      '--enable-track-vars' '--enable-memory-limit' '--enable-wddx' 
      '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--with-xml' 
      '--with-gd=shared' '--with-ttf' '--enable-ftp' '--with-readline=shared' 
      '--with-mm' '--with-mysql=shared' '--with-ldap=shared' 
      '--with-imap=shared' '--with-zlib' '--with-pgsql=shared' 
      '--with-gettext=shared' '--with-pspell=shared' '--with-snmp=shared' 
      '--enable-ucd-snmp-hack'
      Server APIApache
      Virtual Directory Supportdisabled
      Configuration File (php.ini) Path/etc/httpd
      ZEND_DEBUGdisabled
      Thread Safetydisabled

       This program makes use of the Zend scripting language engine:
      Zend Engine v1.0.2, Copyright (c) 1998-2000 Zend Technologies






PHP 4.0 Credits



Configuration
PHP Core 
      DirectiveLocal ValueMaster Value
      allow_call_time_pass_reference
      OnOn
      arg_separator
      &&
      asp_tags
      OffOff
      auto_append_file
      no valueno value
      auto_prepend_file
      no valueno value
      browscap
      no valueno value
      default_charset
      no valueno value
      default_mimetype
      text/htmltext/html
      define_syslog_variables
      OffOff
      disable_functions
      no valueno value
      display_errors
      OnOn
      doc_root
      no valueno value
      enable_dl
      OnOn
      error_append_string
      OffOff
      error_log
      no valueno value
      error_prepend_string
      OffOff
      error_reporting
      no valueno value
      expose_php
      OnOn
      extension_dir
      /usr/lib/php4/usr/lib/php4
      gpc_order
      GPCGPC
      highlight.bg
      #FFFFFF#FFFFFF
      highlight.comment
      #FF8000#FF8000
      highlight.default
      #0000BB#0000BB
      highlight.html
      #000000#000000
      highlight.keyword
      #007700#007700
      highlight.string
      #DD0000#DD0000
      html_errors
      OnOn
      ignore_user_abort
      OffOff
      implicit_flush
      OffOff
      include_path
      .:/usr/share/php.:/usr/share/php
      log_errors
      OffOff
      magic_quotes_gpc
      OnOn
      magic_quotes_runtime
      OffOff
      magic_quotes_sybase
      OffOff
      max_execution_time
      3030
      memory_limit
      83886088388608
      open_basedir
      no valueno value
      output_buffering
      OffOff
      precision
      1414
      register_argc_argv
      OnOn
      register_globals
      OnOn
      safe_mode
      OffOff
      safe_mode_exec_dir
      11
      sendmail_from
      no valueno value
      sendmail_path
      /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i 
      short_open_tag
      OnOn
      SMTP
      localhostlocalhost
      sql.safe_mode
      OffOff
      track_errors
      OnOn
      track_vars
      OnOn
      upload_max_filesize
      20971522097152
      upload_tmp_dir
      no valueno value
      user_dir
      no valueno value
      variables_order
      no valueno value
      y2k_compliance
      OffOff


zlib
      ZLib Supportenabled
      Compiled Version1.1.3
      Linked Version1.1.3


xml
      XML Supportactive


standard
      Regex LibraryBundled library enabled
      Dynamic Library Supportenabled
      Path to sendmail/usr/sbin/sendmail -t -i 

      DirectiveLocal ValueMaster Value
      assert.active
      11
      assert.bail
      00
      assert.callback
      no valueno value
      assert.quiet_eval
      00
      assert.warning
      11
      safe_mode_allowed_env_vars
      PHP_PHP_
      safe_mode_protected_env_vars
      LD_LIBRARY_PATHLD_LIBRARY_PATH


session
      Session Supportenabled

      DirectiveLocal ValueMaster Value
      session.auto_start
      OffOff
      session.cache_expire
      180180
      session.cache_limiter
      nocachenocache
      session.cookie_domain
      no valueno value
      session.cookie_lifetime
      00
      session.cookie_path
      //
      session.entropy_file
      no valueno value
      session.entropy_length
      00
      session.gc_maxlifetime
      14401440
      session.gc_probability
      11
      session.name
      PHPSESSIDPHPSESSID
      session.referer_check
      no valueno value
      session.save_handler
      filesfiles
      session.save_path
      /var/state/php/var/state/php
      session.serialize_handler
      phpphp
      session.use_cookies
      OnOn


posix
      Revision$Revision: 1.22 $


pcre
      PCRE (Perl Compatible Regular Expressions) Supportenabled
      PCRE Library Version3.1 09-Feb-2000


db
      This is GDBM version 1.8.0, as of May 19, 1999.


apache
      APACHE_INCLUDE 
      APACHE_TARGET 
      Apache VersionApache/1.3.12
      Apache Release10312100
      Apache API Version19990320
      Hostname:Portlocalhost:80
      User/Groupnobody(99)/99
      Max RequestsPer Child: 100
      Keep Alive: on
      Max Per Connection: 100
      TimeoutsConnection: 300
      Keep-Alive: 15
      Server Root/etc/httpd
      Loaded Modulesmod_perl, mod_setenvif, mod_usertrack, mod_headers, 
      mod_expires, mod_proxy, mod_digest, mod_auth_db, mod_auth_anon, mod_auth, 
      mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, 
      mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, 
      mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, 
      mod_log_config, mod_env, mod_vhost_alias, mod_php4, mod_so, http_core


Apache Environment
      VariableValue
      DOCUMENT_ROOT/home/httpd/html
      HTTP_ACCEPTapplication/vnd.ms-excel, application/msword, 
      application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, 
      image/pjpeg, */*
      HTTP_ACCEPT_ENCODINGgzip, deflate
      HTTP_ACCEPT_LANGUAGEda
      HTTP_CONNECTIONKeep-Alive
      HTTP_HOSTpchfimac2
      HTTP_USER_AGENTMozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
      PATH/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
      REMOTE_ADDR147.29.128.117
      REMOTE_PORT1291
      SCRIPT_FILENAME/home/httpd/html/marc/phpinfo.php
      SERVER_ADDR147.29.128.55
      SERVER_ADMINroot@localhost
      SERVER_NAMElocalhost
      SERVER_PORT80
      SERVER_SIGNATUREApache/1.3.12 Server at localhost Port 80
      SERVER_SOFTWAREApache/1.3.12 (Unix) (Red Hat/Linux) mod_perl/1.21 
PHP/4.0.2
      GATEWAY_INTERFACECGI/1.1
      SERVER_PROTOCOLHTTP/1.1
      REQUEST_METHODGET
      QUERY_STRING 
      REQUEST_URI/marc/phpinfo.php
      SCRIPT_NAME/marc/phpinfo.php


HTTP Headers Information
      HTTP Request Headers
      HTTP RequestGET /marc/phpinfo.php HTTP/1.1
      Acceptapplication/vnd.ms-excel, application/msword, 
      application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, 
      image/pjpeg, */*
      Accept-Encodinggzip, deflate
      Accept-Languageda
      ConnectionKeep-Alive
      Hostpchfimac2
      User-AgentMozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
      HTTP Response Headers
      X-Powered-ByPHP/4.0.2
      Keep-Alivetimeout=15, max=100
      ConnectionKeep-Alive
      Transfer-Encodingchunked
      Content-Typetext/html


Additional Modules
      wddx
      ftp
      Session MM


Environment
      VariableValue
      INIT_VERSIONsysvinit-2.78
      previousN
      TERMlinux
      HOSTTYPEi386
      PATH/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
      CONSOLE/dev/console
      HOME/
      PREVLEVELN
      RUNLEVEL3
      SHELL/bin/bash
      runlevel3
      AUTOBOOTYES
      BOOT_IMAGElinux
      OSTYPELinux
      SHLVL2
      _/bin/nice


PHP Variables
      VariableValue
      PHP_SELF/marc/phpinfo.php
      HTTP_SERVER_VARS["DOCUMENT_ROOT"]/home/httpd/html
      HTTP_SERVER_VARS["HTTP_ACCEPT"]application/vnd.ms-excel, 
      application/msword, application/vnd.ms-powerpoint, image/gif, 
      image/x-xbitmap, image/jpeg, image/pjpeg, */*
      HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]gzip, deflate
      HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]da
      HTTP_SERVER_VARS["HTTP_CONNECTION"]Keep-Alive
      HTTP_SERVER_VARS["HTTP_HOST"]pchfimac2
      HTTP_SERVER_VARS["HTTP_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 5.0; 
      Windows NT; DigExt)
      HTTP_SERVER_VARS["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
      HTTP_SERVER_VARS["REMOTE_ADDR"]147.29.128.117
      HTTP_SERVER_VARS["REMOTE_PORT"]1291
      HTTP_SERVER_VARS["SCRIPT_FILENAME"]/home/httpd/html/marc/phpinfo.php
      HTTP_SERVER_VARS["SERVER_ADDR"]147.29.128.55
      HTTP_SERVER_VARS["SERVER_ADMIN"]root@localhost
      HTTP_SERVER_VARS["SERVER_NAME"]localhost
      HTTP_SERVER_VARS["SERVER_PORT"]80
      HTTP_SERVER_VARS["SERVER_SIGNATURE"]Apache/1.3.12 Server at localhost Port 
      80
      HTTP_SERVER_VARS["SERVER_SOFTWARE"]Apache/1.3.12 (Unix) (Red Hat/Linux) 
      mod_perl/1.21 PHP/4.0.2
      HTTP_SERVER_VARS["GATEWAY_INTERFACE"]CGI/1.1
      HTTP_SERVER_VARS["SERVER_PROTOCOL"]HTTP/1.1
      HTTP_SERVER_VARS["REQUEST_METHOD"]GET
      HTTP_SERVER_VARS["QUERY_STRING"]
      HTTP_SERVER_VARS["REQUEST_URI"]/marc/phpinfo.php
      HTTP_SERVER_VARS["SCRIPT_NAME"]/marc/phpinfo.php
      HTTP_SERVER_VARS["PATH_TRANSLATED"]/home/httpd/html/marc/phpinfo.php
      HTTP_SERVER_VARS["PHP_SELF"]/marc/phpinfo.php
      HTTP_SERVER_VARS["argv"]Array
(
)


      HTTP_SERVER_VARS["argc"]0
      HTTP_ENV_VARS["INIT_VERSION"]sysvinit-2.78
      HTTP_ENV_VARS["previous"]N
      HTTP_ENV_VARS["TERM"]linux
      HTTP_ENV_VARS["HOSTTYPE"]i386
      HTTP_ENV_VARS["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
      HTTP_ENV_VARS["CONSOLE"]/dev/console
      HTTP_ENV_VARS["HOME"]/
      HTTP_ENV_VARS["PREVLEVEL"]N
      HTTP_ENV_VARS["RUNLEVEL"]3
      HTTP_ENV_VARS["SHELL"]/bin/bash
      HTTP_ENV_VARS["runlevel"]3
      HTTP_ENV_VARS["AUTOBOOT"]YES
      HTTP_ENV_VARS["BOOT_IMAGE"]linux
      HTTP_ENV_VARS["OSTYPE"]Linux
      HTTP_ENV_VARS["SHLVL"]2
      HTTP_ENV_VARS["_"]/bin/nice


PHP License
      This program is free software; you can redistribute it and/or modify it 
      under the terms of the PHP License as published by the PHP Group and 
      included in the distribution in the file: LICENSE 
      This program is distributed in the hope that it will be useful, but 
      WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
      or FITNESS FOR A PARTICULAR PURPOSE. 
      If you did not receive a copy of the PHP license, or have any questions 
      about PHP licensing, please contact license@xxxxxxx. 



Follow ups