The issue
I managed to set up flarum on debian 12, then I followed the tutorial to set up a "hello world" extension. The only changed I made is that I named it nicoco/flarum-http-auth (and changed "psr-4": {"Nicoco\\HttpAuth\\": "src/"} accordingly). I "installed" it with composer require nicoco/flarum-http-auth '*@dev'.
But I could not see the alert popup. I wondered if cache was involved in some way, so I did a non-subtle systemctl restart nginx and systemctl restart php8.2-fpm. Since then I have not been able to load flarum in the browser anymore. Nginx logs show FastCGI sent in stderr: "PHP message: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/flarum/vendor/illuminate/collections/Arr.php on line 195" while reading response header from upstream which seems related?
I tried composer remove nicoco/flarum-http-auth '*@dev' and reloading both nginx and php-fpm again, even ran php flarum cache:clear but it didn't fix anything.
I am quite noobish regarding php anything, so I don't even know where I should look to try and understand what I messed up. /var/log/php8.2-fpm.log has no errors.
My nginx config is:
server {
server_name myserver.domain.tld;
listen 80; # yes I have not set up let's encrypt yet, I'm just playing around to see if I manage to extend authentication :)
listen [::]:80;
root /var/www/flarum/public;
index index.php;
error_log /var/log/nginx/flarum.error;
access_log /var/log/nginx/flarum.access;
include /var/www/flarum/.nginx.conf;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
Flarum information
Flarum core: 1.8.10
PHP version: 8.2.28
MySQL version: 10.11.11-MariaDB-0+deb12u1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-flags | v1.8.2 | |
| flarum-approval | v1.8.2 | |
| flarum-tags | v1.8.4 | |
| flarum-suspend | v1.8.4 | |
| flarum-subscriptions | v1.8.1 | |
| flarum-sticky | v1.8.2 | |
| flarum-statistics | v1.8.1 | |
| flarum-mentions | v1.8.5 | |
| flarum-markdown | v1.8.1 | |
| flarum-lock | v1.8.2 | |
| flarum-likes | v1.8.1 | |
| flarum-lang-english | v1.8.0 | |
| flarum-emoji | v1.8.1 | |
| flarum-bbcode | v1.8.0 | |
+----------------------+---------+--------+
Base URL: http://fofo.nicoco.fr
Installation path: /var/www/flarum
Queue driver: sync
Session driver: file
Mail driver: mail
Debug mode: ON