I am working in Shared Hosting with Cpanel
In my forum setting I have: Flarum v1.0.4 with PHP 7.3.33
In Shared Hosting: info server: PHP 7.3.33
And in Cpanel/ MultiPHP option for domains I have working with Flarum have: PHP 7.3.33
All working ok! Now go with Backup and updates....
Now go to review and update the PHP
In my Shared hosting info server: PHP 7.4.27 (This data not possible update for me)
In Cpanel/ MultiPHP option I select my flarum domain and change to PHP 8.0 (ea-php80)
1º First change In composer.json
set the versions for all extensions to "*".
2º Review and update all extension.
3º Go with update core: composer update
command and php flarum migrate
And... ERROR 500 and all OFF in the web.
THE CHANGE TO MIDDLE SOLVE THIS ERROR:
In Cpanel/ MultiPHP option I select my flarum domain and download to PHP 7.4
After this change the web is online and if go to my forum setting I have: Flarum v1.2 with PHP 7.4
But in this point I testing and re-change one more time In Cpanel/ MultiPHP option I select my flarum domain and upload to PHP 8.0 . Then NOT send any command via terminal.
After this final change the web still alive (no have any ERROR 500) and if go to my forum setting I have: Flarum v1.2 with PHP 8.0.
Where is the problem?
Why with first flarum upgrade in PHP8 version I have ERROR 500 but if then download via Cpanel to 7.4 and re-update to 8.0 only via Cpanel all is working and in Admin said me stay in V8.0?
Data with comman: php flarum info
Flarum core 1.2.0
PHP version: 8.0.15
MySQL version: 5.5.5-10.2.41-MariaDB-cll-lve
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, readline, Reflection, SPL, session, standard, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, ldap, exif, mysqlnd, odbc, PDO, pgsql, Phar, posix,pspell, shmop, SimpleXML, snmp, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, xmlreader, sodium, mcrypt, pdo_sqlsrv, memcached, redis, imagick
+-----------------------------+---------+--------+
| Flarum Extensions | | |
+-----------------------------+---------+--------+
| ID | Version | Commit |
+-----------------------------+---------+--------+
| flarum-markdown | v1.2.0 | |
| flarum-suspend | v1.2.0 | |
| flarum-flags | v1.2.0 | |
| matteocontrini-imgur-upload | v3.9.1 | |
| fof-user-bio | 1.0.2 | |
| fof-terms | 1.1.2 | |
| fof-share-social | 1.0.1 | |
| fof-pages | 1.0.1 | |
| fof-oauth | 1.2.0 | |
| fof-nightmode | 1.2.0 | |
| fof-merge-discussions | 1.2.0 | |
| fof-links | 1.0.3 | |
| fof-ignore-users | 1.0.2 | |
| fof-formatting | 1.0.2 | |
| fof-cookie-consent | 1.0.2 | |
| flarum-tags | v1.2.0 | |
| flarum-subscriptions | v1.2.0 | |
| flarum-sticky | v1.2.0 | |
| flarum-statistics | v1.2.0 | |
| flarum-mentions | v1.2.0 | |
| flarum-lock | v1.2.0 | |
| flarum-likes | v1.2.0 | |
| flarum-lang-spanish | 1.1.7 | |
| flarum-emoji | v1.2.0 | |
| flarum-bbcode | v1.2.0 | |
| flarum-approval | v1.2.0 | |
+-----------------------------+---------+--------+