Reputation: 11
I've been searching this for hours and still I can't figure out what am I doing wrong. Xampp is installed and Apache is running. I set PHP 5 Interpreter to
C:\xampp\php\php.exe
My project folder:
C:\xampp\htdocs\myphpproject
Source folder:
C:\xampp\htdocs\myphpproject
But I can't run my PHP files on browser. When I click run it opens
localhost/dashboard/
Please, someone explain me like I'm five. What's the problem here?
Upvotes: 0
Views: 645
Reputation: 157
You said "When I click Run"... So, you are trying to run the application from within NetBeans. So, have you changed the configuration from within NetBeans to point to your project? What happens if you open a browser and navigate to http://localhost/myphpproject? Also, if you are running on a specific port, you may have to specify that port.. For example, I use port 8888, so to reach a project within MAMP, I use http://localhost:8888/WhateverTheProjectName. In that you are running XAMPP on Windows, you are probably using port 80. In which case http://localhost/myphpproject should work without specifying a port. Does that work? If so, it is definitely something in the way NetBeans is configured and you will need to adjust the configuration in order to run your project through NetBeans. I don't usually run a project through the IDE. Instead, I go straight to the browser. Let me know after you try going straight to the browser and also check your configuration in NetBeans.
Upvotes: 1