I try to get a fresh install of TYPO3 13 running on my server. It is a legacy install (I know that is not preferred but I need it this way for now).
I have php 8.2 and symlinks towards the latest version. All the permissions seem to be good.
This is what I found in the error.log I had to copy it from the terminal window so it’s a bit messed up:
Sun Nov 23 10:49:47.6 2025] [proxy_fcgi:error] [pid 941595:tid 941595] [client ……:61285] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function >
<ction TYPO3\\CMS\\Core\\Controller\\ErrorPageController::__construct(), 0 passed in /usr/share/typo3_src-13.4.20/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2877 and exactly 3 expected in /usr/share>
</share/typo3_src-13.4.20/typo3/sysext/core/Classes/Controller/ErrorPageController.php:34\nStack trace:\n#0 /usr/share/typo3_src-13.4.20/typo3/sysext/core/Classes/Utility/GeneralUtility.php(2877): TYPO3\\CMS\\Core\\C>
<ore\\Controller\\ErrorPageController->__construct()\n#1 /usr/share/typo3_src-13.4.20/typo3/sysext/core/Classes/Error/ProductionExceptionHandler.php(63): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance()\n#2 >
<)\n#2 /usr/share/typo3_src-13.4.20/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php(81): TYPO3\\CMS\\Core\\Error\\ProductionExceptionHandler->echoExceptionWeb()\n#3 [internal function]: TYPO3\\CMS\\Core\>
Any idea where to look at? Is this because of wrong .htaccess file? Missing php extension? Or php config.
This are the symlinks I have in place, (which have been working for other sites up to TYPO3 11*.*
Think the symlinks are ok. did check again. And gave it an other try. Although still throwing the 500 error. I got one empty folder added by TYPO3 I “typo3temp“. So it did something before exiting.
drwxr-xr-x 3 www-data admin 4096 Nov 23 17:29 .
drwxr-xr-x 3 www-data admin 4096 Dec 8 2010 ..
-rw-r--r-- 1 www-data admin 2 Nov 23 17:29 FIRST_INSTALL
lrwxrwxrwx 1 www-data admin 19 Nov 23 17:28 index.php -> typo3_src/index.php
-rw-r--r-- 1 www-data admin 20 Nov 22 13:58 info_php.php
lrwxrwxrwx 1 www-data admin 15 Nov 23 17:28 typo3 -> typo3_src/typo3
lrwxrwxrwx 1 www-data admin 28 Nov 23 17:27 typo3_src -> /usr/share/typo3_src-13.4.20
drwxrwsr-x 3 www-data admin 4096 Nov 23 16:40 typo3temp
Still looking for a solution? Also adapted some of the found php.ini files, with amongst having a longer loading time. It is not helping. So where to look at?
I also decided to try this with a Composer install. That gave me some more details where things might go wrong. Did not help me yet to get it working dough.
This is what I now get when running the Composer command from CLI (not as root user):
(the mentioned paths and files are in place I checked for it.) I’m using php8.2-fpm for this domain.
composer require "typo3/cms-backend:^13.4" "typo3/cms-belog:^13.4" "typo3/cms-beuser:^13.4" "typo3/cms-core:^13.4" "typo3/cms-dashboard:^13.4" "typo3/cms-extbase:^13.4" "typo3/cms-extensionmanager:^13.4" "typo3/cms-filelist:^13.4" "typo3/cms-filemetadata:^13.4" "typo3/cms-fluid:^13.4" "typo3/cms-fluid-styled-content:^13.4" "typo3/cms-form:^13.4" "typo3/cms-impexp:^13.4" "typo3/cms-indexed-search:^13.4" "typo3/cms-info:^13.4" "typo3/cms-install:^13.4" "typo3/cms-linkvalidator:^13.4" "typo3/cms-recycler:^13.4" "typo3/cms-redirects:^13.4" "typo3/cms-reports:^13.4" "typo3/cms-seo:^13.4" "typo3/cms-setup:^13.4" "typo3/cms-tstemplate:^13.4" "typo3/cms-viewpage:^13.4"
PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: /usr/lib/php/20190902/mysqli (/usr/lib/php/20190902/mysqli: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/mysqli.so (/usr/lib/php/20190902/mysqli.so: undefined symbol: mysqlnd_global_stats)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20190902/pdo_mysql (/usr/lib/php/20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_mysql.so (/usr/lib/php/20190902/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0
Ok solved this partly. By having php8.2 as the main php version. (sudo update-alternatives --set php /usr/bin/php8.2.). Made the errors disappear :).Than I have been able running composer. Need to run as sudo User.
Only minor thing is that all files are ending up in the wrong place now. I have
/var/www/www.webwebwebsite.com/www
as the public folder. But using composer the public folder is introduced. How to get that working? Can I just have a symlink to the index.php file? Or do I need to adjust the apache Vhost for this?