![]() ![]() Test Remote PHP ConnectionĪfter closing this box, my final ‘Interpreters’ Dialog looks like this: Final PHP Interpreters Dialog Finally, Name this Interpreter in the ‘Interpreters’ Dialog. If you also have XDebug set up on the Vagrant Box, PHPStorm will find it. Setting up the Vagrant PHP InterpreterĬlick on the ‘Test connection…’ button, to allow PHPStorm to sync up with the remote PHP Interpreter. Click ‘OK’ and name this interpreter instance. In my case, it’s located at /usr/bin/php (on the running Vagrant box. You’ll need to enter the path on the running Vagrant Box of the php interpreter. Still in the dialog, you’ll see ‘PHP interpreter path’. Next, either enter the path to your projects Vagrant folder, or use the button with three dots to the right of ‘Vagrant Instance Folder’ (the folder that has your Vagrant script– I then place the project web root project folder within this folder), and select it that way. ![]() Click the ‘plus’ icon (to add a new interpreter): Set up Vagrant PHP InterpreterĪ ‘Configure Remote PHP Interpreter’ dialog will open. In the upper left you’ll see a plus, minus, and what looks like a couple documents. This allows you to add the remote PHP interpreter from your vagrant box. To the right of the drop down for ‘Interpreter’ is a button with three dots. Disregard the items under include path in my picture, they may not apply to you, but I will address them. When the dialog open’s, click the disclosure triangle to open “Languages & Frameworks”, and click on “PHP”. Once the project is opened in PHPStorm, open “preferences”. As an example (I’m on a mac, so adjust as necessary) /Users/nsardo/Desktop/civicprojects/vagrant_busdec/busdec/public_html. This is how I set things up:įrom PHPStorm (I’m using version 8 for this), open your local projects folder. This looks like more work than it really is, and once you fuddle through it, subsequent set-ups will come easy. That is the prerequisite for this tutorial. You need to already have a Vagrant Box up and running. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |