Problems during PHP installation on Zorin 18

Maybe ddev could be something for you. I'm not familar with this topic but in this thread it is recommended for Linux: