I have done the following steps, but still I get the error ‘Not Found’ (with the description: Not Found
The requested URL was not found on this server. Apache/2.4.41 (Win64) PHP/7.3.12 Server at localhost Port 80) in tow different versions of NetBeans 8.2 and 11.3.
Step 1. Running WampServer Version 3.2.0 64bit installed on Windows 10 OS ==> I see the green icon in status bar, indicating all services are running.
Step 2. In NetBeans IDE I created a new php project (File > New Project; chosen in the Categories list, PHP). Then next as follow:
NetBeans IDE 8.2
and in NetBeans IDE 11.3:
Step 3. I left the configuration settings by their default values as the following picture:
NetBeans IDE 8.2
and in NetBeans IDE 11.3:
Finally, when I run the application I get the following output on my browser: Not Found! for both the versions.
Does anybody know how this error can be handled?
2
Answers
I found a way that can solve this problem to set up a local web site configuration as follows:
Click OK and run the project again to see the output on the browser. In the picture above, in the Project URL field after the port number, you can add any arbitrary name optionally, like the project name if you are going to have more projects running on the same port.
There is a simple test,
type in your browser: http://localhost
when there is a folder named Netbeans open it
next click on the php folder and in this folder there should be the index.php file when you created it