How to upgrade to Drupal 9 using DDEV - ddev

The instructions at https://ddev.readthedocs.io/en/latest/users/cli-usage/#drupal-9-quickstart clearly state how to set up a Drupal 9 project.
However, what is the procedure to upgrade an up to date Drupal 8 project to Drupal 9 in DDEV?
We're assuming the "project-type" needs changing, perhaps PHP and DB versions, etc.

Most of the D8->D9 upgrade is doing Drupal things.
For ddev you'll want to
ddev config --project-type=drupal9
ddev config --mariadb-version=10.3
That should be it. The reality is the drupal8 and drupal9 project types behave the same, so that doesn't much matter. But Drupal9 does require MariaDB 10.3, and you might have 10.2 if the project has been around for a long time.
Although you probably aren't forced to change the php version, it would be best to move along to PHP 7.4 at this point if you're not using that. ddev config --php-version=7.4

Related

Convert pages from one PHP version to another PHP version

I work in a company, which has a product that runs in PHP 4.4.
Now the product is gaining importance for the company and obviously we want to port it to one of the latest PHP versions available.
In my young experience I've never had to migrate code between different versions and I wouldn't know how to go about it. How can I move?
Is it possible to use plugins to do this job?
There are thousands of files and folders to migrate.
The end result will be to have the whole project running with a version of PHP 8.
Thanks in advance for any help or advice you can provide.

How to upgrade a liferay theme from 7.0 to 7.4?

I'm following the official tutorial to update a theme from 7.0 to 7.2 https://help.liferay.com/hc/es/articles/360029316831-Running-the-Upgrade-Task-for-7-0-Themes, the process is successful but I need to update to liferay 7.4 and I can't find official documentation or information on how to continue from here, I try to deploy the war on my local server with 7.4 but it says which is not compatible with this version of Liferay. Can someone guide me?
There are 5 years between Liferay 7.0 and 7.4 - and a lot has changed in the frontend world. I'd suggest you either just create a new theme, or (better) check if just using a stylebook with a stock theme is sufficient. A stylebook should be a lot easier to migrate to future versions than a full theme.
I believe that it's technically possible to upgrade a theme, but wouldn't bother doing so. As you have an existing theme, it should be relatively quick to get to where you need to be - plus you'll have the opportunity to make those little adjustments that you likely had an eye on for the past couple of years.

magento 2 and laravel not support due to different php version

I had a simple query but don't know how to work on it, I am working on two Different Project one is in Laravel 5.6 and other is in Magento 2.1. Now my problem comes when i am trying to install both on the same server because my Laravel support PHP 7.1 and i am using a theme Magento(Porto) which support 7.0.
I want to know how to install both on my server. I have already a built side of Laravel. I had to check some google it gives me multiple PHP version related help. but how to implement it.
Thanks
I am not sure which development server you are using at your local machine. However, you can have more than one PHP version.
You can switch between versions. Refer below.
Perhaps, this may help you.
Multiple PHP versions in Wamp under Windows 7
If you are using Ubuntu try below,
https://www.tecmint.com/install-different-php-versions-in-ubuntu/

Laravel Update 4.1.24 to 4.2

im currently working on an update from laravel 4.1.24 to 5.6 The problem is i got nearly no experience with laravel. My question is now, how do i properly upgrade. Should i first upgrade to 4.2 and then to 5.0 and so on or would it be better to upgrade directly to 5.6 and how should i do this? I mean there are so many changes that i think i could miss something.
Also the project is just in a github repository, so it's hard to check if it's still working after an upgrade because i dont got the old modules. Or would it be enough to go on laravelshift. com and just upload it there to go from 4.1 to 4.2, 4.2 to 5.0 and so on.
Best regards!
The Laravel documentation contains a whole list of breaking changes that can help you to upgrade your application to a newer version. Laravel Shift is a service that checks and updates these changes in your project.
However, there is no way of being sure that your project will still work after these upgrades. Especially if you are using external modules its very risky.
If it is not required, I would not recommend upgrading from 4.1.x to 5.6 unless you have a lot of time on your hands. A solution could be to set up a completely new 5.6 project and add the project code file by file and test the implementations.
Start from here and follow instructions to upgrade it to 4.2. Then go through your packages and update their versions accordingly. When done use dropdown list in the top-right corner to select next version (5.0) and repeat it until you are at 5.6.
You definitely need to be able to run your code and test it somehow after each step because there will be problems. From 4.1 to 5.6 is a big leap and a lot of packages might have breaking changes etc. I only migrated as far as from 5.1 to 5.6 and it took me whole day to fix everything.
As for automated upgrade you can try it as well, but as I already mentioned you need to be able to test your work because all packages need to be updated as well.

Upgrading to Laravel 5.4.0 from 5.1

I am using Laravel 5.1 and I would like to know how to upgrade to the latest version of Laravel which is 5.4.
Can we directly upgrade to Laravel 5.4 From 5.1 ?
The best way to upgrade is to follow the steps for each version. So upgrade to 5.2 then 5.3 then finally 5.4. The upgrade guides look lengthy but it most cases it wont take to much time because the guide covers all potential changes but they won't all apply to your application.
Alternatively you could install a fresh version of 5.4 then copy your application code into the new Laravel. Since the upgrade for each version is relatively straight forward and this method would lose your git history I wouldn't recommend it.
Another paid method would be to use Laravel Shift which will automate the upgrade process for you.
Edit: As #Scott mentioned you should make sure your server meets the server requirements for your target Laravel version. Specifically make sure you have PHP >= 5.6.4 installed
Well, you first you need to update your composer.json file. Around line 9, you should be requiring in the framework itself. Change that to use version 5.4.*. After that, run a composer update and then, yes, you do need to go through your files manually to address any incompatibilities.
after you replace provider folder to the new version.
https://github.com/laravel-shift/laravel-5.4/tree/master/app/Providers.

Resources