![]() |
change default domain - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Migration (/forum-35.html) +--- Thread: change default domain (/thread-10050.html) Pages: 1 2 |
change default domain - sakal - 03-17-2010 11:15 PM Hello all, I just need to ask what i need to do if i want change hostname on my server. I use ISPcp 1 month on my server on : old_domain.com and after testing and now there is some running clients, so i need to change server name on : new_domain.com What i have to do to change it? I try just change server hostname and also change hostname in ispcp.conf But when i do : perl ispcp-update In config files i have back my : old_domain.com Any help ??? Thanks I did : /etc/hostname <-- hostname /etc/hosts <-- IP table + hostnames then # cp /etc/hostname /etc/mailname Now you must open /etc/ispcp/ispcp.conf. There you must change the server_name and base_server_vhost. Now, you can open phpmyadmin and log in as root. Open the table server_ips. Change here the server name. Then open /etc/postfix/main.cf Change here myhostname and mydomain. Now restart postfix and hostname.sh. But thats not ALL , i dont realy know what else i have to do. Please help. RE: change default domain - joximu - 03-18-2010 09:48 PM and do a "grep -r old_domain.com /etc" maybe you find some places to change the domain and or hostname... /J RE: change default domain - sakal - 03-18-2010 10:01 PM So there is no solution to change everything in one command or in some steps , i just have to search a replace all dates manually ? RE: change default domain - joximu - 03-19-2010 03:23 AM yep... some of the initial files are only written during the first setup. Check the 00_master.conf in the apache configs - then try again. /J RE: change default domain - kilburn - 03-19-2010 06:21 AM The ispcp-update script uses /etc/ispcp/ispcp.old.conf as base configuration file. Make sure that you copy your /etc/ispcp.conf file over the former one so that your changes are not reverted during the update process. RE: change default domain - sakal - 03-20-2010 05:17 AM Thanks for HELP to @ALL Got one more question. When i install ispcp i use for domain : cp.mydomain.com now i want on : http://www.mydomain.com start my own page. so i make new user : mydomain.com and make index.html in virtual/mydomain/htdocs/ But always when i call http://www.mydomain.com i see control pannel , but i want see this pannel just in ttp://cp.mydomain.com not in : http://*.mydomain.com Can some guru help my how to fix this issue ? Thanks for HELP RE: change default domain - kilburn - 03-20-2010 08:27 AM It should work as you want by default. Please post the output of "apache2ctl -S" so that we can see how are your virtualhosts defined... RE: change default domain - Nuxwin - 03-20-2010 02:48 PM Hello ; I confirm. I've tested on my server and it works like a charm Best Regards ; RE: change default domain - sakal - 03-20-2010 07:19 PM @kilburn VirtualHost configuration: 85.248.229.105:80 is a NameVirtualHost default server cp.domain.com (/etc/apache2/sites-enabled/00_master.conf:31) port 80 namevhost cp.domain.com (/etc/apache2/sites-enabled/00_master.conf:31) port 80 namevhost webmail.cp.domain.com (/etc/apache2/sites-enabled/06-roundcube:1) port 80 namevhost nagios.cp.domain.com (/etc/apache2/sites-enabled/nagios3.conf:5) 127.0.0.1:80 is a NameVirtualHost default server localhost.localdomain (/etc/apache2/sites-enabled/01_awstats.conf:36) port 80 namevhost localhost.localdomain (/etc/apache2/sites-enabled/01_awstats.conf:36) Syntax OK Thx RE: change default domain - kilburn - 03-21-2010 08:08 PM Quote:VirtualHost configuration: As you can see, there is *no* VirtualHost being configured by /etc/apache2/sites-enabled/ispcp.conf, where the panel sets up user virtualhosts. Therefore, you are either missing the link "/etc/apache2/sites-enabled/ispcp.conf -> /etc/apache2/sites-available/ispcp.conf" or your panel has *not* setup your client domains. Are you sure that the domain status in the panel is "OK"? |