Harreni
asked on
Change local server setting in php
Hi Experts,
I used use Phpstorm 2016.2.1 + Xampp 3.2.2 installed on my laptop (Windows 10); and when I tried to run a PHP page in browser it show me the link like this: localhost/C:/Users/IT/Desk top/...... ../MyPHPPa ge
I already:
1- Move my application to be under : C:\XMAPP\htdocs\
2- Change my PHP server setting to be Localhost:8080 (Because It's conflicted with other app port)
Usually, I want to get something like this localhost:8080/MyPHPFolder /MyPHPPage , So please tell me what to do in details.
Thanks a lot.
Harreni
I used use Phpstorm 2016.2.1 + Xampp 3.2.2 installed on my laptop (Windows 10); and when I tried to run a PHP page in browser it show me the link like this: localhost/C:/Users/IT/Desk
I already:
1- Move my application to be under : C:\XMAPP\htdocs\
2- Change my PHP server setting to be Localhost:8080 (Because It's conflicted with other app port)
Usually, I want to get something like this localhost:8080/MyPHPFolder
Thanks a lot.
Harreni
ASKER
Thanks Julian.
I copied the whole folder from the internet site using FileZilla to C:\ drive and then I moved again it to C:\XMAPP\htdocs\ and for that it mayb keep showing me localhost/C:/Users/IT/Desk top/...... ../MyPHPPa ge in the URL.
Now, It fixed by coping the folder from the internet to C:\XMAPP\htdocs\ directly.
Another question:
Why Phpstorm showing localhost:63342/ instead of localhost/ although XMAPP is using port 80? Is there a way to fix that to localhost?
Thanks a lot.
I copied the whole folder from the internet site using FileZilla to C:\ drive and then I moved again it to C:\XMAPP\htdocs\ and for that it mayb keep showing me localhost/C:/Users/IT/Desk
Now, It fixed by coping the folder from the internet to C:\XMAPP\htdocs\ directly.
Another question:
Why Phpstorm showing localhost:63342/ instead of localhost/ although XMAPP is using port 80? Is there a way to fix that to localhost?
Thanks a lot.
I don't know much about PHPStorm but like many development environments what they do is launch a http service that is then used to monitor / debug the session. I suspect PHPStorm is doing the same thing - when you connect to localhost63342 it is a PHPStorm HTTP service and not apache.
ASKER
Thanks a lot Julian.
Anyone can tell me how to make Phpstom run localhost/ instead of localhost:63342/ ?
Anyone can tell me how to make Phpstom run localhost/ instead of localhost:63342/ ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I configure the interpreter as per the article and its works with localhost:63342/ without need to change it to localhost
If you want to have localhost:8080/yourfolder/
I am not sure how you managed to get localhost:/c:.... - is it is till doing that?