PHPStrom file upload reports 502 error cause

Source: Internet
Author: User
: This article mainly introduces the cause of error 502 reported by PHPStrom when uploading files. if you are interested in the PHP Tutorial, please refer to it. PhpStorm is a lightweight and convenient php ide with its own ApacheSimilar compilers can ApacheIt is suitable for beginners of PHPStrom.

However, I found a problem, that is, when using PHPStrom for the upload operation, it will cause the PHPStrom compiler to crash. at first, I thought it was an environmental problem, to this end, a system was reinstalled. After several exclusion tests, we found that it was not the cause of the environmental problem.

So how can we solve it? that is, you don't need to use the PHPStrom IDE compiler.ApacheThe compiler can solve this problem.

For example, the PHPStrom port number is 63342, whileApacheThe port number is 8080.ApachePort number. can this problem be solved?

No, not yet, becauseApacheThere are two solutions for specifying the access path. one is to move the file to the default path or change the default path to the current file.

Modify DocumentRoot C:/in httpd. conf :/Apache/Htdocs: modify the path of your current file.

The above describes the cause of the 502 error reported by PHPStrom file uploading, including Apache content. I hope my friends who are interested in PHP tutorials will be helpful.

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.