Skip to content

Magento 2.4: bin/magento commands not working after installing cpanel on my VPS

I tried installing cpanel on my VPS (which already had a Magento 2.4.4 instance working on it) using this guide: https://www.cloudbooklet.com/how-to-install-cpanel-whm-on-ubuntu-20-04/

The cpanel did not work, however, I also noticed that I couldnt access the Magento website.
It is giving me this error:
enter image description here

And when I run php bin/magento setup:upgrade I get this error:
enter image description here

Can anyone help me fix this?