ISPConfig: php -q update.php Unable to resolve hostname

Discussion in 'General' started by guimnk, Dec 22, 2011.

  1. guimnk

    guimnk Member

    Hi..

    I'm trying to run php -q update.php and return errors:

    Code:
    root@turbo:/tmp/ispconfig3_install/install# php -q update.php
    
    
    --------------------------------------------------------------------------------
     _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
     _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
     \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/
    --------------------------------------------------------------------------------
    
    
    >> Update
    
    Operating System: Debian 6.0 (Squeeze/Sid) or compatible
    
    PHP Notice:  Undefined variable: conf in /tmp/ispconfig3_install/install/update.php on line 76
    Unable to resolve hostnameroot@turbo:/tmp/ispconfig3_install/install# vi /etc/hostname
    root@turbo:/tmp/ispconfig3_install/install# hostname
    turbo.macromind.com.br
    root@turbo:/tmp/ispconfig3_install/install# hostname -f
    turbo.macromind.com.br
    root@turbo:/tmp/ispconfig3_install/install# cat /etc/hosts
    127.0.0.1       localhost
    187.120.216.2   turbo.macromind.com.br  turbo
    
    How can I do to fix it?
     
  2. till

    till Super Moderator

    The most interesting part is this:

    which indicates that either the file /usr/local/ispconfig/server/lib/config.inc.php on that server is missing or does not contain valid content.
     
  3. guimnk

    guimnk Member

    The file /usr/local/ispconfig/server/lib/config.inc.php is empty....
     
  4. till

    till Super Moderator

    Then the update can not work as the updater does not know what and how to update your server. If you have a backup you should restore it from there.
     
  5. guimnk

    guimnk Member

    Yes. I've restored the config file. But, I need to update the password of ispconfig user. How can I do?

    When I run update.php:

    Code:
    MySQL Connection problem
    Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -H -O clf:/var/log/pure-ftpd/transfer.log -A -u 1000 -b -D -8 UTF-8 -Y 1 -E -B
    Update finished.
    root@turbo:/tmp/ispconfig3_install/install
    
     
  6. till

    till Super Moderator

    You find the ispconfig mysql password also in the mysql* files in /etc/postfix/ and make sure that the mysql root password in /usr/local/ispconfig/server/lib/mysql_clientdb.conf is correct.
     

Share This Page