URL in netbeans does not work

4

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

http://localhost/portfolio/index.php

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

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

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

    
asked by anonymous 13.11.2015 / 12:50

2 answers

2

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

  • Right click on your netbeans project, and select Properties ;

  • In the window that opens, in the left side menu, select Run Setup ;

  • In the right part of the window, change the url of the Project URL field from http://localhost/portfolio/ to http://localhost:8080/portfolio/ , so it will always open on the correct port every time you run the project .

  • 13.11.2015 / 12:58
    3

    Go to your project right-click, go to properties, and then run setup. Just change the project URL.

        
    13.11.2015 / 12:58