I solved it by installing a previous version through the console, the problem I used to have is that I had to install FPM and CGI of the version in question.
I have the same problem, if you can solve it, I would appreciate the solution. I have followed all the steps but when I open any php file in the installed version I get error 500.