HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Install question/issue (http://www.howtoforge.com/forums/showthread.php?t=1995)

wr19026 11th January 2006 11:22

Install question/issue
 
Hi,

After several (some relatively successful, some unsuccessful) tries I'm not ready to give up on ISPConfig yet :)

What keeps confusing me is the question in the install process where it asks for the IP address: should I use my internal IP addy (e.g. 10.x.x.x) or the external one (e.g. 84.x.x.x)

84.x.x.x points to my router and I have NAPT doing the internal forward to 10.x.x.x

Last time I tried to set it up I entered the external one. This gave me the error message that it couldn't find the server and that the install process would stop there.

Then it gets interesting: if I do a reinstall starting from the tar command (pretty vanilla reinstall I'd think), the process starts without any errors or warnings that something might not be right. However, pretty much to the end of the install I'm getting errors/warnings:

Warning: main(config.inc.php): failed to open stream: No such file or directory in /tmp/install_ispconfig/install.php on line 639

Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='.:/root/ispconfig/php/lib/php') in /tmp/install_ispconfig/install.php on line 639

Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: NO) in /tmp/install_ispconfig/install.php on line 649
Could not connect to db
Restarting some services...
* Stopping Postfix Mail Transport Agent... [ ok ]
* Starting Postfix Mail Transport Agent... [ ok ]
Restarting ProFTPD ftp daemon.proftpd.
..proftpd.
done.
./setup2: line 974: /etc/init.d/ispconfig_server: No such file or directory
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.

The official uninstall is not available:
root@blablabla:~/ispconfig# ls
dist.inc.php httpd openssl php

So, here are my two main questions:
- What IP address do I need to enter in the install script: the internal one or the external one?
- If the install fails/aborts, what can I do to remove all that's there and start from scratch without having to completely reinstall the server (using the excellent guide for an Ubuntu server) first?

Thanks in advance for your help.

falko 11th January 2006 12:32

Quote:

Originally Posted by wr19026
- What IP address do I need to enter in the install script: the internal one or the external one?

Always the one you see for your network interface when you run
Code:

ifconfig
, i.e. your internal one.

Quote:

Originally Posted by wr19026
- If the install fails/aborts, what can I do to remove all that's there and start from scratch without having to completely reinstall the server (using the excellent guide for an Ubuntu server) first?

Run
Code:

rm -fr /root/ispconfig
rm -rf /home/admispconfig

and also delete the ISPConfig MySQL database.

till 11th January 2006 12:34

Quote:

Originally Posted by wr19026
After several (some relatively successful, some unsuccessful) tries I'm not ready to give up on ISPConfig yet :)

Good to hear that :)


Quote:

- What IP address do I need to enter in the install script: the internal one or the external one?
This must be the internal IP address (10.x.x.x).

Quote:

- If the install fails/aborts, what can I do to remove all that's there and start from scratch without having to completely reinstall the server (using the excellent guide for an Ubuntu server) first?
rm -rf /root/ispconfig
rm -rf /home/admispconfig

Then delete the install_ispconfig directory and the mySQL database, then unpack the installer tar.gz file again.

wr19026 11th January 2006 14:30

Quote:

Originally Posted by till
rm -rf /root/ispconfig
rm -rf /home/admispconfig

Then delete the install_ispconfig directory and the mySQL database, then unpack the installer tar.gz file again.

So here's a real noob question; how do I delete the MySQL database? I tried installing phpmyadmin to help me do that but that gave errors (removing phpmyadmin did as well btw) because from my experience with XAMPP I know how to use that. But it was "close, but no cigar" in this install.

By the way, the support from Falco and yourself is SUPERB!

till 11th January 2006 14:47

Have a look in the folder:

/var/lib/mysql

If there is a folder in that directory with the name of your database, delete this folder. If your database is named e.g. db_ispconfig:

rm -rf /var/lib/mysql/db_ispconfig

falko 11th January 2006 15:24

Quote:

Originally Posted by wr19026
So here's a real noob question; how do I delete the MySQL database?

It's described here: http://www.howtoforge.com/forums/sho...33&postcount=4

wr19026 12th January 2006 00:50

I have installed ISPConfig for what must be the 15th time and so far so good. I have a system that's up and running, I can connect and change settings etc. and I can see the first website's homepage! At first glance however e-mail will be my next problem :)

Here's a follow up question for you:
When connecting from a machine from the same network as the server (10.x.x.1 for the server and 10.x.x.2 for a client) it won't connect me when I use https://servername.mydomainname.com:81. https://10.x.x.1:81 does allow me to connect. When I'm connected it does not allow me to access certain pages in the Management tab: specifically System Configuration and Server.

All the other tabs seem to work fine.

Now when I log in from an outside network I can log in and do everything without any issues at all. So it does work, but not quite as I had expected.

Again, I'm using the Perfect Server Setup for Ubuntu (Breezy) as my baseline and I have not tinkered with iptables or any other type of firewall on my server. NAPT on the router has everything pointing to the server's IP address.

falko 12th January 2006 01:10

Your problem is related to this one: http://www.howtoforge.com/forums/showthread.php?t=534

I guess you have https://servername.mydomainname.com:81 in /home/admispconfig/ispconfig/lib/config.inc.php. The problem seems to be that your router doesn't support looping back, i.e. you're in your network and try to access a machine in your network with an "outside" address which your router has to map back into your local network...

wr19026 12th January 2006 09:44

And again this was of great help :) In the mean time I also discovered what to fix in order to send mail (darn nameservers ;) ) so now I'll search a bit more to find how to actually be able to receive mail as well.


All times are GMT +2. The time now is 11:48.

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