![]() ![]() ![]() This is the path of the project you just created Click on the Mappings tab, and fill in the blanks like so: The next step is to configure the mappings. Just the root of the web server (this one is optional, and not really required) The path where our code is hosted in the remote server We then need to configure the connection as follows: Then the name of the server will be shown in bold: With this complete, we will click on the icon to set it as a default deployment server for this project. Specify a relevant name, and set the type option to SFTP. ![]() To do this, we need to open the PHPStorm preferences and go to Build, Execution, Deployment > Deployment, and click on the + button as it is shown in the screenshot below: Now we need to setup our deployment and mapping configurations. We then click on the OK button in the right-hand bottom corner, and our New Project window should look like this:įinally, click on the Create button. Now, your Default CLI Interpreters configuration should look like this: The path in the server where PHP executable is, normally /usr/bin/php The port used to connect to your remote server via SSH In the Configure Remote PHP Interpreter window, select the SSH Credentials option, and fill the blanks as it is shown below: Then you will be greeted with some options. In the Default CLI Interpreters window, click on the + button: as it is shown in the following screenshot: In this new project, we will need to use the remote CLI interpreter on the server. First of all we will need to create a new empty PHP project. Now we will need to configure some bits in PHPStorm. Configuring PHPStorm Creating a new empty project It’s fine, later on we will use an SSH tunnel to redirect the traffic from port 9000. You will need to restart services such as Nginx, Apache and/or FPM on your server to apply these configuration changes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |