Hi,
I followed the tutorial “How To Install Linux, Nginx, MySQL, PHP (LEMP stack) on Ubuntu 20.04” and now I have a 502 error when trying to use PHP. I looked at the error log and it says that its trying to connect to PHP 7, but I have PHP 8 installed. Is there a way to easily fix this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi,
So I figured it out. In the /etc/nginx/sites-available/default file, you need to change
to be
(or whatever PHP version that you are using)