Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How PhpStorm configures the server

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces PhpStorm how to configure the server, the article is very detailed, has a certain reference value, interested friends must read it!

The server I use is Apache, and the operation is actually the same for all servers. In the specific application, it is divided into three situations:

The server is installed on the local computer, and the source files of our project are located in the file directory of the server, that is, the / htdocs directory. (recommended study: phpstorm detailed explanation)

The server is installed on the local computer, and the source files of our project are in other folders on the computer. The project files need to be transferred to the server's file directory for verification.

The server is not on the local computer, our project source files are on the local computer, and the project files are transferred to the file directory of the server by means of FTP, SFTP, FTPS or LAN.

Later in this article we will call it: application 1, application 2, application 3.

The first step

Open the dialog shown in the following illustration through Files | Settings | Deployment.

Click the green plus sign and the following dialog box will appear.

The name here can be chosen casually, for example, I call it "Apache", the following "Type" option is selected according to our application type, if it is application 1, select "In place"; if it is application 2, select "Local or mounted folder"; if it is application 3, choose according to your own file transfer method. Different choices, the following interface is different, of course, the next step of the interface can still be modified.

Step two

If the "Type" in the previous step selected "Local or mounted folder", the following dialog box will appear.

As you can see, there are three tab areas to fill in: "Connection", "Mapping", and "Excluded Paths". When the selected "Type" is different, only the "Connection" section will be different. If "Type" is "In place", then only "Web server root URL" needs to be filled in.

"Web server root URL", as the name implies, is the root URL of the web server. If we have configured the server's domain name in the hosts file, then we can write the configured domain name here.

Then you need to fill in the "Upload/download project files" section. First, understand the concepts of Upload and Download.

Upload is copying data from the project TO the server, either local or remote.Download is copying data FROM the server to the project.

In other words, because the "Type" we choose is "Local or mounted folder" (that is, application 2), the project files need to be transferred to the server root file directory, so "Upload/download project files" is to fill in the directory to which we want to transfer the project, and here we generally fill in the server's / htdocs directory.

Step three

In the previous step, we have completed the "Connection" section, followed by the "Mapping" section, as shown in the following figure.

"Local path": refers to the current directory of our project, which is automatically generated and does not need us to fill in.

"Deployment path on server 'Apache'": this is essentially a requirement to specify a more detailed "Upload/download project files" directory, which is generally the most convenient folder with the same name as the project file.

"Web path on server 'Apache'": refers to the directory of the home php/html file.

The configuration work is done here.

The fourth step

You can now upload the project to the web server as shown in the following figure, and after upload we will see a copy exactly like the current project in the specified directory of the server.

The above is all the contents of the article "how to configure the server for PhpStorm". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report