How to setup phpstorm with XAMP on windows 7?

I need help setting up phpstorm with XAMP which is on my localmachine situated at c:\htdocs. Every project I create, its in c:\htdocs\projectname.

Here are the things I have already done.

1. Setup the PHP interpretator by going to settings and then PHP (main menu)
http://i.imgur.com/BbnKl.png


2. Go to PHP > Servers and then

http://i.imgur.com/6bWnn.png

3. To setup run configuration I have the done the following:


http://i.imgur.com/CHwZx.png

Now when I run the project, it just takes me to localhost in my web browser, not to the file I am editing. What else am I required to do?

Please forgive any mistakes in my english, its not my first language.

2 comments
Comment actions Permalink

Hi there,

Yes, Run/Debug configuration is for specific target only. If you want to open specific file in a browser using this method you will have to either create separate configuration to point to that file/URL or just edit existing configuration.

To open current file in browser:

  1. Make sure that you have Deployment entry configured (in your case it will be "In Place" type) and it is marked as Default for this project
  2. Use "View | Open in Browser" ... or "View | Web Preview..."
0
Comment actions Permalink

Thank you for answering.

I have created a step by step guide with screenshots for doing this over here:

http://stackoverflow.com/a/10904543/346293

0

Please sign in to leave a comment.