By jefferis on
Hi folks. I ported my drupal 6 install over to a new server and drupal 7. In order to get it running, I did the install with the IP address instead of the domain name because the old one was still live.
I can't find any way to switch the IP address to the domain name now that I have fully moved the site. The first problem I encountered is that the sitemap and google analytics api modules will not work because they must match the IP address.
Can anyone help me figure out how to reset the domain name?
TIA,
Jeff
Comments
You don't set a domain name
You don't set a domain name when installing D7, and you can point as many domain names as you want at a Drupal installation.
So how did you 'set' the domain name?
Contact me to contract me for D7 -> D10/11 migrations.
Or anything really. I'm friendly, and open to work or conversation.
I just used the installer app
Pair.com has an Account Control Center with Software Installation Manager. It installs Drupal into a directory... I set up a domain name on the server, but because it was live elsewhere, I used the IP address to log in. That is where I ran the migrate from the live Drupal 6 using host to host connections.
Hi, Well, when checking for
Hi, Well, when checking for the default first page in settings, e.g., it showed http://216.4.14.35/_________________ (not actual IP) instead of the domain name. I did a search in google (couldn't find it here) and it said to set the base_url in the settings.php page, which I did and have gotten most of the site back on track, But now I am running into a permissions error on trying to see broken links saying I don't as admin have permissions to see the broken links, but I checked and I surely do.
I'm also getting this error...
the line 13 appears to be:
Any help deeply appreciated!
If you've already changed the
If you've already changed the base_url in settings.php, then that's all you need to do. You can try commenting it out altogether as well.
As for the eval() error you are getting, that's from some php you've put in a node or a block. It's not from the code you've shown.
Contact me to contract me for D7 -> D10/11 migrations.
Or anything really. I'm friendly, and open to work or conversation.
Weird permissions issue.
After some experimentation and finding out that site/default was blocking updates, I fixed permissions issues, BUT that did not fix the problem.
Here is what I have discovered so far, If I comment out my base_url in settings, I can log in to the site using my IP address as the base, then get to broken links and fix them, BUT if I turn my base url back on my permissions are denied both for my domain name log in and my IP address log in.
For now, I have turned my base url off but I am concerned that two features may now fail: My google analytics API and my Adsense account...
Any ideas where this db might have gotten it wrong?
Why would Google Analytics
Why would Google Analytics and Adsense not work?
Contact me to contract me for D7 -> D10/11 migrations.
Or anything really. I'm friendly, and open to work or conversation.
Because the API requires the domain url
In order to authorize google analytics reporting, you have to authorize it with an api. The api is linked to the domain url, and when I tried to authorize it with the IP address it failed. I was not able to authorize it until I changed the base url to the domain url. It finally authorized. I've got no idea what will happen when I comment out the settings file ...
Still an issue
My hosting company gave me this report:
Is there some field in the Database I can change directly that would allow me to fix the IP vs. the URL issue?
thanks for your help! The
thanks for your help! The only code I added recently was to link the Google Analytics API. I have Google Ads as well, but not added any special code to any block...
I'll do some disabling and see if that fixes it and I'll report back.
Thanks again
Update: disabling modules and removing the php function did not help. I am thinking there is an ownership issue on the hosting server itself.. Totally weird...
see weird permissions reply above
see my reply 2 above