Home >Backend Development >PHP Tutorial >Reason why PHPStrom reports 502 error when uploading files
PhpStorm is a lightweight and convenient PHP IDE. It has a compiler similar to Apache and can run without Apache. It is very suitable for friends who are new to PHPstrom.
But I discovered a problem, that is, when using PHPStrom for uploading, it will cause PHPStrom's own compiler to crash. When I first encountered this problem, I always thought it was an environmental problem, so I reinstalled the system. Later, after repeated troubleshooting tests, it was found that environmental problems were not the cause.
Then how to solve this problem is to use the Apache compiler instead of the PHPStrom IDE compiler to solve this problem.
For example, the port number of PHPstrom is 63342, and the port number of Apache is 8080. Can you change the port number to the port number of Apache? Can this solve the problem?
No, it’s not possible yet, because Apache has a specified access path. There are two solutions. One is to move the file to the default path, or change the default path to the current file.
Modify the DocumentRoot C:/Apache/htdocs in the path httpd.conf to the path of your current file, and that’s it.
The above introduces the reasons why PHPstrom reports a 502 error when uploading files, including Apache content. I hope it will be helpful to friends who are interested in PHP tutorials.