1. Open PhpStorm, menu bar File --> Settings..., click on Languages & Frameworks and select PHP.
PHP language level: Select the PHP version, and then click the "..." next to the CLI Interpreter drop-down arrow. A dialog box will pop up, click the green " " sign, and select Other Local...
Related recommendations: "PhpStorm Usage Tutorial"
Then browse to php.exe at PHP executable, and finally OK.
2. Click on Build, Execution, Deployment and select Deployment, then click on the green " " sign, a dialog box will pop up, and customize a name in the Name field , select Local or mounted folder in the Type drop-down box, and then OK.
Connection tab Upload/download project files Folder select the directory where you store the php files.
Deployment path on server in the Mappings tab, select the directory where you just stored the php file.
The above is the detailed content of What to do with phpstorm502 error. For more information, please follow other related articles on the PHP Chinese website!