2021-10-04, 06:09 PM
Hello. I wanted to set up MyBB on my VPS but I ran into a problem, after I setup everything and went to the site, I got an nginx 500 Server error. Can someone help?
OS: Debian 11
PHP: PHP 7.4.21
SQL: Ver 15.1 Distrib 10.5.11-MariaDB
MyBB: 1.8.27
Here is my nginx config:
OS: Debian 11
PHP: PHP 7.4.21
SQL: Ver 15.1 Distrib 10.5.11-MariaDB
MyBB: 1.8.27
Here is my nginx config:
server {
listen 4040;
listen 443 ssl;
server_name forum.matteodev.xyz;
root /var/www/mybb;
location / {
index index.php;
}
# Deny access to internal files.
location ~ /(inc|uploads/avatars) {
deny all;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}