3

Old website is running on live. The version of the old website is drupal 6. Last two months ago, I receive a task to create new website by using drupal 7 to replace old one. That time i have 0 knowledge of drupal. Now ready to replace old one and face problem. Old website is drupal 6. New one is drupal 7. Sure have problems.That why i decide to duplicate old website and database to sub domain. Purpose is to upgrade old website from drupal 6 to 7. Old website in sub domain display succesfully, but the link all point to site listing of the sub domain

FYI, I had managed to replace new website D7 to old website D6 successfully. However, the solution is not base on migrate D6 To D7. This question will be remain unanswered...

  • how did you try to upgrade from D6 to D7 ? – itsdarrylnorris Apr 13 '15 at 4:38
  • I cant try because when I duplicate database and copy old website to new sub domain something happen. Home page is displayed correctly but all the hyperlink are wrong. Everything is link to my sub domain site map – peifa Apr 13 '15 at 4:48
  • Sorry is not site map is site listing – peifa Apr 13 '15 at 4:59
  • your question is fairly confusing. Try editing it answer these questions I have about it: are both D6 and D7 site online now? What do you mean with subdomain (is that the D7 version)? What is the main domain (the D6 version?) What is "site map" or "site listing"? What did you do in the apache configuarion file to separate both sites, ect,etc. See how confused I am with just reading the question? Note: constructive critique, just trying to help. But if we don't understand the question, we can not answer it, only keep guessing, ok? Enhance it also to avoid it gets closed via moderators ... – Pierre.Vriens Apr 14 '15 at 7:14
  • I very sorry. Here is the situation. Old website is running on live. The version of the old website is drupal 6. Last two month ago, I receive a task to create new website by using drupal 7 to replace old one. That time i have 0 knowledge of drupal. Now ready to replace old one and face problem. Old website is drupal 6. New one is drupal 7. Sure have problems.That why i decide to duplicate old website and database to sub domain. Purpose is to upgrade old website from drupal 6 to 7. Old website in sub domain display succesfully, but the link all point to site listing of the sub domain. – peifa Apr 14 '15 at 7:21
1

First thing you should do is contact your web hosting provider and see if you can go back to working copy of your website. After you have a working copy of your website download that into a local environment. I would recommend to this either a Mac or Linux machine (ubuntu os what I user).

Once you have your local environment you can start trying migrating from D6 to D7. You should never try an migration a production site.

From here you can use drush sup to upgrade your website. After your website is been successful upgrade from D6 to D7. You should consider uploading that to your web hosting provider.

|improve this answer|||||
  • As you suggest, I had downloaded to my localhost. As well as the database. Website load successfully but the link all goes to localhost.....Any reason why this happen? – peifa Apr 14 '15 at 3:50
  • I think there is something wrong with .htaccess file.Or I think you try drush. to upgrade first on local then on live. – harsh_behl_0007 Apr 14 '15 at 8:44
  • I had downloaded the test it on my localhost. I do feel the problem is at htaccess or setting.php. At the setting.php, I quite sure my database set correctly and base url is commented. – peifa Apr 14 '15 at 10:23
  • What you mean by all links are gone ? If you do not have clean url enable in your local server most likely you would not be able to find any page that is not your front-page. Check if you have clean urls enable on your server. – itsdarrylnorris Apr 14 '15 at 10:40
  • Do you know when you key "localhost" in the URL? It will display WAMP server page. All the link goes to that page... – peifa Apr 14 '15 at 11:18
1

I'll use this answer to try to help/guide @peifa. I'll do so by enhancing my answer in multiple steps (iterations), depending on which parts need more details etc as per peifa's knowledge. To Peifa: please add comments to this answers to confirm, ask extra questions, etc where appropriate, OK? And try to EDIT your question instead of adding comments to it (that is not really helpful, since too time consuming to digest I feel). Like the comment about "local host", put that in the question, and then delete that comment again. To anybody else: feel free to edit my answer to refine, correct, etc.

Assumptions: current live (production) site is D6, ultimate deliverable is to REPLACE it entirely with a D7 equivalent, in production status also.

Approach: clone the D6 version from production environment to some TEST environment, which is what in the original post (OP) seems to be called "subdomain". I'm assuming you're using apache as the webserver (if not: what else)? And since I do not see "localhost" or "virtualbox" or anything similar, I assume anything related to the upgrade is happening somewhere online. If not please enhance the OP to claify.

Step 1: update your a apache configuration, to add the config about the root folder for the D7 site and the subdomain name (as it will be used in the URL to surf to it)..

Step 2: make sure you're aware of the upgrade instructions.

Step 3: Upgrade Drupal core (and the database) from D6 version to D7 version. Need I provide more details on that?

Step 4: Upgrade relevant contrib modules from D6 to D7. Need I provide more details on that?

|improve this answer|||||
  • Thank you. Assumptions: current live (production) site is D6, ultimate deliverable is to REPLACE it entirely with a D7 equivalent. D7 is tested on localhost and test server (my server sub domain) D7 is not production site yet. Approach: clone the D6 version from production environment to some TEST environment, "subdomain". D6 is host at the webserver under public_html directory. In the public_html directory i create a folder call testing and set it as my sub domain. I clone d7 from public_html to testing folder. I download from server and clone to my laptop WAMP server as well. – peifa Apr 14 '15 at 9:14
  • Now is the issue. D6 cant upgrade either at my localhost nor sub domain. I take my localhost WAMP server as an example. All the hyperlink link to localhost even my url state the correct path. Cant even login to user because it link to localhost as well. – peifa Apr 14 '15 at 9:18
  • I'm in a rush right now. But we are making a little progress: it's much clearer now what your question is (still not perfect). And you recreated the problem in your localhost environment, so we can now try/experiment without depending on 3rd parties, way to go! Next question: can you update your question by including the relevant parts of your .htaccess files, of your LOCALHOST setup (no need for the .htaccess from your live site). That might help to pinpoint the problem ... PS: I'll edit my answer later on today (this comment seems more important to me right now to get you going) – Pierre.Vriens Apr 14 '15 at 9:57
  • I believe is htaccess file problem. Here is the situation. In the localhost, website all the link actually working fine!!!!! YEAH!!! When I successfully login as administrator, all the admin link will redirect to localhost page. OH NO..... My htaccess file pretty long (around 118 lines) and I have no ideas what is it about.. I change to default htaccess (around 16 lines). The result is all the link includes website all goes to localhost. As a result I believe is htaccess file problem, but how am i explain? I do not really understand what is the code about. – peifa Apr 14 '15 at 10:44
  • I wonder is it something related to this? RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] – peifa Apr 14 '15 at 10:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.