• Resolved daboo

    (@daboo)


    So I’m on a virtual server with a shared IP address. I’ve just set up Domain Mapping on my site, and got my webhost to add a wildcard subdomain/virtual host record to my site’s DNS record. But being on a virtual server means I’m sharing an IP address. If you visit that IP in a browser it brings up a CPanel welcome page, since my site only comes up with IP.ADD.RE.SS/~user. Putting either IP.ADD.RE.SS or IP.ADD.RE.SS/~user in the Domain Mapping Configuration makes the mapped domain display the CPanel welcome page (domain.com/cgi-sys/defaultwebpage.cgi).

    I’ve otherwise followed all the instructions on Otto’s instructions and the instructions from the actual plugin. Is there something additional I have to do because of my specific situation? Is there something I’ve done wrong?

    Thanks,
    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • What are you trying to do?

    You need a domain for the main site.

    If you are on a shared IP address, that doesn’t matter for the domain mapping plugin to work.

    You can’t map a domain to the main blog anyway.

    You need to have multsite worked AND the subdomain blogs working (since you said you did the wildcard reocrd) before you can even think of messing aroudn with domain mapping.

    Thread Starter daboo

    (@daboo)

    Ah, sorry I was unclear. I tend to get so focused on a problem that I leave out background info. There is a domain for the main site, which is accessible though mainsite.com or IP.ADD.RE.SS/~user. I’m trying to map a domain to another site on the main installation.

    But your response may have clued me in to what is wrong. I have my install set up to make new sites in subfolders, not subdomains. Is it necessary to have subdomains for the Domain Mapping Plugin to work? If so, is there any way to change that preference after wordpress has been installed?

    Thanks

    Is it necessary to have subdomains for the Domain Mapping Plugin to work?

    No, it is not. If you have a subfolder setup, you do not need the wildcard subdomain for any reason at all.

    It *is* necessary to tell the webser at your IP where to send the domain though. ?? that’s the bit you missed.

    Between the A record to your shared IP, and mapping the domain in the backend of wordpress, you have to go into cpanel & say “park a domain” and list the domain you want to map. As long as your wordpress install is the main domain on the account.

    Thread Starter daboo

    (@daboo)

    Oh dear, I’m not doing a very good job at this. I had already parked the domain through CPanel as well. Let me go through what I have done, so I don’t keep making you run around anymore.

    First, I moved the domain_mapping.php file to ./plugins/, then the sunrise.php file to /wp-content/. Then I added define( ‘SUNRISE’, ‘on’ ); to config.php.

    At this point I emailed my webhost asking them to add a wildcard subdomain/virtual host record to my site’s DNS record in Web Host Manager as it says at the bottom of the installation instructions on the plugin page (however, rereading that after reading your comment, I see I didn’t need to do that).

    Next, I went to the backend of my main install, and went to the Domain Mapping tab that had just appeared. A message popped up saying the tables for Domain Mapping had been created. Here I entered the shared IP that I have, and hit save changes.

    I then went into CPanel and parked the domain I wanted to map to the new site on my wordpress install.

    Back in the wordpress backend, I went to the Domains tab. I entered the site ID, domain name, and left Primary checked. That was saved, and showed up on the sites tab.

    As far as I know, this was all I was supposed to do, and it is everything I did (I double checked while writing this post). But visiting the domain name I mapped to the new site shows the CPanel welcome page.

    I don’t know what I’m doing wrong, but I thank you for your patience and knowledge.

    Thread Starter daboo

    (@daboo)

    ……OK, I’m an idiot.
    I mean, I knew I was an idiot before I posted this, but this just goes to confirm it.

    While I was quickly blowing through the steps earlier, I went to check if it was working yet, and was shown the CPanel welcome page. Firefox cached that page, and showed it to me again when I went back to it.

    The short answer is: it works, and always remember to reload the page.

    Thanks again Andrea for helping me work through this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Domain Mapping shows CPanel welcome page’ is closed to new replies.