Please some help... I need a configuration to run multiple servers... I dont want separate webserver, dns, db... On server1 some websites with their databases/mail/dns, on server2 some websites with their databases/mail/dns and so on... Witch is the best config? Tks in advance for help!
I just asked because you posted in the forum for non ispconfig topics. I moved the thread to the ispconfig forum now. Regarding your setup, just install all servers by using the perfect server tutorial. use ispconfig expert mode during install and choose to join the ferst server from server2 and onwards.
Thanks! MySQL server hostname [localhost]: <-- Hit Enter (must me the ip on first server i think...) MySQL server port [3306]: <-- Hit Enter MySQL root username [root]: <-- Hit Enter MySQL root password []: <-- Enter your MySQL root password (from first server?) MySQL database to create [dbispconfig]: <-- Hit Enter (???) MySQL charset [utf8]: <-- Hit Enter and Full qualified hostname (FQDN) of the server, eg server1.domain.tld [server1.domain.tld]: <-- Hit Enter (server2 ???)
So, how to join server2 to server1? Difference from standard to expert install seems to be only on mysql setts. But if join to server1 by mysql I have mysql on server 2 to use databaseses to websites from server2 or server2 websites use mysql db from server1? I want complete separations on servers (websites, mysql, dns, etc). At this moment, for me, its a little bit unclear...
Websites on server2 use databases from server 2. That's what you get when you follow the instructions that I posted in #4.
from test: unknown mysql server host "server1.mydomain.tld", but server1 works well now now after alter mysql whith grant acces and mysql.cnf comment out localhost on server 1 works connection only by ip and dont by server name. work in progress FINALLY I GOT IT!
So, everything works, database communication (replications of settings inserted on server1, clients inserted), dns, ftp, etc... BUT websites on server2,3 not works (websites, email, etc from server1 works well). Im behind a router (Fortigate) and the mechanism its unclear for me. All the ports are forwarded to server1 (master). Server1,2,3 are independent? Or not? If server1 is down what happens? How about the forwarded ports? The setup works behind a router or not? Looks like not propagations of dns from server2...
It that is true, all traffic goes to server1, and thus other servers are useless. If you test from the subnet the servers are in, do the servers 2 and 3 work then? Yes. Unless you did not follow the manual when setting them up. Services on server1 do not work. Services on other servers are not affected.
On all above I requested a setup. Till told me the way. All servers works in lan and are interconnected. But the question: how websites from other servers except server1 (master) will be online (from outside)? At this moment only the server1 are visible from outside...
Now I forwarded the ports to second server and the services of server2 are online. But whats the point? I beneffit only the central panel of the master to control all the servers. How I can make all the servers to be online behind a router/nat not only one by the time of ports redirections?
You could forward: port 80 to port 80 on server1 port 82 to port 80 on server2 port 83 to port 80 on server 3 That way you get to use all three web servers. But users have to use that port number when accessing the websites. I know of no way to forward based on domain name. Maybe your router has some such feature? Because that is what you need, otherwise the router can not know to which server connections are to be forwarded if you do not use the port numbers 80, 82, 83 forwarding system. What you are trying to accomplish may be impossible or become overly convoluted. Usually web servers that are to be accessible from public internet have routable IP addresses. Are the IP addresses you now have on your three servers from RFC1918 private address space? https://en.wikipedia.org/wiki/Private_network If you have routable addesses, configure your router to do the routing so you can use the web servers directly.