Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd February 2007, 13:35
Figth4Linux Figth4Linux is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPconfig after installation cannot reach www.xyz.de:81

Hi to you all!
I've read about a 400 forums here but I cannot solve the problem. I've followed the Perfect Ubuntu Edgy server install and also the installation of ispconfig. All in good condition but I cannot see the domain throught the 81 port..
Here I give the last lines of the configuration of ispconfig and the error messages of the restarting of the isp server. I put the content of /etc/hosts
The output of netstat -tap is ok. How can I modify the MySQL server, host name, domain etc. without re-installing all ispconfig?

Last lines of configuration:

Please enter your MySQL server:server1.example.com
OK
Please enter your MySQL user:root
Please enter your MySQL password:
ERROR 2003 (HY000): Can't connect to MySQL server on 'server1.example.com' (111)
The provided MySQL password is wrong!
Please enter your MySQL server:localhost
OK
Please enter your MySQL user:root
Please enter your MySQL password:
OK
Please enter a name for the ISPConfig database (e.g. db_ispconfig):ispconfigdb
Please enter the IP address of the ISPConfig web (e.g. 192.168.0.1):192.168.100.1
OK
Please enter the host name (e.g. www):www
Please enter the domain (e.g. xyz.de):xyz.it
The URL is not reachable!
Please enter the host name (e.g. www):www
Please enter the domain (e.g. xyz.de):xyz.de
OK
Please select the protocol (http or https (SSL encryption)) to use to access the ISPConfig system:
1) HTTPS
2) HTTP
Your Choice: 2

chown: cannot access `/home/admispconfig/ispconfig/backup': No such file or directory
chmod: cannot access `/home/admispconfig/ispconfig/backup': No such file or directory
chmod: cannot access `/home/admispconfig/ispconfig/tools/tcpserver/ispconfig_tcpserver': No such file or directory
chown: cannot access `/home/admispconfig/ispconfig/tools/tcpserver/ispconfig_tcpserver': No such file or directory
Connected successfully to MySQL server
no crontab for root
Restarting some services...
* Stopping Postfix Mail Transport Agent postfix [ ok ]
* Starting Postfix Mail Transport Agent postfix [ ok ]
* Stopping ftp server proftpd [ ok ]
* Starting ftp server proftpd - IPv6 getaddrinfo 'server1.example.com' error: Name or service not known
[ ok ]
Starting ISPConfig system...
/root/ispconfig/httpd/bin/apachectl startssl: httpd started
ISPConfig system is now up and running!
Congratulations! Your ISPConfig system is now installed. If you had to install quota, please take the steps described in the installation manual. Otherwise your system is now available without reboot.
Please direct your browser to

http://www.xyz.de:81

and log in:
Username: admin
Password: admin

root@server1:/home/mariou/install_ispconfig#

restarting ispconfig_server:

root@server1:/home/mariou/install_ispconfig# /etc/init.d/ispconfig_server restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down ISPConfig system...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/root/ispconfig/httpd/bin/apachectl stop: httpd stopped
ISPConfig system stopped!
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Starting ISPConfig system...
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/root/ispconfig/httpd/bin/apachectl startssl: httpd started
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
ISPConfig system is now up and running!
root@server1:/home/mariou/install_ispconfig#

content of /etc/hosts:

root@server1:/home/mariou/install_ispconfig# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.1 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@server1:/home/mariou/install_ispconfig#


Thank-u in advance!!
Reply With Quote
Sponsored Links
  #2  
Old 2nd February 2007, 13:54
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

To avoid the errors during restart, 1st change to your home directory. E.g.
Code:
cd ~
The install script deletes the installation directory after finishing, thus the errors.
Next, what's the output of
Code:
netstat -tap
after restarting ISPConfig again?
Reply With Quote
  #3  
Old 2nd February 2007, 14:14
Figth4Linux Figth4Linux is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for your soon answer. You're right, as I'm in my home the reastarting of ispconfig_server is without errors. However I'm still unable to connect http://www.xyz.de:81/
Here is my netstat -tap output.

