php_network_getaddresses: getaddrinfo failed: Name or service not known in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandipbhoi
    New Member
    • May 2007
    • 3

    php_network_getaddresses: getaddrinfo failed: Name or service not known in

    Hello all,

    I have implemented a integration of payment gateway with paypal. Currently my site is hosted at a shared server. The site under test was working properly till there was no change on hosting server. But now on hosting server (server admin) made some changes(update) . and now i as getting the warning shown above ... What changes has been occurred in the environment for php i don't know but thank god i have noted some information given by phpinfo() of both the version.

    I have attached both the phpinfo() pages old_phpinfo and new_phpinfo

    by checking the diff. please can any help me that what could be the change?
  • sandipbhoi
    New Member
    • May 2007
    • 3

    #2
    old_phpinfo()

    old_phpinfo()
    [HTML]
    PHP Version 4.4.2

    System Linux srv1.webhosting suite.com 2.6.9-023stab043.1-smp #1 SMP Mon Mar 5 16:38:22 MSK 2007 i686
    Build Date Jul 5 2006 22:54:07
    Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-zlib'
    Server API Apache
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
    PHP API 20020918
    PHP Extension 20020429
    Zend Extension 20050606
    Debug Build no
    Zend Memory Manager enabled
    Thread Safety disabled
    Registered PHP Streams php, http, ftp, compress.zlib

    PHP Credits
    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time _pass_reference On On
    allow_url_fopen On On
    always_populate _raw_post_data Off Off
    arg_separator.i nput & &
    arg_separator.o utput & &
    asp_tags Off Off
    auto_append_fil e no value no value
    auto_prepend_fi le no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetyp e text/html text/html
    define_syslog_v ariables Off Off
    disable_classes no value no value
    disable_functio ns no value no value
    display_errors On On
    display_startup _errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_st ring no value no value
    error_log error_log error_log
    error_prepend_s tring no value no value
    error_reporting 2039 2039
    expose_php On On
    extension_dir ./ ./
    file_uploads On On
    gpc_order GPC GPC
    highlight.bg #FFFFFF #FFFFFF
    highlight.comme nt #FF8000 #FF8000
    highlight.defau lt #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keywo rd #007700 #007700
    highlight.strin g #DD0000 #DD0000
    html_errors On On
    ignore_repeated _errors Off Off
    ignore_repeated _source Off Off
    ignore_user_abo rt Off Off
    implicit_flush Off Off
    include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
    log_errors On On
    log_errors_max_ len 1024 1024
    magic_quotes_gp c On On
    magic_quotes_ru ntime Off Off
    magic_quotes_sy base Off Off
    max_execution_t ime 30 30
    max_input_time -1 -1
    open_basedir /home/wissen/:/usr/lib/php:/usr/local/lib/php:/tmp no value
    output_bufferin g no value no value
    output_handler no value no value
    post_max_size 55M 55M
    precision 14 14
    register_argc_a rgv On On
    register_global s On On
    report_memleaks On On
    safe_mode Off Off
    safe_mode_exec_ dir no value no value
    safe_mode_gid Off Off
    safe_mode_inclu de_dir no value no value
    sendmail_from no value no value
    sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
    serialize_preci sion 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_cal lback_func no value no value
    upload_max_file size 2M 2M
    upload_tmp_dir no value no value
    user_dir no value no value
    variables_order EGPCS EGPCS
    xmlrpc_error_nu mber 0 0
    xmlrpc_errors Off Off
    y2k_compliance Off Off

    APACHE_INCLUDE no value
    APACHE_TARGET no value
    Apache Version Apache/1.3.36 (Unix) mod_jk/1.2.14 mod_auth_passth rough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635.SR1. 2 mod_ssl/2.8.27 OpenSSL/0.9.7a
    Apache Release 10336100
    Apache API Version 19990320
    Hostname:Port www.wissen.co.i n:80
    User/Group nobody(99)/99
    Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
    Timeouts Connection: 300 - Keep-Alive: 15
    Server Root /usr/local/apache
    Loaded Modules mod_jk, mod_security, mod_auth_passth rough, mod_log_bytes, mod_bwlimited, mod_php4, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_expires, 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_status, mod_negotiation , mod_mime, mod_log_config, mod_env, http_core

    Directive Local Value Master Value
    child_terminate 0 0
    engine 1 1
    last_modified 0 0
    xbithack 0 0

    mysql
    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 4.1.21
    MYSQL_MODULE_TY PE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient

    Directive Local Value Master Value
    mysql.allow_per sistent On On
    mysql.connect_t imeout 60 60
    mysql.default_h ost no value no value
    mysql.default_p assword no value no value
    mysql.default_p ort no value no value
    mysql.default_s ocket no value no value
    mysql.default_u ser no value no value
    mysql.max_links Unlimited Unlimited
    mysql.max_persi stent Unlimited Unlimited
    mysql.trace_mod e Off Off


    sockets
    Sockets Support enabled


    standard
    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Path to sendmail /usr/sbin/sendmail -t -i

    Directive Local Value Master Value
    assert.active 1 1
    assert.bail 0 0
    assert.callback no value no value
    assert.quiet_ev al 0 0
    assert.warning 1 1
    auto_detect_lin e_endings 0 0
    default_socket_ timeout 60 60
    safe_mode_allow ed_env_vars PHP_ PHP_
    safe_mode_prote cted_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
    url_rewriter.ta gs a=href,area=hre f,frame=src,for m=,fieldset= a=href,area=hre f,frame=src,for m=,fieldset=
    user_agent no value no value
    [/HTML]

    Comment

    • sandipbhoi
      New Member
      • May 2007
      • 3

      #3
      new_phpInfo()

      [HTML]

      PHP Version 5.1.2

      System Linux srv1.webhosting suite.com 2.6.9-023stab043.1-smp #1 SMP Mon Mar 5 16:38:22 MSK 2007 i686
      Build Date Apr 29 2007 23:20:54
      Configure Command './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-snmp' '--enable-ucd-snmp-hack' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-safe-mode' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-xmlrpc' '--with-zip' '--with-zlib'
      Server API CGI
      Virtual Directory Support disabled
      Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
      PHP API 20041225
      PHP Extension 20050922
      Zend Extension 220051025
      Debug Build no
      Thread Safety disabled
      Zend Memory Manager enabled
      IPv6 Support enabled
      Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps
      Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
      Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_ta gs, convert.*, convert.iconv.* , zlib.*

      PHP Credits
      Configuration
      PHP Core
      Directive Local Value Master Value
      allow_call_time _pass_reference On On
      allow_url_fopen On On
      always_populate _raw_post_data Off Off
      arg_separator.i nput & &
      arg_separator.o utput & &
      asp_tags Off Off
      auto_append_fil e no value no value
      auto_globals_ji t On On
      auto_prepend_fi le no value no value
      browscap no value no value
      default_charset no value no value
      default_mimetyp e text/html text/html
      define_syslog_v ariables Off Off
      disable_classes no value no value
      disable_functio ns dl,passthru,pro c_open,proc_clo se,shell_exec,s ystem dl,passthru,pro c_open,proc_clo se,shell_exec,s ystem
      display_errors On On
      display_startup _errors Off Off
      doc_root no value no value
      docref_ext no value no value
      docref_root no value no value
      enable_dl On On
      error_append_st ring no value no value
      error_log error_log error_log
      error_prepend_s tring no value no value
      error_reporting 2039 2039
      expose_php On On
      extension_dir ./ ./
      file_uploads On On
      highlight.bg #FFFFFF #FFFFFF
      highlight.comme nt #FF8000 #FF8000
      highlight.defau lt #0000BB #0000BB
      highlight.html #000000 #000000
      highlight.keywo rd #007700 #007700
      highlight.strin g #DD0000 #DD0000
      html_errors On On
      ignore_repeated _errors Off Off
      ignore_repeated _source Off Off
      ignore_user_abo rt Off Off
      implicit_flush Off Off
      include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
      log_errors On On
      log_errors_max_ len 1024 1024
      magic_quotes_gp c On On
      magic_quotes_ru ntime Off Off
      magic_quotes_sy base Off Off
      mail.force_extr a_parameters no value no value
      max_execution_t ime 30 30
      max_input_time 60 60
      open_basedir no value no value
      output_bufferin g no value no value
      output_handler no value no value
      post_max_size 8M 8M
      precision 12 12
      realpath_cache_ size 16K 16K
      realpath_cache_ ttl 120 120
      register_argc_a rgv On On
      register_global s Off Off
      register_long_a rrays On On
      report_memleaks On On
      report_zend_deb ug On On
      safe_mode Off Off
      safe_mode_exec_ dir no value no value
      safe_mode_gid Off Off
      safe_mode_inclu de_dir no value no value
      sendmail_from no value no value
      sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
      serialize_preci sion 100 100
      short_open_tag On On
      SMTP localhost localhost
      smtp_port 25 25
      sql.safe_mode Off Off
      track_errors Off Off
      unserialize_cal lback_func no value no value
      upload_max_file size 2M 2M
      upload_tmp_dir no value no value
      user_dir no value no value
      variables_order EGPCS EGPCS
      xmlrpc_error_nu mber 0 0
      xmlrpc_errors Off Off
      y2k_compliance On On
      zend.ze1_compat ibility_mode Off Off

      mysql
      MySQL Support enabled
      Active Persistent Links 0
      Active Links 0
      Client API version 4.1.19
      MYSQL_MODULE_TY PE external
      MYSQL_SOCKET /var/lib/mysql/mysql.sock
      MYSQL_INCLUDE -I/usr/include/mysql
      MYSQL_LIBS -L/usr/lib -lmysqlclient

      Directive Local Value Master Value
      mysql.allow_per sistent On On
      mysql.connect_t imeout 60 60
      mysql.default_h ost no value no value
      mysql.default_p assword no value no value
      mysql.default_p ort no value no value
      mysql.default_s ocket no value no value
      mysql.default_u ser no value no value
      mysql.max_links Unlimited Unlimited
      mysql.max_persi stent Unlimited Unlimited
      mysql.trace_mod e Off Off

      mysqli
      MysqlI Support enabled
      Client API version 4.1.19
      MYSQLI_SOCKET /var/lib/mysql/mysql.sock

      Directive Local Value Master Value
      mysqli.default_ host no value no value
      mysqli.default_ port 3306 3306
      mysqli.default_ pw no value no value
      mysqli.default_ socket no value no value
      mysqli.default_ user no value no value
      mysqli.max_link s Unlimited Unlimited
      mysqli.reconnec t Off Off

      sockets
      Sockets Support enabled

      standard
      Regex Library Bundled library enabled
      Dynamic Library Support enabled
      Path to sendmail /usr/sbin/sendmail -t -i

      Directive Local Value Master Value
      assert.active 1 1
      assert.bail 0 0
      assert.callback no value no value
      assert.quiet_ev al 0 0
      assert.warning 1 1
      auto_detect_lin e_endings 0 0
      default_socket_ timeout 60 60
      safe_mode_allow ed_env_vars PHP_ PHP_
      safe_mode_prote cted_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
      url_rewriter.ta gs a=href,area=hre f,frame=src,inp ut=src,form=,fi eldset= a=href,area=hre f,frame=src,inp ut=src,form=,fi eldset=
      user_agent no value no value

      [/HTML]

      Comment

      • HotShot
        New Member
        • Jan 2007
        • 3

        #4
        No hostname set, or it's mis-set.

        Advise Administrator that the HOSTNAME is mis-set.

        Comment

        Working...