Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd December 2011, 12:08
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Default ISPConfig: php -q update.php Unable to resolve hostname

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?
Reply With Quote
Sponsored Links
  #2  
Old 22nd December 2011, 12:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

The most interesting part is this:

Quote:
PHP Notice: Undefined variable: conf
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd December 2011, 12:14
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Default

The file /usr/local/ispconfig/server/lib/config.inc.php is empty....
Reply With Quote
  #4  
Old 22nd December 2011, 12:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 22nd December 2011, 12:29
guimnk guimnk is offline
Member
 
Join Date: Jul 2009
Posts: 90
Thanks: 7
Thanked 2 Times in 2 Posts
Default

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
Reply With Quote
  #6  
Old 22nd December 2011, 12:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 Debian Squeeze Crontab - Log petrichbg Installation/Configuration 5 22nd March 2011 12:25
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 12:47
PHP code for PHPMyAdmin is not parsed parkerj Installation/Configuration 3 26th May 2009 13:40
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20


All times are GMT +2. The time now is 23:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.