I have PHPstorm installed via snap, I have also installed php.
In the PHPstorm settings -> Languages & Frameworks -> PHP I have added the cli interpreter:
/usr/bin/php-cgi, but whenever I want to run php code in Firefox, I get a Bad Gateway message:
502 Bad Gateway
I tried different PHP packages:
/usr/bin/php-cgi but no luck.
Q: How to setup local PHP development in PhpStorm?