I am migrating a site on typo3 v11.5 to another server.
- I replicated the environment (Ubuntu v22.04 – apache v2.4.41 – php v7.4.3 – MySQL v8.0)
- I copied the folder with all the files.
- I imported the database.
- I updated credentials in LocalConfiguration.php
- I updated the "base" path in sites.
However, it generated error 503, it is not possible to access the backend either, same error. I tried the following:
- I deleted the typo3temp temporary files.
- I truncated all the cache tables.
But the error persists.
I don’t know if I need any other adjustment steps, I appreciate the information.
Postscript:
Is there a better way to migrate? The other option I think is to do a clean installation and insert the contents into each table.
2
Answers
The first step would be to check if the new Server fullfills all
requirements regarding the server environment. As you mentioned
apache2, that means needed availabel/enabled apache modules for
example. On the other hand, TYPO3 core expectes at least a couple
of php extensions which are required to be available in all contexts,
cli for commands and the webcontext for the rest.
To verify and check you can view them up in the (System Requirements)[https://docs.typo3.org/m/typo3/tutorial-getting-started/main/en-us/SystemRequirements/Index.html] Documentation. You can always switch to the correct TYPO3 core version. Beside the "main" link above, here is the one for
the mentioned TYPO3 v11.5.x version: https://docs.typo3.org/m/typo3/tutorial-getting-started/11.5/en-us/SystemRequirements/Index.html
If the server requirements are met, other points could be:
/typo3/install.php
etc.503 Normally points to a urgend error, php error, some nearly fatal error or configuration issues.
You may try to invoke the cli command to see if you get a stack trace there ( typo in db credentials and so on).
If you can access the backend but not the frontend, enable the FE debugging mode.
Your described a not complete, but from basic reading it’s a normal way to go. Done that a lot of times to move installations from one server to another.
Sadly, it could be alot of things going wrong here – so you need to check that yourself. I hope I could give you at least some points at hand to check and narrow down the issue.
I made a short list of the most reasons I found when something is failing after an update or move to another server:
EXT:install/Resources/Private/FolderStructureTemplateFiles
.$GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern']
if required.$GLOBALS['TYPO3_CONF_VARS']['BE']['cookieDomain']
if required.ext_tables.php
,ext_localconf.php
and all files inConfiguration/TCA/
, includingConfiguration/TCA/Overrides/
) and replacedefined('TYPO3_MODE') || die();
bydefined('TYPO3') || die();
The constantTYPO3_MODE
is not defined anymore, therefore all those scripts are doing what they are told to do: theydie()
. This change can be done for TYPO3 v11 already but is not yet required there.Some problems might also arise if an installation is just copied into DDEV-environment, there the
trustedHostsPattern
andcookieDomain
are usually always different than in common live environment.