How to modify the port and relative path of open in browser of PhpStorm, phpstormbrowser

Source: Internet
Author: User

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:

 

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.