Hi guys,
I installed beta4 via composer, copied the assets over, edited the database config. Then I went on forum.example.com/admin
and put in the DB password again.
After loading, I get an PermissionDeniedException in /home/example/web/forum.example.com/public_html/vendor/flarum/core/src/Admin/Middleware/RequireAdministrateAbility.php
. If I want to open forum.example.com
I get a weird page with no JS or CSS loading.
The web server user example has access to all the files in /home/example/web/forum.example.com/public_html/
and the DB password is 100% correct. I didn't login yet so why is there a permission error?
I'm using nginx and this is my config:
server {
listen 80;
server_name forum.example.com www.forum.example.com;
root /home/example/web/forum.example.com/public_html;
index index.php index.html index.htm;
types {
text/html html htm shtml php php5;
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias /home/example/web/forum.example.com/document_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location / { try_files $uri $uri/ /index.php?$query_string; }
location /api { try_files $uri $uri/ /api.php?$query_string; }
location /admin { try_files $uri $uri/ /admin.php?$query_string; }
location /flarum {
deny all;
return 404;
}
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9009;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
The nginx logs only give me an error 500.