URL in netbeans does not work

Asked

Viewed 1,431 times

4

I am trying to run a project in php in netbeans and it runs the following url:

http://localhost/portfolio/index.php

Only my project does not open. It only opens at the following url:

http://localhost:8080/portfolio/index.php

How do I open it in the correct url every time I click F6?

  • 1

    Which server are you using? Apache?

  • That’s right, I’m using Apache

  • 1

    Is there another app running at door 80? If you do not change your Apache settings so that you do not listen on port 8080 but on 80, so when you access the first way you mentioned in your question will work, remember to restart the service.

  • 1

    There is another way, you change the settings of netbeans, so it will open on port 8080 sme need to be changing manually. I’ll post as.

  • Look, I think there is. I was using the mysql installer and only after that I can no longer access the normal url. This installer made everything work perfectly in the visual studio. But I will need to work with netbeans as well, is it a configuration I need to do in netbeans or apache itself?

2 answers

3

Right click on your project, go to properties, then run configuration. Just change the project URL.

2


You can set the door 8080 directly in your netbeans project, this way it will open the url correctly without you having to change the httpd apache:

  1. Right-click on your netbeans project, and select Estates;

  2. In the window that opens, in the left side menu, select Run Configuration;

  3. In the right part of the window, change the field url URL of the Project of http://localhost/portfolio/ for http://localhost:8080/portfolio/, so it will always open at the correct door every time you run the project.

  • 1

    Clear and objective response.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.