Install phpstorm on your computer. 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. After work yesterday, install phpstorm on the computer # php/php-tp-install.html "target =" _ blank ">. 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. Always localhost: 63342/htdocs/index. php, and the correct address should be 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
Display effect:
The preceding figure shows how to modify the port and relative path (text) of open in browser of PhpStorm. For more information, see PHP Chinese website (www.php1.cn )!