This forum is no longer active. Please post your questions to our new community site

Forums Drupal

Moving website from localhost to server

Subscribe to Moving website from localhost to server 5 post(s), 2 voice(s)

 
Avatar lec0mte 9 post(s)

Hi,

I finished my website on my local host. Now I want to copy the site to internet and I’m aware that it’s not an easy task but I can’t seem to find good documentation on which files to copy, where my site’s actual database is located etc.

Any tips on documentation, tutorials, etc on this subject. If possible specifically for the bitnami drupal stack?

Thanx!

 
Avatar lec0mte 9 post(s)

Right, I’ve spent the last few days looking for pointers on how to migrate my local site to my server but cannot find anything decent. Am I the only beginner encountering this? Seems to me that almost by definition every beginner will encounter this problem. My suspicions are underlined by this discussion on the same issue with joomla: http://www.alledia.com/blog/general-cms-issues/…

I just want to know where the relevant files are located and where they should be on my server. In phpMyadmin I would like to import my existing databases. The readme.txt in the bitnami-root has a short paragraph on the directory structure. Could this include an extra paragraph on the relevant subdirectories needed for migration?

Or is the conclusion that Bitnami stacks are not for beginners and should I quit my efforts because there will be many more issues on the way that require a serious course in web development?

 
Avatar lec0mte 9 post(s)

Found a post on Drupal.org that has a good step by step guide to migrating your site: http://drupal.org/node/53479. Would be nice if these steps could be included in a manual or readme file, including a link to the myPHPadmin on your localhost. It’s in the last sentence of the last paragraph on the page that appears when you start your stack.It’s http://127.0.0.1/phpmyadmin.

Now I’m dealing with the issue of linking the site with the database. I get the following error: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2). It appears to be a common error but I’m still searching for the solution.

It’s probably ridiculous that I am following up on my own posts but after searching the internet for days I can only hope that I can save other newbies the time.

 
Avatar victoria Administrator 134 post(s)

Hi,

This link may also be useful: http://drupal.org/node/679054. We’ll add a note to the Readme. Also, although you may already find the answer to your own questions, I’ll try to reply them in order to help to other BitNami users.

>I finished my website on my local host. Now I want to copy the site to internet and I’m aware that it’s not an easy task but I can’t >seem to find good documentation on which files to copy, where my site’s actual database is located etc.

The database is located in the /mysql/data/bitnami_drupal6.
The drupal site files (the whole drupal code) are those files in /apps/drupal/htdocs.

>Now I’m dealing with the issue of linking the site with the database. I get the following error: Can’t connect to local MySQL server >through socket ‘/var/run/mysqld/mysqld.sock’ (2). It appears to be a common error but I’m still searching for the solution.

When do you get this error? Which steps have you followed for the migration?

 
Avatar lec0mte 9 post(s)

Hi Victoria, thanks for your reply and your help. Things can be a bit overwhelming and frustrating when you’re doing this for the first time but along the way I’m experiencing a steep learning curve :-)

I resolved the last error: in settings.php the link to the database was to ‘localhost’. My provider has the database on a seperate server so I had to replace ‘localhost:3306’ by the internetaddress of the server.

The next hurdle is a series of errors which are probably related to
a] the clean URL option not working: errormessage in the administer section: “Your system configuration does not currently support this feature.” I asked my ISP if the mod_rewrite is working on the Apache server. I read somewhere that that is possibly related to the clean URL issue.
b] the modules and themes I installed show up in the administer page, but not in the modules or themes page. So the theme doesn’t work on my website and neither do the modules. This is perhaps related to the first problem
see also the website: www.writerskitchen.nl

Any suggestions anybodiy?

Forums Drupal