Home > Article > Development Tools > What should I do if phpstorm cannot open php?
phpstorm cannot open the php file when running it. The browser prompts "bad gateway". At this time, you need to configure phpstorm to use the PHP interpreter (that is, let PHPStorm find the php.exe file)
Method 1: A "configured" prompt appears in the lower right corner of the compiler, click "configure PHP Interpreter".
##Related recommendations: "PhpStorm Usage Tutorial"
Method 2: Click "File->Settings", and open PHP language configuration. Click the "..." on the far right of "CLI Interpreter", click " ", and select "Local Path". Click "..." on the right side of "PHP executable", find the existing "php.exe" on your computer, and select it , click "OK", and then OK all the way. After the configuration is completed, run the code again and it will display normally.The above is the detailed content of What should I do if phpstorm cannot open php?. For more information, please follow other related articles on the PHP Chinese website!