I have a primary domain called "www.customsite.com". I have a subdomain called "drupal.customsite.com"

**(www.customsite.com is not the drupal site, it is just the URL to the primary domain. Drupal is installed within the drupal subdomain folder so the url to my drupal site is "drupal.customsite.com")

**It was easy to install drupal. I was able to go to "drupal.customsite.com" and install drupal just as if I was on localhost, Midway through the install I linked my website to the correct database. Rather then localhost, I set it to the MySQL database that I created within GoDaddy.
So after this everything worked fine. Fresh drupal install in the drupal subdomain folder.

My problem is uploading the local site that I have been working on. I want the url for this site to be "drupal.customsite.com". Basically, I want to do is this:

1. delete the default sites folder from GoDaddy hosting server. Upload local sites folder that has all of the files for the site I've been working on. Within this sites folder is an "all folder, default folder, and a folder called "drupal.customsite.com" which is the folder for my site.

2. Within this folder I understand that I have to edit the settings.php file. I changed the db_url to the way I think it's supposed to be "$db_url = 'mysql://user:pass@server/databasename';" The base_url automatically changed for me to "drupal.customsite.com".

My next step will be to simply import my sites database to the GoDaddy phpMyadmin, but I'm not going to do that yet because when I go to "drupal.customsite.com" now I get a dead URL and nothing is coming up. I must be making a settings.php mistake or something because as soon as I edit it after uploading my new sites folder... the link doesn't work to my drupal site.

Note: It is an acquia drupal install. I believe acquia drupal edits the settings.php for you when you are working locally. Maybe I have to change something. The install on GoDaddy is also acquia drupal. I guess if this doesn't work out I will have to use GoDaddy's Drupal install through their website, instead of manually uploading the acquia files to a sub domain called "drupal".

***Rather then finding my problem, I'd appreciate it if someone tells me the steps that they would use to upload the site that they have been working on locally with acquia-drupal to a GoDaddy acquia-drupal installation.


random9q’s picture

I can't recommend an upload tool, I run off them directly and need a means to download and upload myself, as well.

What I *can* tell you is that sometime mid-yesterday my Drupal site got knocked out by issues with GoDaddy's MySQL servers. From the outside, Drupal retells it like the MySQL server has gone AWOL -- either DNS lookup fail or server not responding to basic requests.

I'd make sure yyou eliminate that as cause before you pull your hair out fixing settings.php. and if you're in the same boat is me you might call them and +1 the "please fix". As of this AM my site's still busted. :-/

jsulmar’s picture

Hi jtunney1,
I've used two techniques to accomplish uploading a prototype Drupal site to Godaddy.

Method 1
a) install a clean Drupal application using Godaddy's Hosting Dashboard, "Install Apps" function. This will walk you through the clean install and, if necessary, set up the folder and the subdomain for you. b) wait for an email from Godaddy indicating that the install is complete, then try to access the URL to make sure that Drupal welcome page appears. c) Delete all files in your subdomain's folder, but first grab a copy of the $db_url assignment in /sites/default/settings.php file. d) using FTP, upload all of your drupal files to the subdomain folder. Then, paste in the $db_url. e) at your prototype website, use phpMyAdmin to export a copy of your database. Select the "SQL" format. When complete, edit the SQL file to remove the "create database" line. f) using the Godaddy database tool, login to your drupal database. Select all tables and use the Drop function to remove them all. Do not drop the database. g) use Godaddy's import function to import your database SQL file. h) navigate to your URL and verify that Drupal is up and running.

Method 2
a) using Godaddy's Hosting Dashboard, select "Configure hosted domains". Click the "add" link next to your customsite.com domain name. Specify subdomain "drupal" and specify a folder. b) wait for the subdomain setup process to be completed by Godaddy. c) place a temporary index.html file in your subdomain folder and verify that you can access that file when you navigate to http://drupal.customsite.com. d) delete all files in your subdomain folder, and using ftp upload all of your drupal files into that folder. e) at your prototype website, use phpMyAdmin to export a copy of your database. Select the "SQL" format. f) using the Godaddy database tool, create a database, assign a password, and import your drupal database. g) edit the $db_url line in your file /sites/default'settings.php It should look something like $db_url = 'mysqli://DBNAME:PASSWORD@DBNAME.db.NNNNNNN.hostedresource.com/DBNAME'; (you'll have to get NNNNNNN from the top of your screen when you login to Godaddy's db management tool) h) using Godaddy's Hosting Dashboard Content->CronManager function, add a line to periodically invoke your /cron.php script.

I hope this helps.

jtunney1’s picture

Hey, jsulmar I contacted you through private message, let me know if you get it.

Thank you

cbutts’s picture


I followed the advice and got folder drupal install working with one change not mentioned here. I followed the advice for subdomain and any views, nodes, etc that I click I get an HTTP 500.

I went into the .htaccess file for folder created with subdomain and uncommented

# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /

Once I did that, all my nodes, views, etc work like a charm using the subdomain.

I went into the .htaccess file for the folder I created and loaded drupal into and changed

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
RewriteBase /devregion

Once I did that, all my nodes, views, etc worked like a charm using the .com/devregion

Either way (folder or subdomain) should work if you follow the instructions and my slight modification.