How do I properly configure the Nginx conf file for MyBB so that I can install the forum?

Viewed 22

I'm trying to install MyBB forum. I already have Mediawiki installed and running and I want to have MyBB on the same server but with a subdomain. I thought I did everything correctly but when I try to go to the url for installation (example.com/install) it just redirects to the main page of the Wiki. Does this mean there is an issue with the configuration of /etc/nginx/sites-available/mybb.conf? I filled that file with:

    server {

    server_name forum.example.com;

     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.0-fpm.sock;
          fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
          include fastcgi_params;
    }

    }

For reference, I'm following this tutorial since I'm using Vultr to host: https://www.vultr.com/docs/how-to-install-mybb-on-ubuntu-16-04/ . I'm also very inexperienced with nginx and this subject in general.

0 Answers
Related