Jump to the post that solved this thread.
Solved: 5 Months, 1 Week, 5 Days ago Issue with nginx attemping to open myBB files instead of running them
#3
Solved: 5 Months, 1 Week, 5 Days ago
(2021-01-05, 10:58 AM)Crazycat Wrote: Where is the php configuration ?
   location ~ \.php {
      include snippets/fastcgi-php.conf;
      # With php-fpm (or other unix sockets):
      fastcgi_pass unix:/run/php/php7.3-fpm.sock;
      # With php-cgi (or other tcp sockets):
      # fastcgi_pass 127.0.0.1:9000;
   }

Not enabled... I added this (which was commented out in that file)
        # Pass the php scripts to fastcgi server
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;

                # With php-fpm (or other unix sockets):
                fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
                # With php-cgi (or other tcp sockets):
                #fastcgi_pass 127.0.0.1:9000;
        }
It didn't fix my issue. I'm running php 7.4.13, but I assume this code still works...


Now I get this error when navigating to forums: 502 Bad Gateway

Solved the 502 Bad Gateway error. I hadn't installed php-fpm.

Thanks for your help.
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Issue with nginx attemping to open myBB files instead of running them - by Nightwielder - 2021-01-05, 05:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)