Opened 11 years ago

Closed 11 years ago

#894 closed Question/How do I...? (fixed)

change domain? need some handholding please

Reported by: Progressive Technology Project Owned by: Jamie McClelland
Priority: Medium Component: Tech
Keywords: drupal domain name viewsic.mayfirst.org Cc:
Sensitive: no

Description

Folks, I need to change the domain of our drupal site from coati.progressivetech.org to network.progressivetech.org and I'd appreciate a little hand holding to make sure I don't forget a step and have things take a lot longer than they need to.

I've created the new sub domain, and DNS is pointed at you. What I'm wondering is what my next steps are - do I just change my web config and substitute network for coati in the appropriate places?

Change History (11)

comment:1 Changed 11 years ago by Progressive Technology Project

small update - changing my web config and settings.php in my drupal.5 dir did not work - in both cases, I changed from coati.progressivetech.org to network.progressivetech.org and when trying to load the site, received an error about a non-writeable settings.php file which was necessary for the installation process.

is the URL in the mysql database somewhere? Do I need to update the db somehow?

I changed everything back for now.

comment:2 Changed 11 years ago by Jamie McClelland

Hi,

Since you've already added the domain name, I think the remaining steps are to:

This way the old domain will continue working, but it will always be re-written to your new domain.

Does that sound right? Let us know how it goes!

comment:3 Changed 11 years ago by Progressive Technology Project

unfortunately, that didn't work. Going to http://network.progressivetech.org pulls up the drupal database setup page, and provides the following error: "The following error must be resolved before you can continue the installation process:The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process."

hitting http://coati.progressivetech.org works as normal.

any ideas?

comment:4 Changed 11 years ago by Jamie McClelland

Keywords: drupal domain name viewsic.mayfirst.org added
Resolution: fixed
Status: newclosed

Ack - sorry about that. I forgot that Drupal sites on the server viewsic.mayfirst.org are configured a little differently than Drupal sites on other servers (see #760), so my directions were incomplete.

On the server viewsic.mayfirst.org, we're still using the traditional Drupal multi site approach - in which there is only one sites directory shared by everyone who is running Drupal. Therefore, the way Drupal knows that it should use the settings specific to your site is that it compares the domain name you entered when trying to access the site with the names of the folders in the shared sites directory. coati.progressivetech.org works because we have a directory called coati.progressivetech.org. network.progressivetech.org did not work because we don't have a directory with that name.

I fixed this problem by creating a symlink in the shared sites directory so that network.progressivetech.org points to coati.progressivetech.org and it seems to be working now.

Please re-open if you have any problems!

comment:5 Changed 11 years ago by Progressive Technology Project

excellent, that and making network the canonical name did the trick. thanks

comment:6 Changed 11 years ago by Progressive Technology Project

Resolution: fixed
Status: closedreopened

hmmm. I think I need to reopen this ticket. I just tried to attach a file to a post on our drupal site, and it attach fails without any feedback as to why. I see in the browser status bar that it is connecting to coati.progressivetech.org rather than network.progressivetech.org and while that shouldn't make a difference, nothing else has changed about the site other than the domain change.

any thoughts on how to fix this?

comment:7 Changed 11 years ago by Jamie McClelland

Hm - did you check the $base_url variable in your settings.php file? It may still be set to coati.progressivetech.org.

With Drupal 5 you should be able to comment that line out entirely.

comment:8 Changed 11 years ago by Progressive Technology Project

Resolution: fixed
Status: reopenedclosed

yup, that was it. thanks!

comment:9 Changed 11 years ago by Progressive Technology Project

Resolution: fixed
Status: closedreopened

ack. okay, need to reopen this for a second. Remember that testing site you created for us - coati.dev.progressivetech.org ?

How do I get that to work since the changes I made previously - I think modifying the canonical name - have blown away access to coati.dev.progressivetech.org

sorry. and thank you.

comment:10 Changed 11 years ago by Jamie McClelland

Ah yes :).

You have:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^network\.progressivetech\.org$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://network.progressivetech.org/$1 [L,R]

I think you should add one more Cond statement so it reads:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^network\.progressivetech\.org$ [NC]
RewriteCond %{HTTP_HOST} !^coati\.dev\.progressivetech\.org$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://network.progressivetech.org/$1 [L,R]

Can you give this a shot and let us know if it works?

Thanks!

comment:11 Changed 11 years ago by Progressive Technology Project

Resolution: fixed
Status: reopenedclosed

yep, that did the trick. Thanks!

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.