Changing Virtual Server name and directory problem

Hi,

After buying a more appropriate domain name, I wanted to change the domain name
on the virtual server and also the directory.

The old domain name is: reviewsworthreading.com

The new domain name is: mobilewebsitecentral.com

I have a wordpress multisite running on the virtual server.

I went into VitualMin ->Change Domain Name

I changed the domain name OK
But when I try to change the directory name I always get:

Failed to change domain name : Parent of new home directory does not exist

First I entered just the new directory name.
“mobcentral”

Then I went in and created the directory mobcentral under “home” and tried again.

then I tried “/home/mobcentral”

Each time I get the same response:

Failed to change domain name : Parent of new home directory does not exist

What do I need to do ?

The OTHER problem I have is: if I type into my browser address bar
mobilewebsitecentral.com

I get this:
http://reviewsworthreading.com/wp-signup.php?new=mobilewebsitecentral.com

Will this problem resolve after a few hours ?

Hey .

Can anyone help me with this ?

I changed the nameservers on the old domain so that they don’t even point to the server which hosts the new domain and website.

I have checked the Apache configuration file and I see this

SuexecUserGroup "#545" "#509" ServerName mobilewebsitecentral.com ServerAlias *.mobilewebsitecentral.com DocumentRoot /home/revworth/public_html ErrorLog /home/revworth/logs/error_log CustomLog /home/revworth/logs/access_log combined ScriptAlias /cgi-bin/ /home/revworth/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Options Indexes IncludesNOEXEC FollowSymLinks +ExecCGI allow from all AllowOverride All AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/revworth/fcgi-bin/php5.fcgi .php FCGIWrapper /home/revworth/fcgi-bin/php5.fcgi .php5 allow from all RemoveHandler .php RemoveHandler .php5 IPCCommTimeout 31 FcgidMaxRequestLen 1073741824 PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl PerlOutputFilterHandler Virtualmin::GoogleAnalytics php_value memory_limit 32M

When I go to try and change the directory and user name I get
this error:

Failed to change domain name : Parent of new home directory does not exist

Shall I just go and edit the configuration file manually and then change the names of the directory, or will that mess everything up ?

The error message sounds like it’s referring to the local file system and not to Apache configuration.

What does your Virtualmin configuration read in section “Defaults for new domains”, entry “Home directory base”? Virtualmin will try to put whatever you use as domain home directory under there, quite probably also when you begin the name with a /.

And no, you should NOT manually edit any configuration files. If VM shows an error, there is something wrong. If you manually edit stuff (without knowing very well what you’re doing), you ARE gonna break stuff. :wink:

Your second problem is possibly caused by Wordpress’ configuration, which still contains references to the old domain name and thus forwards the browser there.

Hi,

Thanks for your comments.

Here is a snap shot of the VM configuration for new domains:

http://www.sd5.info/images/VM01.jpg

Your second problem is possibly caused by Wordpress' configuration,

Quite likely true, but at present I can not access the admin panel because nether the new url
( http://mobilewebsitecentral.net/)
nor the old one
( http://reviewsworthreading.com/)

will take me to the wp installation !!!

Maybe I should just uninstall it and start again ?

Is there any other option ?

Try unchecking “from users+groups module” and entering “/home” into the edit box. That’s how I have it set up.

Also, as long as the host name doesn’t work, there’s always the “Preview Website” function in Virtualmin, which might help.

Hi,

I change to “/home” as suggested.

The system then gave a yellow warning say I should
run a conguration check. So I did.

It said that there was no MYSQL password for root,
so I added one.

I tried again to access “www.mobilewebsitecentral.com
but I got same message:
in browser: http://reviewsworthreading.com/wp-signup.php?new=www.mobilewebsitecentral.com

In the wp admin there is a domain mapping for sub-domains and, as you say, this must still have the old domain name on it. If I can get to that and change it, everything should work fine.

Tried the “Preveiw website” link. This came in the browser:

https://65.23.129.163:10000/virtual-server/link.cgi/65.23.129.163/http://www.mobilewebsitecentral.com/

… and a blank screen :frowning:

I will put the problem in on a support ticket, maybe the validation and configuration reports that are generated will help solve the issue.

The annoying thing is - all the info is sitting in the directories, I just can not access it :frowning:

Did you try the domain rename again, after putting “/home” in? Did you get an error again or did it work this time?

Hi,

Tried again.

tried again to access “www.mobilewebsitecentral.com” but I got same message: in browser: http://reviewsworthreading.com/wp-signup.php?new=www.mobilewebsitecentra

Tried the “Preveiw website” link. This came in the browser:

https://65.23.129.163:10000/virtual-server/link.cgi/65.23.129.163/http:/
… and a blank screen :frowning:

I have put the problem on a support ticket, maybe the validation and configuration reports that are generated will help solve the issue.

Thanks.