WAMP includes Apache, so installing both has apparently caused some confusion and you got both. The sub-folder problem can be a matter of folder permissions.
Optionally, you could try and return to a clean system. This is not required, since Apache is working. But if you wish to try, first uninstall everything, maybe using Revo Uninstaller Freeware, and even maybe do system restore to a time when both were not installed.
Just beware that monkeying with system restore can get one into deep troubles if you or Windows have since installed anything else but WAMP and Apache. I myself try to avoid it if at all possible, even at the cost of a slightly mis-installed product.
You need to use WAMP, since you want to do PHP development, so ensure it is installed and working.
You can use NetBeans to directly work on your local computer files in the www folder of Apache, then test using the browser on localhost. I suggest using Firefox with Firebug for debug. The only complication here are folder permissions.
You can use NetBeans to deploy your application directly to the remote server.
See this article : Deploying a PHP Application on a Remote Web Server Using the NetBeans IDE.
I'm assuming the phone is creating a LAN when you say you are creating an hotspot with it, so you do have a router it's your phone.
In simple words you need to do two things.
- make the web service accessible from your LAN
You can check this by using another device connected to the hotspot, and trying to access
<private IP address of server>:<port used by the server>
,
ex 192.168.1.3:8080
- check your hotspot is redirecting the traffic from "the outside" to your local server. This is the tricky part, it's going to depend on your mobile phone etc
If using a android phone mabe check this out:
link to google play
Then check from another device connected to the internet:
<public IP address>:<Public Port configured to be forwarded>
,
Best Answer
Open up WAMP settings file "http.conf" with a notepad. It's usually located in:
Then press CTRL + F to bring up find prompt, type "80" and hit enter. You should now see the line for setting the port. Change it to whatever you like (for example 8888), save the file and restart the web server.
Now you can access your Apache server with "localhost:8888".