Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP and DNS question
#1
Alright, I have u-verse, so when I did a port forward, server1 and server2 happened to be the same PUBLIC IP. U-verse has a weird port forwarding thing, where you choose which device you want to be your webserver, DNS, etc. If I want to make server 1 my DNS server, how would I do that?

Restored from old drupal forum, for user uid:2687 username:ehcpuser
You may reset your password to access your new account here.
Reply
#2
do you want to:
have two separet server,
use server 1 as dns,
use other as web, and other things..

?

Restored from old drupal forum, for user uid:2687 username:ehcpuser
You may reset your password to access your new account here.
Reply
#3
I know I can use the domain providers DNS, no need for that. Now, I want to use 2 servers to host 1 website. How would I manage that?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
the duties of servers are important in this case,
and the configuration heavily depends on the duty of servers you think to give them.

possible scenarios:
Scenario 1:
server 1: dns
server 2: webserver, mysql, etc

Scenario 2:
server 1: dns,mysql
server 2: webserver, ftp, etc

Scenario 3:
server 1: dns, webserver, mysql, etc
server 2: dns, webserver, mysql, etc
(both has same duties, with clustered or failover capability)

Scenario 4:
server 1: mysql
server 2: dns, webserver, ftp, etc



The number of scenarios may be increased, with different combinations of duties of dns, apache, mysql, ftp etc..
These are not automatically managed by ehcp, ehcp is designed for now, to only manage one server (except mysql).
ehcp can handle a separate server for mysql, but no other scenarios can be handled by ehcp directly, we need to make some extra configuration or manual things to realize them...

So, which scenario do you think to install ?







Restored from old drupal forum, for user uid:2687 username:ehcpuser
You may reset your password to access your new account here.
Reply
#5
Say i set server 1 as the MySQL, webserver, and server 2 as the rest. How do i get them to work together?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#6
I want to tell step by step, since this is some complex thing,

first, a separate mysql server: (this is mostly from ehcp gui)
normally, a separate mysql server is done like this:
scenario:
server1: mysql
server2: other hosting functions, webserver, dns, etc..

to achive this:
* install ehcp on both server
* on server 2, login to ehcp gui, options, advanced settings/options, check multiserver, submit, then,
* click add server
* you will see a page with server properties.. (only mysql ser can be configured with this interface), attached image is this,
* in input fileds enter:
-> serverip: the ip of mysql server, internal or external ip.. this ip should be reachable by this server.
-> servertype: choose mysql server,
-> server option: click whichever you want, i suggest "always" for start, otherwise, each time user tries to add a db, a selection of mysql server will be presented,
-> if optional: if above option is not "always", this means is this server is default mysql server, to be presented to user,
-> mysql pass: enter mysql root pass
-> default mysql user hostname: you should write ip of webserver here, in this scenario, ip of server2, in next scenario, ip of server 1 which will contain webserver, read explanation right to it to understand..
(This is host of mysql user, to connect from,
You should write hostname/ip of your webserver here.. Otherwise, webserver cannot connect to your mysql server.)

* click submit. this way, you identified your mysql server at server1 to ehcp on server 2. From now on, you should use ehcp on server2.
* (XX) go to server 1 (on which mysql server resides) go to phpmyadmin, click on privileges, click on edit on right of root user, goto "Change Login Information / Copy User", write ip of server 2 to host input, keep the old one, then click go; this way, you let server2 to connect to mysql on server 1. this way, server 2 will be able to manage server1's mysql. understand ?


(In future, i think to simplify these things more and more, just like scenarios I wrote on above posts)

--------
<hr>
Up to now, I only told about separate mysql server. now, we are going to add webserver capabilities to server 1:
I want to note that, adding a separate webserver or ftp is not directly supported, or easily done in ehcp, So, we will do many manual tasks..
if we add webserver to server1, we also need to give it ftp duty. Because files should be put on there for webserver.

first ftp: (on server 1)
open file: /etc/pam.d/vsftpd
edit part: host=localhost, replace localhost to ip of server2, with same user/pass as server2 (you should use all same passes in both ehcp installs in both servers, to simplify things)
restart vsftpd: /etc/init.d/vsftpd restart

for webserver:
what we need: ehcp handles all apache configuration files. So, to let apache function by information on server 2, we need to modify ehcp's config on server1 to read its database from server2, not itself.
so,
on server1: go to /var/www/vhosts/ehcp
edit config.php
$dbhost=ip of server2;
other parts same, if you use same pass in server2

now, go to phpmyadmin in server 2, do same as (XX) above, to let server1 to connect to server2 through mysql. (so, both servers see each other through mysql)
restart ehcp on server1: /etc/init.d/ehcp restart

this way:
ftp in server1 will read users from server 2,
webserver in server1 will read domains from server 2 and setup dirs and configs related to that,

server 2's ehcp gui will be used to manage things.
server 2 will do dns, postfix, etc.. as usual...


I know that this is quite complex, but unfortunately, there is no more easy way yet, as far as I know... Maybe somebody else may find some more easy way..

In future, i think to make things like scnearios, give a server a functionality, build server plans, and make them work out of box... I hop i will do it as I have time..

see you,



image at: http://www.ehcp.net/sites/default/files/ehcp_multiserver.png

Restored from old drupal forum, for user uid:2687 username:ehcpuser
You may reset your password to access your new account here.
Reply
#7
Alright a couple of questions
To access get to those files, I use ubuntu server and do i just plainly type
/var/www/vhosts/ehcp
Because i think I've tried that before and it didn't work.
Also, I don't want to setup a DNS because that will have to use my router's DNS. Wouldn't it? or how would i setup a nameserver?
If it requires my routers IP, I would use the domain registrar's DNS to point it at what server? server1 or server2. Or do i point it to whichever has the DNS setup on it?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#8
you dont need to do anything extra to install nameserver, with ehcp.
Ehcp automatically installs bind9 dns nameserver, and configures it.
You need to point your registrar's dns (for your domain) to your nameserver, in this case, server 2,

that is:
just point your registrar to your server 2 , (after you install ehcp on it) you are done..

Those are correct if both your servers has public/real/static ip address.
If your servers are behind your router, in an internal network, for example,
your router has external/real/static ip address of 85.99.xx.yy,
your server1 has internal ip of 192.168.1.101
your server2 has internal ip of 192.168.1.102
Then, you should redirect your dns in registrar for your domain to your external single ip, and,
you need port redirection in your modem/router for port 53 to ip of server2,
for other services on server 1, setup port redirection in router to your server 1,
you should also do same for any services in server 2, such as mail, etc..
(mail ports: 25,110,143 dns:53, web:80, ftp:20,21, ssh:22)







Restored from old drupal forum, for user uid:2687 username:ehcpuser
You may reset your password to access your new account here.
Reply
#9
Alright! When i get back home I'll see if all works. And, can i combine the users on server 2 with server 1? or does that already happen when i add the servers together?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#10
servers will have different duties, different roles,
so, they will have different types of users,
you cannot sum different types of users.

Restored from old drupal forum, for user uid:2687 username:ehcpuser
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping