Drupal to Drupal Migration

2019-02-27 14:05发布

I am attempting to migrate hosts and am having issues migrating from one Drupal instance to another. I have a multi-site install. I am attempting to maintain the files/code as well as databases. I have transferred the files from the instance of Drupal from my old server to the new server. I have exported the databases via phpmyadmin and imported them back in with cli. For some reason the homepages for my sites work but the internal pages do not. When i try to navigate to a page I get The requested URL was not found. I have installed and ran a new instance of drupal 6 (same version) on the new server and it seems to work fine. I assume it is something I am doing wrong with the porting process? Any help greatly appreciated!

4条回答
Deceive 欺骗
2楼-- · 2019-02-27 14:23

You could have avoided that by only migrating the sites/ directory. Extract the latest version on your new server and copy the modules, themes, and settings from your old site. Of course the database will need to move also.

This assumes your site is up to date and you haven't modified the drupal core. You may have a custom install profile to copy over too.

查看更多
够拽才男人
3楼-- · 2019-02-27 14:24

There are some important things to keep in mind before migrating from one Drupal instance to another

1. Optimize the tables before exporting the database.
 a) By clearing all the temporary tables
 b) By removing website cache.

For more details go through the following link:
http://goldapplesoftware.ca/blog/2011-05-reducing-drupals-disk-temporary-table-usage

2. Export database with command line so no data is lost.
查看更多
闹够了就滚
4楼-- · 2019-02-27 14:31

Did you transfer the .htaccess file(s) too ?

Those are "hidden" (their name is starting with a '.'), and not shown by default by some FTP transfer software...

(I've seen exactly this problem a couple of days ago, and getting the .htaccess from the old server and putting it on the new one saved the day ^^ so maybe you're having this problem too...)

查看更多
戒情不戒烟
5楼-- · 2019-02-27 14:47

Check your httpd/apache conf file... be sure to add:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
查看更多
登录 后发表回答