In previous thread https://discuss.flarum.org/d/29012-file-not-found/7
I got "File not found" and got the advice to activate PHP FPM. It was already activated.
> systemctl status php7.3-fpm.service
● php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-09-24 11:37:08 UTC; 1 day 3h ago
Docs: man:php-fpm7.3(8)
Main PID: 441 (php-fpm7.3)
Status: "Processes active: 0, idle: 2, Requests: 24, slow: 0, Traffic: 0req/sec"
Tasks: 3 (limit: 1149)
Memory: 29.6M
CGroup: /system.slice/php7.3-fpm.service
├─441 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
├─471 php-fpm: pool www
└─472 php-fpm: pool www
So i updated the Nginx setting:
server {
listen 443;
root /var/www/flarum/;
index index.php index.html index.htm;
server_name forum.go4webdev.org;
location / {
try_files $uri $uri/ /index.php;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
What am I doing wrong? What am I missing?