IPGRAY : PHP - how to fix PHP project Unable to connect to local host when running PHP from netbeans
This video shows how to fix PHP project Unable to connect to local host when running PHP from netbeans
1. This issue is caused because when you create PHP project in netbeans you choose the project folder
outside of Apache folder
option 1:
you can move the entire project to XAMPP Apache folder like below
C:\xampp\htdocs\PhpProject2
fyi: PhpProject2 is the netbeans project name
(let us try this one first, i already have a project with this error)
open netbeans and run the project
the XAMPP Apache folder is ....
now run the app or refresh the browser
Option 2:
Create the project inside the XAMPP Apache folder when creating project in netbeans
(let us try this example now, create new project in netbeans)
my apache port is 7000
This video will show both the examples
-----------------
thank you for watching IPGRAY video
follow more IPGRAY videos on youtube
please share, subscribe and comment
go to
www.ipgray.com
for more IT articles