1

I am configuring PhpStorm according to this guide, but still when I open any php file using the browser links(see the image below) it still opening under http://localhost:4799/project_name.

enter image description here

I was expecting to open it under http://localhost/project_name.

What's the problem?

8
  • Please show screenshot of your Settings/Preferences | Build, Execution, Deployment | Deployment Commented Mar 31, 2016 at 18:30
  • here it is imgur.com/Myrw3vv Commented Mar 31, 2016 at 18:32
  • Did you fill the "Deployment path" field on "Mappings" tab? I think you will see a warning there. Commented Mar 31, 2016 at 18:44
  • Yes i am getting a warning. "Deployment path is not specified". I updated Mappings pls take a look imgur.com/QEkA1SR Commented Mar 31, 2016 at 18:54
  • 1
    You still must have done something wrong (I guess) as it definitely works (just tested locally on brand new project). I suggest 1) Delete that deployment entry; save settings; open them again; create deployment entry again 2) Do not use just css -- use /css/ (or maybe leave it as / for now). 3) If still nothing -- consider creating brand new project (with single file) and test it there Commented Mar 31, 2016 at 19:08

1 Answer 1

2

I have the same setup (xampp with PHPStorm). Make sure you have the project deployment set correctly. Go to Settings > Build, Execution, Deployment > Deployment. The web server root URL should be http://localhost/project_name and it should be selected as the default server for the project.

Sign up to request clarification or add additional context in comments.

2 Comments

Try checking your run configurations at Run > Edit Configurations. Sounds like those may not be set correctly.
@thanks for reply but the issue is resolved with the help of LazyOne

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.