root@server1:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdom:2208 *:* LISTEN 4144/hpiod
tcp 0 0 *:mysql *:* LISTEN 8068/mysqld
tcp 0 0 localhost.localdo:41488 *:* LISTEN 4147/python
tcp 0 0 *:81 *:* LISTEN 14596/ispconfig_htt
tcp 0 0 host235-51-dynam:domain *:* LISTEN 14857/named
tcp 0 0 localhost.locald:domain *:* LISTEN 14857/named
tcp 0 0 *:4662 *:* LISTEN 15310/amule
tcp 0 0 localhost.localdoma:ipp *:* LISTEN 30334/cupsd
tcp 0 0 localhost.localdoma:953 *:* LISTEN 14857/named
tcp 0 0 *:smtp *:* LISTEN 14803/master
tcp 0 27284 host235-51-dynamic:4662 201-1-14-42.dsl.t:60128 ESTABLISHED15310/amule
tcp 0 0 localhost.localdo:48002 localhost.localdoma:953 TIME_WAIT -
tcp 0 0 host235-51-dynamic:4662 183.Red-83-53-250.:4792 ESTABLISHED15310/amule
tcp 0 15840 host235-51-dynami:49172 177.red-62-57-230.:5476 ESTABLISHED15310/amule
tcp 0 0 host235-51-dynami:45287 62.241.53.16:4242 ESTABLISHED15310/amule
tcp 0 8568 host235-51-dynami:57566 ppp3-229.pppoe.mtu:4662 ESTABLISHED15310/amule
tcp 0 17424 host235-51-dynami:49796 86.203.34.254:4662 ESTABLISHED15310/amule
tcp 0 0 host235-51-dynamic:4662 host148-147-dynami:1271 TIME_WAIT -
tcp 0 10080 host235-51-dynami:47578 81.203.32.244:4662 ESTABLISHED15310/amule
tcp 0 11520 host235-51-dynami:35036 84-123-4-81.user.o:4662 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:35295 couerdalene-cuda2-:4662 SYN_SENT -
tcp 0 0 host235-51-dynamic:4662 253.Red-88-6-250.s:3562 ESTABLISHED-
tcp 0 1 host235-51-dynami:57731 49.143.57.82:38909 SYN_SENT -
tcp 0 17424 host235-51-dynami:49796 86.203.34.254:4662 ESTABLISHED15310/amule
tcp 0 0 host235-51-dynamic:4662 host148-147-dynami:1271 TIME_WAIT -
tcp 0 1 host235-51-dynami:40305 36.91.55.82:4661 SYN_SENT -
tcp 0 39 host235-51-dynami:42798 adsl-153-185.37-15:4662 ESTABLISHED-
tcp 0 11520 host235-51-dynami:35036 84-123-4-81.user.o:4662 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:49827 151.42.210.58.broa:4662 SYN_SENT -
tcp 0 0 host235-51-dynamic:4662 a96-235.adsl.palte:2564 TIME_WAIT -
tcp 0 21210 host235-51-dynamic:4662 pD95F5263.dip.t-di:2552 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:57277 210.161.51.82:7070 SYN_SENT -
tcp 1 0 host235-51-dynami:36170 server1.howtoforge.:www CLOSE_WAIT -
tcp 0 19572 host235-51-dynami:58968 87.203.117.61:62697 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:51306 38.253.221.84:4662 SYN_SENT -
tcp 0 17280 host235-51-dynami:40909 host133-69-dynamic:2541 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:44447 32.178.52.82:54216 SYN_SENT -
tcp 0 1 host235-51-dynami:46455 simi_valley_ca_bs:11755 SYN_SENT -
tcp 0 15752 host235-51-dynamic:4662 ppp-139-122.33-151:1634 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:48028 60.171.223.84:4662 SYN_SENT -
tcp 0 0 host235-51-dynami:52541 a195.22.198-24.depl:www ESTABLISHED7145/firefox-bin
tcp 0 1 host235-51-dynami:33764 50.107.222.84:4662 SYN_SENT -
tcp 0 18876 host235-51-dynamic:4662 xs-217-221-21-97.:57321 ESTABLISHED15310/amule
tcp 0 1 host235-51-dynami:44733 217.72.221.84:4662 SYN_SENT -
tcp 0 0 host235-51-dynamic:4662 host250-92-dynamic:2022 TIME_WAIT -
tcp 0 0 host235-51-dynamic:4662 ppp-82-84-222-137.:1119 ESTABLISHED-
tcp 0 11424 host235-51-dynami:41303 host139-135-dynam:18377 ESTABLISHED15310/amule
tcp6 0 0 *:imaps *:* LISTEN 4513/couriertcpd
tcp6 0 0 *op3s *:* LISTEN 4552/couriertcpd
tcp6 0 0 *op3 *:* LISTEN 4528/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 4491/couriertcpd
tcp6 0 0 *:www *:* LISTEN 14697/apache2
tcp6 0 0 *:ftp *:* LISTEN 14894/proftpd: (acc
tcp6 0 0 *:ssh *:* LISTEN 4842/sshd
tcp6 0 0 ip6-localhost:953 *:* LISTEN 14857/named
tcp6 0 0 *:smtp *:* LISTEN 14803/master
tcp6 0 0 *:https *:* LISTEN 14697/apache2
root@server1:~#
Reply With Quote
  #4  
Old 2nd February 2007, 14:39
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Next time, please use the # image to embed your output in CODE tags. makes it much more readable.
Means you want to access your panel from the outside?

Quote:
content of /etc/hosts:

root@server1:/home/mariou/install_ispconfig# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.1 server1.example.com server1
Means you have your server behind an ADSL router, right?

So you need to make sure www.xyz.de forwards/points to your external IP address used for your ADSL connection.
Next you need to forward port 81 on your router to the server you have with ISPConfig.
Reply With Quote
  #5  
Old 2nd February 2007, 15:11
Figth4Linux Figth4Linux is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
So you need to make sure www.xyz.de forwards/points to your external IP address used for your ADSL connection.
Next you need to forward port 81 on your router to the server you have with ISPConfig.
Reply With Quote
I'm very sorry but I'm not so able to manage this staff now (it's also for my english..).
Forwards/points to your external IP address means the address of the router?
I can forwarding port 81 by use of iptables FORWARD?
Server of ISPconfig is the localhost or server1.example.com?
Reply With Quote
  #6  
Old 2nd February 2007, 22:21
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Quote:
Originally Posted by Figth4Linux
Forwards/points to your external IP address means the address of the router?
yes, the external IP address of your ADSL router.
Quote:
I can forwarding port 81 by use of iptables FORWARD?
no, you should forward port 81 on your ADSL router.
Quote:
Server of ISPconfig is the localhost or server1.example.com?
ISPConfig is installed on 192.168.100.1? And yes, as long as you are on the same server as your hosts file is on as specified below, you can use the server name server1.example.com. But be aware example.com is a valid domain on the internet, so you can get confused. If ISPConfig is installed on the server with IP address 192.168.100.1, you can also reach ISPConfig with the url
Code:
http://192.168.100.1:81
That is if you didn't configure ISPConfig to use https. then replace http with https.
Reply With Quote
  #7  
Old 8th February 2007, 09:52
Figth4Linux Figth4Linux is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
no, you should forward port 81 on your ADSL router.
In all this days I tried to do it ... but I can't. iptables or ipchain isn't correct?

Code:
you can also reach ISPConfig with the url : http://192.168.100.1:81
I still cannot reach this URL . . .
. . . and I still think there's something wrong in my settings of ISPconfig.

Thank-you all in advance for help.
Reply With Quote
  #8  
Old 8th February 2007, 10:11
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

What's the output of
Code:
ifconfig
?
Reply With Quote
  #9  
Old 8th February 2007, 10:14
Figth4Linux Figth4Linux is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
root@server1:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:13:49:25:A4:14  
          inet6 addr: fe80::213:49ff:fe25:a414/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2092 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:977348 (954.4 KiB)  TX bytes:581130 (567.5 KiB)
          Interrupt:217 Base address:0x4000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3520 (3.4 KiB)  TX bytes:3520 (3.4 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:82.56.172.204  P-t-P:192.168.100.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:1870 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1963 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:922525 (900.9 KiB)  TX bytes:529436 (517.0 KiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

root@server1:~#
that's it..
Reply With Quote
  #10  
Old 8th February 2007, 10:23
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
 
Default

You have your server configured for IPv6 only. 192.168.x.x is an IPv4 address. Without some help, the system cannot match the two. As I don't use IPv6, I'm unsure how to give you some advise to get this fixed.

Checking ISPConfig though can probably be done by using the IPv6 address: fe80::213:49ff:fe25:a414:81 but this is totally untested. You probably need some help from another person at this forum to get things moving....
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
ISPConfig after installation CoDonCo Installation/Configuration 46 14th July 2010 16:54
New ISPConfig installation 4integration General 3 29th December 2006 11:53
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Installing ISPConfig ssl installation certificate to a site? lyndros Installation/Configuration 6 20th March 2006 03:54


All times are GMT +2. The time now is 13:57.


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