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

jaypan’s picture

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.

jefferis’s picture

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.

jefferis’s picture

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...

 Notice: Undefined variable: HTTP_REFERER in eval() (line 13 of /usr/home/username/public_html/website.com/modules/php/php.module(80) : eval()'d code).
 

the line 13 appears to be:

function php_help($path, $arg) {
  switch ($path) {
    case 'admin/help#php':   <<<<< LINE 13
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';

Any help deeply appreciated!

jaypan’s picture

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.

jefferis’s picture

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?

jaypan’s picture

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.

jefferis’s picture

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 ...

jefferis’s picture

My hosting company gave me this report:

The only hard error I see in our logs is:

www.website.com [Tue Feb 02 04:08:28 2016] [error] [client
221.178.182.200] Directory index forbidden by Options directive:
/usr/home/usrnme/public_html/website.com/admin/, referer:
http://www.website.com/admin
Why the index may be blocked is due to this code in the .htaccess file:
# Don't show directory listings for URLs which map to a directory.
Options -Indexes

It definitely sounds as if the change from configuring that software at the IP to the domain name is causing this issue
That doesn't appear related to the issue you've been working with, so we do
not have any other error log info to use to gain further insight into what
the problem may be here. Obviously Drupal is wanting some specific
permissions and/or domain configuration changes made here, but what those
are I really can't say. Drupal forums would be able to assist with those
Drupal specific issues.

Is there some field in the Database I can change directly that would allow me to fix the IP vs. the URL issue?

jefferis’s picture

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...

jefferis’s picture

see my reply 2 above