How to modify the port and relative path of open in browser of PhpStorm, phpstormbrowser
Install phpstorm on your computer after work yesterday. The xampp installation is normal, but the error is always reported when you open the website file directly on phpstorm. The error 502 is always reported. I feel curious. How can I report an error. Later, I used hbuild to open the file and the file is displayed normally in the browser. I noticed that in PhpStorm, the open in browser path is always incorrect. It is always http: // localhost: 63342/htdocs/index. php, and the correct address should be http: // localhost/index. php.
The first time PhpStorm was used, it never found the path to be modified, and Baidu did not solve it later. What Baidu said was to configure the path of the website directory. Next, I will introduce how to modify the access path of PhpStorm open in browser.
Step 1: select the website directory you want to configure
Step 2: click "run" and select "Edit structure"
Step 3: Set the default access directory, open the browser by default, and click OK.
Display Effect: