How to modify the port and relative path of openinbrowser in PhpStorm

Source: Internet
Author: User
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.