Phpstorm Open in Browser How to modify ports and relative paths

Source: Internet
Author: User

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

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.