Тёмный

Migrating a site from Drupal 7 to Drupal 9 - Step 1 

Easy Drupal
Подписаться 503
Просмотров 4,6 тыс.
50% 1

You can ask me for help with your Drupal site using my Fiverr gig here bit.ly/3yBWLWC
Please support the channel by using my eBay search website shopoftheworld... its a Drupal site that is powered by eBay APIs and offers faster searching and filtering, its quite fun. Thanks
Drupal 7 to 9 Migration is not an easy task - this is a series of videos showing the 3 methods of migration (there may be others)
Method 1 is to recreate the site from scratch and copy content across manually - for small sites this is probably the easiest way but can be time consuming.
Method 2 (the one we are attempting here) is to recreate the site in Drupal 9 and use the Migrate modules to extract and import the content, I haven't attempted this before and I am not sure if its going to work.
Method 3 is to recreate the site manually and write a custom module to extract data (from a JSON feed on the D7 site) and import into the new site. I may show how to do this if method 2 is unsuccessful.
Commands used
Creating the D7 site locally in Docker (these are my commands you will need to adapt and also download the correct Drupal Docker image)
docker run -d --name hgcreasey --link mysqldb -p 8100:80 -e MYSQL_USER:root -e MYSQL_PASSWORD:drupal -it --volume //c/web/hgcreasey.co.uk:/var/www/html drupal:7.84-apache
Creating the D9 site locally (and mapping to my local drives)
docker run -d --name d9_hgcreasey --link mysqldb -p 8090:80 -e MYSQL_USER:root -e MYSQL_PASSWORD:drupal -it --volume //c/web/d9_hgcreasey/web/modules:/opt/drupal/web/modules --volume //c/web/d9_hgcreasey/web/themes:/opt/drupal/web/themes drupal:latest
Check the Docker series for more info on this
Any questions drop a message below.
I am a UK based Drupal consultant with 10+ years experience of Drupal 7, 8 and 9 configuration, development and environment architecture.
Available for contract or maintenance work drop me a message below if interested or use my Fiverr gig to send a request for help www.fiverr.com...

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@akash098
@akash098 2 года назад
Great tutorial. Thank you so much
@easydrupal3363
@easydrupal3363 Год назад
You're very welcome!
@iDezee
@iDezee Год назад
Hi! Thanks for the tutorial. I'm a student and have to migrate a drupal7 site to drupal9 for a client. Everything in this video worked when trying to replicate the Drupal 7 site locally, except for that in the end, none of the images were loaded. Do you know why that could be the case? I came across 2 differences during troubleshooting, compared to your example in the video. First: All the files, including all images, were saved directly to web/files (instead of web/sites/default/files) I tried moving them into the previously mapped folder, but it did not change the outcome. Second: There is a very large temp-folder (150gb) in the h5p folder. Due to the size of it, i did not copy the temp-folder contents into the local project. Could that be the problem? Your help would be very appreciated!
@easydrupal3363
@easydrupal3363 Год назад
hi - the files should definitely end up in sites/default/files - i dont think the temp folder will be the issue
@easydrupal3363
@easydrupal3363 Год назад
I did have some trouble with files on this site and wrote something to import them - however I have done another site files successfully since using the drupal migrate modules and doing it on the command line - details here www.drupal.org/docs/core-modules-and-themes/core-modules/migrate-module/migrate-overview#:~:text=Migrate%3A%20Migrate%20module%20provides%20the,provided%20by%20the%20Migrate%20module.
@talibsmiler8429
@talibsmiler8429 Год назад
hi lukas. Can we connect. I need some help. Can you assist?
@alessandromele3963
@alessandromele3963 Год назад
great tutorial. i would raise a question , which module uses to zip the contents on drupal 7?
@easydrupal3363
@easydrupal3363 Год назад
do you mean of the whole site? for a backup there is backup and migrate module
@HungTranVan-si5xr
@HungTranVan-si5xr Год назад
Could you please let me know how to backup db in drupal9 docker?
@easydrupal3363
@easydrupal3363 Год назад
hi - apologies i missed this comment - are you still having trouble? easiest way would be via PHPMYadmin if you have that setup - if not i can show you command line
Далее
Migrating Drupal 7 to Drupal 9 Pt 2
6:18
Просмотров 1,4 тыс.
А вы играли в school boy runaway?
00:30
Просмотров 148 тыс.
Step 1 in decoupling Drupal with JSON:API
14:38
Просмотров 1 тыс.
ChatGPT for drupal developers (Drupal 10)
6:48
Просмотров 5 тыс.
13 Things To Remove From Your Website Immediately
12:33
Coding Was HARD Until I Learned These 5 Things...
8:34
Turns out REST APIs weren't the answer (and that's OK!)
10:38