PhpStorm 2016.2 Help

Create New Project: Add Local Server

File | New Project From Existing Files - Web server is installed locally, source files are located under its document root


The page opens if you have selected the Add new local server option on the Create New Project: Specify Local Server page. On this page, define a new local Web server access configuration.

ItemDescription
NameIn this text box, type the name of the new configuration.
Web server root URL In this text box, type the URL address of the server configuration root ( The server configuration root is the highest folder in the file tree on the local or remote server accessible through the server configuration. For in-place servers, it is the project root. ). Both the HTTP and the HTTPS protocols are supported.

To access a server through HTTPS, you need to acquire a certificate file <certificate_name>.cert signed by a recognized authority and import this certificate in the truststore/keystore of the Oracle JRE (Java Runtime Environment) on which PhpStorm runs. Note that self-signed certificates are rejected as unsafe.

To import a certificate in Oracle JRE:

  1. Open the embedded Terminal and type the following command:
    <jre_home>/bin/keytool.exe -importcert -keystore <path to jre truststore/keystore> -file <full_path_to_<cert_name>.cert>
    If you are using the Oracle JRE bundled with PhpStorm, the default path to the truststore/keystore is <%product_installation_folder>/jre/jre/lib/security/jssecacerts or <%product_installation_folder>/jre/jre/lib/security/cacerts.

    Otherwise it is <jre_home>/jre/lib/security/jssecacerts or <jre_home>/jre/lib/security/cacerts.

  2. When asked to enter a password for the truststore/keystore, specify the default one changeit.
  3. Open the PhpStorm.exe.vmoptions file in the <PhpStorm_installation_folder>/bin and add the following line to it:
    -Djavax.net.ssl.keyStore=<path to keystore>
  4. Restart PhpStorm.

Learn more at Java6 and Java7.

Open Click this button to open the page at the specified URL address in the default browser and make sure that the URL actually points at the server configuration root.

See Also

Last modified: 24 November 2016