Home >Development Tools >phpstorm >phpstorm appears 502 bad getway
When phpstrom runs the file, a 502 Bad Gateway error will appear. The following will introduce the solution to this problem.
Recommended tutorial: phpstrom installation and usage tutorial
##Open PhpStorm, menu bar File --> Settings...
1. Click onLanguages & Frameworks and select
PHP language level:Select the PHP version, and then click next to the CLI Interpreter drop-down arrow "...", a dialog box will pop up, click the green " " sign, select
Other Local...
Then Browse to php.exe at
PHP executable, and finally OK.
## 2. Click on
Build, Execution, Deployment and select Deployment
, and then click on the green " " sign , a dialog box pops up, customize a name in the Name field, select Local or mounted folder
in the Type drop-down box, and then OK
##Connection
Tab In the Folder under Upload/download project files, select the directory where you store the php files
Mappings
tabDeployment path on server Select the directory where you just stored the php file
The above is the detailed content of phpstorm appears 502 bad getway. For more information, please follow other related articles on the PHP Chinese website!