After work yesterday, the computer installs the Phpstorm. XAMPP installation is normal, but on the Phpstorm directly open the website file has been error, has been error 502. I feel curious quickly, how can the error. After I opened the file with Hbuild, the browser appears normal. I noticed: In Phpstorm, the open in browser path was always wrong. Always be http://localhost:63342/htdocs/index.php, and the correct address should be http://localhost/index.php.
The first use of phpstorm has not been found how to modify the path, Baidu also did not solve, Baidu said is to configure the path of the site directory. Below, let me explain how to modify the access path of Phpstorm open in browser.
First step: Select the Site directory you want to configure
Step Two: Click "Run" and select "Edit Structure"
The third step: Set the default Access directory, the default open browser, click OK
Display effect:
Phpstorm Open in Browser How to modify ports and relative paths