1, command+, bring up the preferences of Webstorm. Or choose Webstorm's preferences directly.
2, search deployment.
3, click on the + number, name can be arbitrary, type Select local or Mounted folder
4,connection filled 2 items:
(1) Upload/download project File:apache The corresponding directory address (even if you do not make any configuration, put the written HTML and PHP into this, do not have any settings to view the page, now the Webstorm configuration, This is the path to fill in here).
(2) Browse file on server: Run address (my Apache port number is 80, so I write 80, different people set the port number is not the same, can change as needed).
5,mappings filled 2 items:
(1) Local Path: The folder address to deploy: (that is, the project directory to be run by Webstorm)
(2) Deployment path on server ' Apache ' (relative to Folder '/applications/xampp/htdocs '):
Deploy to the corresponding Apache root directory folder.
Because I wrote the complete folder in the connection, so write a \ on it.
6, exclude paths: can set which files can not be uploaded (I do not set this, this can not be filled)
7, Webstorm Tools Choose Deployment, choose Upload to Apache. Upload the project to Apache so that the browser can run.
If you do not want to pass each time, you can choose automatic upload.
8, click the Small Browser button, the page appears, run successfully.
Enter the employee number 101, click on the query, service.php status of 200 (no horror of 404), Done!!!
Webstorm project runs to Apache server