Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: larieu on August 02, 2009, 04:07:18 PM

Title: [solved] change the primary domain fail
Post by: larieu on August 02, 2009, 04:07:18 PM
I have 2 domains
for a reason which I'll don't discuss here I want to change the first domain firstfqdn.com to the new one which is like scnd-fqdn.com to one of the servers (sme 7 - ast update)

I loged into server ssh as admin. and I changed the config
old one
domain firstfqdn.com
name mail
IP - static 192.168.x.253 (behind an NAT router)
mask - 255.255.255.0
server only
gw 192.168.x.254
corporate dns 192.168.x.254


with the new one
domain second-fqdn.com
name mail
IP - static 192.168.x.253 (behind an NAT router)
mask - 255.255.255.0
server only
gw 192.168.x.254
corporate dns 192.168.x.254

and rebooted like the wizard asked

as you can see only FQDN was changed
after this I am not able to connect to any web page of the server (including https://server/server-manager or http) I've trid by IP, old-name,new-name... (while my DNS is not on this server I can change DNS names elwehere)
if I start again the wizzard with the old data after reboot it start again to work(firstfqdn.com)

can anyone figure why?
I deleted also all virtual domains
the new domain contain a dash "-" but I suppose this will not be a problem
in the past I used the contrib to change the default server certificate  - may be this is the problem but I want to be shure to don't mess up things if is not real the problem

any help it will be great
Title: Re: change the primary domain fail
Post by: mmccarn on August 02, 2009, 04:26:28 PM
Look at /var/log/httpd/error_log and /var/log/httpd/admin_error_log - one or the other should tell you why the web server won't start.

My first guess is that you still have the secondary domain defined as a secondary domain - resulting in multiple conflicting definitions for the same domain in /etc/httpd/conf/httpd.conf
Title: Re: change the primary domain fail
Post by: Stefano on August 02, 2009, 04:28:44 PM
Quote
can anyone figure why?

not me, but I suggest you to open a bug in bugzilla asap; please remember to post here the link for future reference, thank you

Stefano
Title: Re: change the primary domain fail
Post by: larieu on August 02, 2009, 08:52:09 PM
thanks mmccarn

from your post I was leaded to my mistake
I forgot about my custom certificate (/etc/e-smith/templates-custom/home/e-smith/ssl.crt)
which had the old FQDN

of course this generate errors and the httpd start but with errors
Stefano - I don't think this is a bug which must be repported
is an user mistake

maybe as a "wishing feature"  - when change domain from console wizard (aka login as admin in ssh or console) to ask about old "custom templates"