# Be sure to completely close and open PHPStorm if you had the ssh terminal open to this box before this executed # This is so that if we debug, we can change files in that dir if really needed So this is just to allow that option to work correctly.įile: nfig # Add the ec2-user to the webapp user group that owns /var/app/current/ It will also make the project directory on the server writable (/var/app/current/), this is not needed but PHP Storm has a build in Validate Xdebug setup option that creates a php script and runs it on the server to gather info and report back. Next we will add two ebextension files, the first is just a general config file that will put our user (ec2-user) in the webapp group. We are also going to place a breakpoint on the line phpinfo() line. Now we are going to change the default landing page to just do a phpinfo dump and exit. Unzip the code and create an PHP Storm Project from it. Navigate to the Application Version page, click on the current version, it will take you to an AWS page of which at the bottom clicking on PHP will download the sample code zipped. Now we are going to download the sample project that is currently being used. The completed project code can be found here: Then when done verify that everything works, click on the URL to navigate to your website. Grab a cup of coffee while AWS EB does all of it’s magic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |