PhpStorm40 & 50 deploy local Web applications

Source: Internet
Author: User
: This article mainly introduces PhpStorm40 & 50 to deploy local Web applications. For more information about PHP tutorials, see. 1. create a new project. after the project is created, click the Select Run/Debug Configuration drop-down menu to bring up the Edit Cofigurations option. click to enter the Edit dialog box. (Or use the run-edit configuration in the menu bar). For example:

2. in the edit dialog box, double-click Defaults or the wrench button in the single-host toolbar to expand the setting items. you can also expand the setting items by clicking the plus sign ("+") on the left of Defaults. Here we select PHP WebApplicationThe dialog box on the right displays the corresponding configuration information. As shown in

3. select the Server to be used in the Server drop-down box. the default setting is as shown in the following figure. in this case, we need to configureWeb server, Click the button after the Server to bring up the Server configuration information.

  1. Click the plus sign in the upper-left corner to add server information. an unnamed server information is displayed. For example

My image:

5. configure the server information (here the author uses the WampServer 2.2 integrated environment as the local server) to change the Name to wamp, which can be changed to any Name you like. it is best not to use Chinese characters. Enter localhost or 127.0.0.1 in the Host field. if you use a remote server, enter the IP address or domain name of the server. Change Port to the Port number of your server. the default value of Debugger is Xdebug. you can also select Zend Debugger in the following box. After configuration, click OK to return to the application running/debugging dialog box.

My Image: (I used phpnow and named it like this)

6. select the Server you just configured in the Server. And you want to deploy inWeb serverThe relative path of the folder. After the configuration is complete, click OK to exit. As shown in
7. the application cannot be deployed to the server immediately after the configuration is complete. Configure the project deployment directory. X select Tools> Deployment> Configuration to bring up the Deployment Configuration dialog box.

8. click the plus sign in the upper-left corner to add deployment information. modify the deployment name (change to jQueryDemo here) and select local mounted folder in Type,

9. select the server path

My image:

10. modify the ing information and select and fill in the corresponding information. Select the Mappings tab. The Local path is the path of the source file, that is, the folder where the project is located, and the Deployment path on server is previously configured.Web serverAs shown in

My Image: (pay special attention to the Use this server as default button !)

10. now you can deploy the project to the server for testing.

The deployment methods are as follows:

1. select Tools> Deployment> Automatic Upload, in this case, you can automatically deploy the file to the server during the maintenance of the page you edited.

2. select Tools> Deployment> Upload to jQueryDemo to deploy all the files on the server.

3. right-click the project and choose Deployment> Upload to jQueryDemo from the shortcut menu. all files are deployed on the server.

Note:

My source file directory is: F: \ php

The directory where I deployed my server is: F: \ Program Files \ PHPnow-1.5.6 \ htdocs \ deployment

In addition:

After the server is configured, the server will not be deleted after files are added and deleted.

Select the following Options in Setting-Deployment-Options.

The above section describes how to deploy a local Web Application in PhpStorm 40 & 50, including the Web server and Application content. if you are interested in the PHP Tutorial.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.