I really messed up: I'm using a localhost (MAMP) and I've named my website I'm working on, something ridiculous as, prototype.com (hilarious, I know).

Little did I realize that when Drupal loads a website it searches 'Sites' for a folder named after the website.
For example, if the url is http://prototype.com then Drupal would look for the folder sites/prototype.com.

But now I'll have to change the name of this folder to the domain name I'm about to purchase.

So my question is: I'll need to change the name of sites/prototype.com to match my domain name, correct?
And if so, can I just rename this folder, or do I need to make alterations in other files as well?

Thanks, its a noob question. But one that is causing a lot of tension.

Hope to hear form you guys :)

Comments

VM’s picture

rename the folder, clear out cache.

you can test this on your localmachine by doing a move.

bookwalla’s picture

thank you.

I have a multisite install, so I should just rename the folder, then?

Also, I will need to convert the multisite install to single site install so I can put the site online, correct?

.

VM’s picture

testing the theory is always best.

especially when the question continues to get more and more complex. multisite how? single DB? multiple DB's?

bookwalla’s picture

So this is what I did, I did a pure vanilla install of Drupal (because earlier i was using one install of drupal to develop multiple sites: multisite install). And yes i am using only one database for this site.

l then moved the the old 'sites' folder into this new single install of drupal.

- I made sure to rename my site here from protoype.com to mediadesigns.com.
- After the fresh install, I made sure that Administer>File System is changed to sites/mediadesigns.com/files

I still coudn't see any images.
So I deleted all old images in Database, and uploaded new ones from Drupal, using core upload module.

I see all images now on my site.

But I looked in the database under the 'files' table and the path to my site logo.gif image now points to:
/Applications/MAMP/tmp/php/logo.gif

Obviously there is something wrong cause shoudlnt' the logo.gif point to the 'files' folder. I mean, this ('files' folder) is where I uploaded the image in the first place.

Please help really confused.

VM’s picture

set the tmp folder in drupal to sites/mediadesigns.com/files/tmp

so that site isn't using a servers default.

beyond that. No idea due to running the mutisite in a single DB. which means it has prefixes. I've never done that as I prefer seperate databases, even with a multisite.

good luck.

bookwalla’s picture

I meant I'm using a single install of drupal, but different databases for each site.

VM’s picture

well, if you're breaking the site out on it's own and it's no longer going to be a multisite.

do a new install of drupal
add your contrib modules/theme so on
drop the fresh DB
import the dev db
clear cache tables
clear sessions table
test

bookwalla’s picture

Thanks for your patience. You really are a great help to me.

So, i understood every thing except how do I clear:

cache tables
&
session tables

Also, i made the change to Drupal's temp folder: sites/mediadesign.com/files/tmp.
And, indeed, I looked in the database, the logo.gif path is sites/mediadesigns.com/files/tmp/logo.gif

But why is the logo.gif (uploaded from themes> configure) stored in a "tmp" location"? Is this normal?

VM’s picture

by truncating the tables in the database.

no idea why your file is getting stuck in the tmp folder.

bookwalla’s picture

sorry, but how do i do truncate tables in the database? I'm using MAMP. I tried to google but coudn't find any answers.

I apologize but I'm a noob.

VM’s picture

using phpmyadmin or whatever database tool is in use.

bookwalla’s picture

ah, its call FLUSH TABLE in MAMP. whew, thanks man!